| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef __GST_MASK_H__ |
| 22 |
#define __GST_MASK_H__ |
| 23 |
|
| 24 |
#include <gst/gst.h> |
| 25 |
|
| 26 |
typedef struct _GstMask GstMask; |
| 27 |
typedef struct _GstMaskDefinition GstMaskDefinition; |
| 28 |
|
| 29 |
typedef void (*GstMaskDrawFunc) (GstMask *mask); |
| 30 |
typedef void (*GstMaskDestroyFunc) (GstMask *mask); |
| 31 |
|
| 32 |
struct _GstMaskDefinition { |
| 33 |
gint type; |
| 34 |
const gchar *short_name; |
| 35 |
const gchar *long_name; |
| 36 |
GstMaskDrawFunc draw_func; |
| 37 |
GstMaskDestroyFunc destroy_func; |
| 38 |
gconstpointer user_data; |
| 39 |
}; |
| 40 |
|
| 41 |
struct _GstMask { |
| 42 |
gint type; |
| 43 |
guint32 *data; |
| 44 |
gconstpointer user_data; |
| 45 |
|
| 46 |
gint width; |
| 47 |
gint height; |
| 48 |
gint bpp; |
| 49 |
|
| 50 |
GstMaskDestroyFunc destroy_func; |
| 51 |
}; |
| 52 |
|
| 53 |
void _gst_mask_init (void); |
| 54 |
void _gst_mask_register (const GstMaskDefinition *definition); |
| 55 |
|
| 56 |
void _gst_mask_default_destroy (GstMask *mask); |
| 57 |
|
| 58 |
const GList* gst_mask_get_definitions (void); |
| 59 |
GstMask* gst_mask_factory_new (gint type, gboolean invert, gint bpp, gint width, gint height); |
| 60 |
void gst_mask_destroy (GstMask *mask); |
| 61 |
|
| 62 |
void _gst_barboxwipes_register (void); |
| 63 |
|
| 64 |
#endif |