<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [gst-devel] How to Set Buffer Size Within Plugin</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Following up with one more question:<BR>
<BR>
Let be more specific, on the set_cap function:<BR>
The trans_class->set_caps = GST_DEBUG_FUNCPTR (gst_mosaick_set_caps);<BR>
<BR>
static gboolean<BR>
gst_mosaick_set_caps (GstBaseTransform * trans, GstCaps * in, GstCaps * out)<BR>
{<BR>
GstMosaick *mosaick = GST_MOSAICK (trans);<BR>
gboolean ret;<BR>
<BR>
ret = gst_video_format_parse_caps (in, &mosaick->format, &mosaick->from_width, &mosaick->from_height);<BR>
ret &= gst_video_format_parse_caps (out, NULL, &mosaick->to_width, &mosaick->to_height);<BR>
<BR>
...<BR>
}<BR>
<BR>
In the above function I can get the input video size, but the output is also being fixed.<BR>
Where could you to change the output video size?<BR>
<BR>
-----Original Message-----<BR>
From: Michael Joachimiak [<A HREF="mailto:mjoachimiak@gmail.com">mailto:mjoachimiak@gmail.com</A>]<BR>
Sent: Fri 10/15/2010 3:34 PM<BR>
To: Discussion of the development of GStreamer<BR>
Subject: Re: [gst-devel] How to Set Buffer Size Within Plugin<BR>
<BR>
I think you need to specify source caps according to sink caps. When you get<BR>
video/smth,width=640,height=480,.... on sink you can set source to the same<BR>
but width=1280,height=960. And obviously create the correct buffer size to<BR>
push on the src.<BR>
Is that what you want?<BR>
If you need more details give details yourself, otherwise we could end up<BR>
discussing apples and oranges.<BR>
<BR>
2010/10/15 Michael Smith <msmith@xiph.org><BR>
<BR>
> Well, that's just up to what your plugin outputs. It'll be just like<BR>
> outputting the same size video, except... you'll be making things a<BR>
> different size in your plugin.<BR>
><BR>
> Mike<BR>
><BR>
><BR>
> On Fri, Oct 15, 2010 at 10:54 AM, Greg Wunder <gwunder@eoir.com> wrote:<BR>
> > I realized I wasn't entirely clear on my question....sorry.<BR>
> > Let me revise:<BR>
> ><BR>
> > I need to set the output video size according to the input video size<BR>
> (say,<BR>
> > 2 times) inside a plugin.<BR>
> > I know how to set the buffer size, but not how to set the output video<BR>
> size<BR>
> > in this manner.<BR>
> ><BR>
> ><BR>
> > -----Original Message-----<BR>
> > From: sudarshan bisht [<A HREF="mailto:bisht.sudarshan@gmail.com">mailto:bisht.sudarshan@gmail.com</A>]<BR>
> > Sent: Thu 10/14/2010 1:31 AM<BR>
> > To: Discussion of the development of GStreamer<BR>
> > Subject: Re: [gst-devel] How to Set Buffer Size Within Plugin<BR>
> ><BR>
> > I guess GstAdapter would be helpful for your task. Go through the link<BR>
> below<BR>
> > ;<BR>
> ><BR>
> ><BR>
> <A HREF="http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer-libs/html/GstAdapter.html">http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer-libs/html/GstAdapter.html</A><BR>
> ><BR>
> > On Thu, Oct 14, 2010 at 1:24 AM, Greg Wunder <gwunder@eoir.com> wrote:<BR>
> ><BR>
> >> Does anyone know how to set the buffer size within a plugin or know of<BR>
> an<BR>
> >> example to do this?<BR>
> >> I need to resize my incoming video since I'm doing some output<BR>
> mosiacking<BR>
> >> that is larger than the incoming buffer size.<BR>
> >><BR>
> >><BR>
> >><BR>
> >><BR>
> >><BR>
> >><BR>
> ------------------------------------------------------------------------------<BR>
> >> Beautiful is writing same markup. Internet Explorer 9 supports<BR>
> >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.<BR>
> >> Spend less time writing and rewriting code and more time creating great<BR>
> >> experiences on the web. Be a part of the beta today.<BR>
> >> <A HREF="http://p.sf.net/sfu/beautyoftheweb">http://p.sf.net/sfu/beautyoftheweb</A><BR>
> >> _______________________________________________<BR>
> >> gstreamer-devel mailing list<BR>
> >> gstreamer-devel@lists.sourceforge.net<BR>
> >> <A HREF="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>
> >><BR>
> >><BR>
> ><BR>
> ><BR>
> > --<BR>
> > Regards,<BR>
> ><BR>
> > Sudarshan Bisht<BR>
> ><BR>
> ><BR>
> ><BR>
> ------------------------------------------------------------------------------<BR>
> > Download new Adobe(R) Flash(R) Builder(TM) 4<BR>
> > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly<BR>
> > Flex(R) Builder(TM)) enable the development of rich applications that run<BR>
> > across multiple browsers and platforms. Download your free trials today!<BR>
> > <A HREF="http://p.sf.net/sfu/adobe-dev2dev">http://p.sf.net/sfu/adobe-dev2dev</A><BR>
> > _______________________________________________<BR>
> > gstreamer-devel mailing list<BR>
> > gstreamer-devel@lists.sourceforge.net<BR>
> > <A HREF="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>
> ><BR>
> ><BR>
><BR>
><BR>
> ------------------------------------------------------------------------------<BR>
> Download new Adobe(R) Flash(R) Builder(TM) 4<BR>
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly<BR>
> Flex(R) Builder(TM)) enable the development of rich applications that run<BR>
> across multiple browsers and platforms. Download your free trials today!<BR>
> <A HREF="http://p.sf.net/sfu/adobe-dev2dev">http://p.sf.net/sfu/adobe-dev2dev</A><BR>
> _______________________________________________<BR>
> gstreamer-devel mailing list<BR>
> gstreamer-devel@lists.sourceforge.net<BR>
> <A HREF="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</A><BR>
><BR>
<BR>
<BR>
<BR>
--<BR>
Your Sincerely<BR>
Michael Joachimiak<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>