summaryrefslogtreecommitdiffstats
path: root/gst/smpte/gstmask.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-10-13 18:46:10 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-10-13 18:46:10 +0000
commite5c5f6be80792dbfc5db2906cc1564fb08d6aa41 (patch)
treeffecd036e8c523917e4ca359bbfcc84d7d602495 /gst/smpte/gstmask.h
parent9b067365c95ee0d987a74acd10a9c9890abab5db (diff)
downloadgst-plugins-bad-e5c5f6be80792dbfc5db2906cc1564fb08d6aa41.tar.gz
gst-plugins-bad-e5c5f6be80792dbfc5db2906cc1564fb08d6aa41.tar.bz2
gst-plugins-bad-e5c5f6be80792dbfc5db2906cc1564fb08d6aa41.zip
- 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
Diffstat (limited to 'gst/smpte/gstmask.h')
-rw-r--r--gst/smpte/gstmask.h22
1 files changed, 6 insertions, 16 deletions
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__ */