From e5c5f6be80792dbfc5db2906cc1564fb08d6aa41 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 13 Oct 2002 18:46:10 +0000 Subject: - reimplemented using organic masks, rendered with gouraud shaded triangles Original commit message from CVS: - reimplemented using organic masks, rendered with gouraud shaded triangles - implemented more masks - implemented adjustable border --- gst/smpte/gstmask.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'gst/smpte/gstmask.h') diff --git a/gst/smpte/gstmask.h b/gst/smpte/gstmask.h index f53fb99f..6131c624 100644 --- a/gst/smpte/gstmask.h +++ b/gst/smpte/gstmask.h @@ -27,47 +27,37 @@ typedef struct _GstMask GstMask; typedef struct _GstMaskDefinition GstMaskDefinition; -typedef GstMask* (*GstMaskNewFunc) (GstMaskDefinition *definition, - gint bpp, gint width, gint height); +typedef void (*GstMaskDrawFunc) (GstMask *mask); typedef void (*GstMaskDestroyFunc) (GstMask *mask); -typedef void (*GstMaskUpdateFunc) (GstMask *mask, - GstClockTime position, - GstClockTime duration); + struct _GstMaskDefinition { gint type; gchar *short_name; gchar *long_name; - GstMaskNewFunc new_func; + GstMaskDrawFunc draw_func; GstMaskDestroyFunc destroy_func; - GstMaskUpdateFunc update_func; + gpointer user_data; }; struct _GstMask { gint type; - guint8 *data; + guint32 *data; + gpointer user_data; gint width; gint height; gint bpp; - GstMaskUpdateFunc update_func; GstMaskDestroyFunc destroy_func; }; void _gst_mask_init (void); void _gst_mask_register (GstMaskDefinition *definition); -GstMask* _gst_mask_default_new (GstMaskDefinition *definition, - gint bpp, gint width, gint height); void _gst_mask_default_destroy (GstMask *mask); const GList* gst_mask_get_definitions (void); GstMask* gst_mask_factory_new (gint type, gint bpp, gint width, gint height); void gst_mask_destroy (GstMask *mask); -void gst_mask_update (GstMask *mask, - GstClockTime position, - GstClockTime duration); - - #endif /* __GST_MASK_H__ */ -- cgit v1.2.1