summaryrefslogtreecommitdiff
path: root/gst/dvdspu/gstspu-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/dvdspu/gstspu-common.h')
-rw-r--r--gst/dvdspu/gstspu-common.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/gst/dvdspu/gstspu-common.h b/gst/dvdspu/gstspu-common.h
index 3107f29fc..7134fab72 100644
--- a/gst/dvdspu/gstspu-common.h
+++ b/gst/dvdspu/gstspu-common.h
@@ -39,21 +39,19 @@ struct SpuRect {
gint16 bottom;
};
-/* Store a pre-multiplied YUV colour value */
+/* Store a pre-multiplied colour value. The YUV fields hold the YUV values
+ * multiplied by the 8-bit alpha, to save computing it while rendering */
struct SpuColour {
-#if G_BYTE_ORDER == G_LITTLE_ENDIAN
+ guint16 Y;
+ guint16 U;
+ guint16 V;
guint8 A;
- guint8 Y;
- guint8 U;
- guint8 V;
-#else
- guint8 V;
- guint8 U;
- guint8 Y;
- guint8 A;
-#endif
};
+void gstspu_clear_comp_buffers (SpuState * state);
+void gstspu_blend_comp_buffers (SpuState * state, guint8 * planes[3]);
+
+
G_END_DECLS
#endif /* __GSTSPU_COMMON_H__ */