gst_cogdownsample_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
- GstCogdownsample *src;
-
g_return_if_fail (GST_IS_COGDOWNSAMPLE (object));
- src = GST_COGDOWNSAMPLE (object);
GST_DEBUG ("gst_cogdownsample_set_property");
switch (prop_id) {
gst_cogdownsample_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
- GstCogdownsample *src;
-
g_return_if_fail (GST_IS_COGDOWNSAMPLE (object));
- src = GST_COGDOWNSAMPLE (object);
switch (prop_id) {
default:
gst_cogdownsample_transform (GstBaseTransform * base_transform,
GstBuffer * inbuf, GstBuffer * outbuf)
{
- GstCogdownsample *compress;
CogFrame *outframe;
int width, height;
uint32_t format;
CogFrame *frame;
g_return_val_if_fail (GST_IS_COGDOWNSAMPLE (base_transform), GST_FLOW_ERROR);
- compress = GST_COGDOWNSAMPLE (base_transform);
gst_structure_get_fourcc (gst_caps_get_structure (inbuf->caps, 0),
"format", &format);
gst_cog_scale_transform_caps (GstBaseTransform * trans,
GstPadDirection direction, GstCaps * caps)
{
- GstCogScale *videoscale;
GstCaps *ret;
GstStructure *structure;
const GValue *par;
/* this function is always called with a simple caps */
g_return_val_if_fail (GST_CAPS_IS_SIMPLE (caps), NULL);
- videoscale = GST_COG_SCALE (trans);
-
structure = gst_caps_get_structure (caps, 0);
ret = gst_caps_copy (caps);
gst_cog_scale_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
guint * size)
{
- GstCogScale *videoscale;
GstVideoFormat format;
gint width, height;
g_assert (size);
- videoscale = GST_COG_SCALE (trans);
-
if (!gst_video_format_parse_caps (caps, &format, &width, &height))
return FALSE;
{
GObjectClass *gobject_class;
GstBaseTransformClass *base_transform_class;
- GstColorconvertClass *filter_class;
gobject_class = G_OBJECT_CLASS (g_class);
base_transform_class = GST_BASE_TRANSFORM_CLASS (g_class);
- filter_class = GST_COLORCONVERT_CLASS (g_class);
gobject_class->set_property = gst_colorconvert_set_property;
gobject_class->get_property = gst_colorconvert_get_property;
gst_colorconvert_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
- GstColorconvert *src;
-
g_return_if_fail (GST_IS_COLORCONVERT (object));
- src = GST_COLORCONVERT (object);
GST_DEBUG ("gst_colorconvert_set_property");
switch (prop_id) {
gst_colorconvert_get_property (GObject * object, guint prop_id, GValue * value,
GParamSpec * pspec)
{
- GstColorconvert *src;
-
g_return_if_fail (GST_IS_COLORCONVERT (object));
- src = GST_COLORCONVERT (object);
switch (prop_id) {
default:
void
gst_logoinsert_dispose (GObject * object)
{
- GstLogoinsert *logoinsert;
-
g_return_if_fail (GST_IS_LOGOINSERT (object));
- logoinsert = GST_LOGOINSERT (object);
/* clean up as possible. may be called multiple times */
png_bytep *rows;
CogFrame *frame;
guchar *frame_data;
- int rowbytes;
int j;
int width, height;
int color_type;
frame = cog_frame_new_from_data_ARGB (frame_data, width, height);
frame->regions[0] = frame_data;
- rowbytes = png_get_rowbytes (png_ptr, info_ptr);
rows = (png_bytep *) g_malloc (sizeof (png_bytep) * height);
for (j = 0; j < height; j++) {
gst_nsfdec_class_init (GstNsfDec * klass)
{
GObjectClass *gobject_class;
- GstElementClass *gstelement_class;
gobject_class = (GObjectClass *) klass;
- gstelement_class = (GstElementClass *) klass;
parent_class = GST_ELEMENT_CLASS (g_type_class_peek_parent (klass));
gst_patchdetect_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstPatchdetect *patchdetect;
-
g_return_if_fail (GST_IS_PATCHDETECT (object));
- patchdetect = GST_PATCHDETECT (object);
switch (property_id) {
default:
gst_patchdetect_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstPatchdetect *patchdetect;
-
g_return_if_fail (GST_IS_PATCHDETECT (object));
- patchdetect = GST_PATCHDETECT (object);
switch (property_id) {
default:
void
gst_patchdetect_dispose (GObject * object)
{
- GstPatchdetect *patchdetect;
-
g_return_if_fail (GST_IS_PATCHDETECT (object));
- patchdetect = GST_PATCHDETECT (object);
/* clean up as possible. may be called multiple times */
void
gst_patchdetect_finalize (GObject * object)
{
- GstPatchdetect *patchdetect;
-
g_return_if_fail (GST_IS_PATCHDETECT (object));
- patchdetect = GST_PATCHDETECT (object);
/* clean up object here */
gst_sdi_demux_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstSdiDemux *sdidemux;
-
g_return_if_fail (GST_IS_SDI_DEMUX (object));
- sdidemux = GST_SDI_DEMUX (object);
switch (property_id) {
default:
gst_sdi_demux_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstSdiDemux *sdidemux;
-
g_return_if_fail (GST_IS_SDI_DEMUX (object));
- sdidemux = GST_SDI_DEMUX (object);
switch (property_id) {
default:
void
gst_sdi_demux_dispose (GObject * object)
{
- GstSdiDemux *sdidemux;
-
g_return_if_fail (GST_IS_SDI_DEMUX (object));
- sdidemux = GST_SDI_DEMUX (object);
/* clean up as possible. may be called multiple times */
void
gst_sdi_demux_finalize (GObject * object)
{
- GstSdiDemux *sdidemux;
-
g_return_if_fail (GST_IS_SDI_DEMUX (object));
- sdidemux = GST_SDI_DEMUX (object);
/* clean up object here */
gst_sdi_mux_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstSdiMux *sdimux;
-
g_return_if_fail (GST_IS_SDI_MUX (object));
- sdimux = GST_SDI_MUX (object);
switch (property_id) {
default:
gst_sdi_mux_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstSdiMux *sdimux;
-
g_return_if_fail (GST_IS_SDI_MUX (object));
- sdimux = GST_SDI_MUX (object);
switch (property_id) {
default:
void
gst_sdi_mux_dispose (GObject * object)
{
- GstSdiMux *sdimux;
-
g_return_if_fail (GST_IS_SDI_MUX (object));
- sdimux = GST_SDI_MUX (object);
/* clean up as possible. may be called multiple times */
void
gst_sdi_mux_finalize (GObject * object)
{
- GstSdiMux *sdimux;
-
g_return_if_fail (GST_IS_SDI_MUX (object));
- sdimux = GST_SDI_MUX (object);
/* clean up object here */
gst_scene_change_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstSceneChange *scenechange;
-
g_return_if_fail (GST_IS_SCENE_CHANGE (object));
- scenechange = GST_SCENE_CHANGE (object);
switch (property_id) {
default:
gst_scene_change_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstSceneChange *scenechange;
-
g_return_if_fail (GST_IS_SCENE_CHANGE (object));
- scenechange = GST_SCENE_CHANGE (object);
switch (property_id) {
default:
void
gst_scene_change_dispose (GObject * object)
{
- GstSceneChange *scenechange;
-
g_return_if_fail (GST_IS_SCENE_CHANGE (object));
- scenechange = GST_SCENE_CHANGE (object);
/* clean up as possible. may be called multiple times */
gst_video_filter2_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstVideoFilter2 *videofilter2;
-
g_return_if_fail (GST_IS_VIDEO_FILTER2 (object));
- videofilter2 = GST_VIDEO_FILTER2 (object);
switch (property_id) {
default:
gst_video_filter2_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstVideoFilter2 *videofilter2;
-
g_return_if_fail (GST_IS_VIDEO_FILTER2 (object));
- videofilter2 = GST_VIDEO_FILTER2 (object);
switch (property_id) {
default:
void
gst_video_filter2_dispose (GObject * object)
{
- GstVideoFilter2 *videofilter2;
-
g_return_if_fail (GST_IS_VIDEO_FILTER2 (object));
- videofilter2 = GST_VIDEO_FILTER2 (object);
/* clean up as possible. may be called multiple times */
void
gst_video_filter2_finalize (GObject * object)
{
- GstVideoFilter2 *videofilter2;
-
g_return_if_fail (GST_IS_VIDEO_FILTER2 (object));
- videofilter2 = GST_VIDEO_FILTER2 (object);
/* clean up object here */
void
gst_zebra_stripe_finalize (GObject * object)
{
- GstZebraStripe *zebrastripe;
-
g_return_if_fail (GST_IS_ZEBRA_STRIPE (object));
- zebrastripe = GST_ZEBRA_STRIPE (object);
/* clean up object here */
gst_dirac_parse_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstDiracParse *diracparse;
-
g_return_if_fail (GST_IS_DIRAC_PARSE (object));
- diracparse = GST_DIRAC_PARSE (object);
switch (property_id) {
default:
gst_dirac_parse_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstDiracParse *diracparse;
-
g_return_if_fail (GST_IS_DIRAC_PARSE (object));
- diracparse = GST_DIRAC_PARSE (object);
switch (property_id) {
default:
void
gst_dirac_parse_dispose (GObject * object)
{
- GstDiracParse *diracparse;
-
g_return_if_fail (GST_IS_DIRAC_PARSE (object));
- diracparse = GST_DIRAC_PARSE (object);
/* clean up as possible. may be called multiple times */
void
gst_dirac_parse_finalize (GObject * object)
{
- GstDiracParse *diracparse;
-
g_return_if_fail (GST_IS_DIRAC_PARSE (object));
- diracparse = GST_DIRAC_PARSE (object);
/* clean up object here */
gst_y4m_dec_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstY4mDec *y4mdec;
-
g_return_if_fail (GST_IS_Y4M_DEC (object));
- y4mdec = GST_Y4M_DEC (object);
switch (property_id) {
default:
gst_y4m_dec_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstY4mDec *y4mdec;
-
g_return_if_fail (GST_IS_Y4M_DEC (object));
- y4mdec = GST_Y4M_DEC (object);
switch (property_id) {
default:
void
gst_y4m_dec_finalize (GObject * object)
{
- GstY4mDec *y4mdec;
-
g_return_if_fail (GST_IS_Y4M_DEC (object));
- y4mdec = GST_Y4M_DEC (object);
/* clean up object here */
static GstStateChangeReturn
gst_y4m_dec_change_state (GstElement * element, GstStateChange transition)
{
- GstY4mDec *y4mdec;
GstStateChangeReturn ret;
g_return_val_if_fail (GST_IS_Y4M_DEC (element), GST_STATE_CHANGE_FAILURE);
- y4mdec = GST_Y4M_DEC (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
gst_decklink_sink_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstDecklinkSink *decklinksink;
-
g_return_if_fail (GST_IS_DECKLINK_SINK (object));
- decklinksink = GST_DECKLINK_SINK (object);
switch (property_id) {
default:
gst_decklink_sink_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstDecklinkSink *decklinksink;
-
g_return_if_fail (GST_IS_DECKLINK_SINK (object));
- decklinksink = GST_DECKLINK_SINK (object);
switch (property_id) {
default:
void
gst_decklink_sink_dispose (GObject * object)
{
- GstDecklinkSink *decklinksink;
-
g_return_if_fail (GST_IS_DECKLINK_SINK (object));
- decklinksink = GST_DECKLINK_SINK (object);
/* clean up as possible. may be called multiple times */
gst_decklink_src_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GstDecklinkSrc *decklinksrc;
-
g_return_if_fail (GST_IS_DECKLINK_SRC (object));
- decklinksrc = GST_DECKLINK_SRC (object);
switch (property_id) {
default:
gst_decklink_src_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GstDecklinkSrc *decklinksrc;
-
g_return_if_fail (GST_IS_DECKLINK_SRC (object));
- decklinksrc = GST_DECKLINK_SRC (object);
switch (property_id) {
default:
void
gst_decklink_src_dispose (GObject * object)
{
- GstDecklinkSrc *decklinksrc;
-
g_return_if_fail (GST_IS_DECKLINK_SRC (object));
- decklinksrc = GST_DECKLINK_SRC (object);
/* clean up as possible. may be called multiple times */
static GstStateChangeReturn
gst_decklink_src_change_state (GstElement * element, GstStateChange transition)
{
- GstDecklinkSrc *decklinksrc;
GstStateChangeReturn ret;
gboolean no_preroll = FALSE;
g_return_val_if_fail (GST_IS_DECKLINK_SRC (element),
GST_STATE_CHANGE_FAILURE);
- decklinksrc = GST_DECKLINK_SRC (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
static GstStateChangeReturn
gst_fbdevsink_change_state (GstElement * element, GstStateChange transition)
{
- GstFBDEVSink *fbdevsink;
GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS;
g_return_val_if_fail (GST_IS_FBDEVSINK (element), GST_STATE_CHANGE_FAILURE);
- fbdevsink = GST_FBDEVSINK (element);
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
void
gst_linsys_sdi_sink_dispose (GObject * object)
{
- GstLinsysSdiSink *linsyssdisink;
-
g_return_if_fail (GST_IS_LINSYS_SDI_SINK (object));
- linsyssdisink = GST_LINSYS_SDI_SINK (object);
/* clean up as possible. may be called multiple times */
void
gst_linsys_sdi_sink_finalize (GObject * object)
{
- GstLinsysSdiSink *linsyssdisink;
-
g_return_if_fail (GST_IS_LINSYS_SDI_SINK (object));
- linsyssdisink = GST_LINSYS_SDI_SINK (object);
/* clean up object here */
int j;
int i;
guint8 *dest;
- int f, v, h;
+ int f, v;
int line;
for (j = 0; j < 525; j++) {
f = 0;
}
- h = 0;
-
dest[0] = 0xff;
dest[1] = 0;
dest[2] = 0;
void
gst_linsys_sdi_src_dispose (GObject * object)
{
- GstLinsysSdiSrc *linsyssdisrc;
-
g_return_if_fail (GST_IS_LINSYS_SDI_SRC (object));
- linsyssdisrc = GST_LINSYS_SDI_SRC (object);
/* clean up as possible. may be called multiple times */
void
gst_linsys_sdi_src_finalize (GObject * object)
{
- GstLinsysSdiSrc *linsyssdisrc;
-
g_return_if_fail (GST_IS_LINSYS_SDI_SRC (object));
- linsyssdisrc = GST_LINSYS_SDI_SRC (object);
/* clean up object here */