[gst-devel] How to Set Buffer Size Within Plugin

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Oct 15 22:09:45 CEST 2010


On Fri, 2010-10-15 at 15:51 -0400, Greg Wunder wrote:

> Following up with one more question:
> 
> Let be more specific, on the set_cap function:
> The trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_mosaick_set_caps);

Ah, so your element is based on GstBaseTransform/GstVideoFilter - that's
useful to know.


> static gboolean
> gst_mosaick_set_caps (GstBaseTransform * trans, GstCaps * in, GstCaps
> * out)
> {
>   GstMosaick *mosaick = GST_MOSAICK (trans);
>   gboolean ret;
> 
>   ret = gst_video_format_parse_caps (in, &mosaick->format,
> &mosaick->from_width, &mosaick->from_height);
>   ret &= gst_video_format_parse_caps (out, NULL, &mosaick->to_width,
> &mosaick->to_height);
> 
> ...
> }
> 
> In the above function I can get the input video size, but the output
> is also being fixed.
> Where could you to change the output video size?

Maybe you're looking for the transform_caps virtual method?

Cheers
 -Tim







More information about the gstreamer-devel mailing list