2012-03-17 16:05:20 +00:00
|
|
|
/* vim: set filetype=c: */
|
|
|
|
|
|
|
|
% instance-members
|
|
|
|
% prototypes
|
|
|
|
% pad-template
|
|
|
|
/* FIXME: add/remove formats you can handle */
|
|
|
|
#define VIDEO_SINK_CAPS \
|
2012-03-17 16:09:31 +00:00
|
|
|
GST_VIDEO_CAPS_RGBA "; " \
|
|
|
|
GST_VIDEO_CAPS_ARGB "; " \
|
|
|
|
GST_VIDEO_CAPS_BGRA "; " \
|
|
|
|
GST_VIDEO_CAPS_ABGR "; " \
|
|
|
|
GST_VIDEO_CAPS_RGBx "; " \
|
|
|
|
GST_VIDEO_CAPS_xRGB "; " \
|
|
|
|
GST_VIDEO_CAPS_BGRx "; " \
|
|
|
|
GST_VIDEO_CAPS_xBGR "; " \
|
|
|
|
GST_VIDEO_CAPS_RGB "; " \
|
|
|
|
GST_VIDEO_CAPS_BGR "; " \
|
2012-03-17 16:05:20 +00:00
|
|
|
GST_VIDEO_CAPS_YUV("{ AYUV }")
|
|
|
|
|
|
|
|
static GstStaticPadTemplate gst_replace_sink_template =
|
|
|
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
|
|
|
GST_PAD_SINK,
|
|
|
|
GST_PAD_ALWAYS,
|
|
|
|
GST_STATIC_CAPS (VIDEO_SINK_CAPS)
|
|
|
|
);
|
|
|
|
|
|
|
|
% base-init
|
|
|
|
gst_element_class_add_static_pad_template (element_class,
|
|
|
|
&gst_replace_sink_template);
|
|
|
|
% instance-init
|
|
|
|
% methods
|
|
|
|
% end
|
|
|
|
|