Multiple types of output caps?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Multiple types of output caps?

j1432
I'm working with a stereo camera (two lenses) and have been asked to set
things up such that I have output pads as follows:

* Both side by side (double width)
* Left only (single width)
* right only (single width)

Is that possible?  If so, how would I set up my transform_caps function?
Would I do something like ensure it fails if given a sink pad's caps but
make it translate properly if given a src pad's caps?  From my
experimentation it appears that it will try both ways if the first few
attempts at a sink pad fail.    My input caps will always be the same
regardless of what the final program chooses to connect to.  

I think that I might just have to end up writing two versions, one with
regular-sized outputs and one with the double-sized output.  



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel