summaryrefslogtreecommitdiffstats
path: root/spudec.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-04 06:36:36 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:41:04 +0300
commit8716df2a41f6ff05f59577a0433401ea141226f3 (patch)
tree491d1c9e1cf862294283335ade557100c2181baf /spudec.h
parent2bcfe1e077fe043751d3f7c73c82be761629419f (diff)
downloadmpv-8716df2a41f6ff05f59577a0433401ea141226f3.tar.bz2
mpv-8716df2a41f6ff05f59577a0433401ea141226f3.tar.xz
Add context variable to vo_draw_text callback
Add a context variable and rename the function to osd_draw_text. Create a new vo_draw_text that is a wrapper for VOs using old API.
Diffstat (limited to 'spudec.h')
-rw-r--r--spudec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/spudec.h b/spudec.h
index f3cafbd514..10c9668f8e 100644
--- a/spudec.h
+++ b/spudec.h
@@ -6,7 +6,7 @@
void spudec_heartbeat(void *this, unsigned int pts100);
void spudec_assemble(void *this, unsigned char *packet, unsigned int len, int pts100);
void spudec_draw(void *this, void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
-void spudec_draw_scaled(void *this, unsigned int dxs, unsigned int dys, void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));
+void spudec_draw_scaled(void *this, unsigned int dxs, unsigned int dys, void (*draw_alpha)(void *ctx, int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride), void *ctx);
void spudec_update_palette(void *this, unsigned int *palette);
void *spudec_new_scaled(unsigned int *palette, unsigned int frame_width, unsigned int frame_height);
void *spudec_new_scaled_vobsub(unsigned int *palette, unsigned int *cuspal, unsigned int custom, unsigned int frame_width, unsigned int frame_height);