summaryrefslogtreecommitdiffstats
path: root/sub/spudec.h
diff options
context:
space:
mode:
authormplayer-svn <svn@mplayerhq.hu>2012-04-22 21:52:39 +0000
committerwm4 <wm4@nowhere>2012-08-03 03:34:38 +0200
commit0dc290269d925bd3bc7ed63a1b63edc13e8b2ab1 (patch)
tree6b26a34cbfb4b039556b38a5483a71cb9f5abef0 /sub/spudec.h
parent7e87c0e76a69918296161f77c0cf337650d249c1 (diff)
downloadmpv-0dc290269d925bd3bc7ed63a1b63edc13e8b2ab1.tar.bz2
mpv-0dc290269d925bd3bc7ed63a1b63edc13e8b2ab1.tar.xz
av_sub, spudec: support multiple rectangles
av_sub: support multiple rectangles. The "packet_t" structure is renamed with a prefix, because it is used a public header. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34872 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: cigaes
Diffstat (limited to 'sub/spudec.h')
-rw-r--r--sub/spudec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sub/spudec.h b/sub/spudec.h
index ad7ece4f7a..533ac511e8 100644
--- a/sub/spudec.h
+++ b/sub/spudec.h
@@ -39,5 +39,13 @@ void spudec_set_paletted(void *this, const uint8_t *pal_img, int stride,
const void *palette,
int x, int y, int w, int h,
double pts, double endpts);
+struct spu_packet_t *spudec_packet_create(int x, int y, int w, int h);
+void spudec_packet_fill(struct spu_packet_t *packet,
+ const uint8_t *pal_img, int pal_stride,
+ const void *palette,
+ int x, int y, int w, int h);
+void spudec_packet_send(void *spu, struct spu_packet_t *packet,
+ double pts, double endpts);
+void spudec_packet_clear(struct spu_packet_t *packet);
#endif /* MPLAYER_SPUDEC_H */