summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTorsten Jager <t.jager@gmx.de>2014-06-18 22:53:45 +0200
committerTorsten Jager <t.jager@gmx.de>2014-06-18 22:53:45 +0200
commit0c1831805f5fd12806841feaa8ce51d1b7eb081e (patch)
treee40f355e2fb63cb3e455f9a09a6b9a1fb99e9d14 /include
parent3a71697cc61f1a131dcec073ce4f4e2634e2cb49 (diff)
downloadxine-lib-0c1831805f5fd12806841feaa8ce51d1b7eb081e.tar.gz
xine-lib-0c1831805f5fd12806841feaa8ce51d1b7eb081e.tar.bz2
Fix overlay colors #2.
Keep old SD matrix only features working.
Diffstat (limited to 'include')
-rw-r--r--include/xine/video_overlay.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/xine/video_overlay.h b/include/xine/video_overlay.h
index a33cb8beb..65e914a3a 100644
--- a/include/xine/video_overlay.h
+++ b/include/xine/video_overlay.h
@@ -61,7 +61,17 @@ typedef struct video_overlay_event_s {
video_overlay_manager_t *_x_video_overlay_new_manager(xine_t *) XINE_MALLOC XINE_PROTECTED;
-void _x_overlay_clut_yuv2rgb(vo_overlay_t *overlay, int color_matrix) XINE_PROTECTED;
+/* Transport color matrix setting inside those unused "foo" fields.
+ Guard against uninitialized values. */
+#define _X_SET_CLUT_CM(clut,color_matrix) { \
+ uint8_t *q = (uint8_t *)clut; \
+ q[3] = 'X'; \
+ q[7] = 'C'; \
+ q[11] = 'M'; \
+ q[15] = color_matrix; \
+}
+
+void _x_overlay_clut_yuv2rgb(vo_overlay_t *overlay, int video_color_matrix) XINE_PROTECTED;
void _x_overlay_to_argb32(const vo_overlay_t *overlay, uint32_t *rgba, int stride, const char *format) XINE_PROTECTED;
#endif