Hello,
I'm trying to write trivial plugin that does image rotation (90, 180, etc. degrees). My question is - where should I change "width" and "height" properties? I thought the proper place would be _chain() function(*) where I deal with buffer contents. However, pipeline dies with internal error if I do that. I guess I should handle that mysterious beast called caps negotiation? (specifically: _set_caps() function?) (*) I'm using basic GstElement, not GstBaseTransform. Thanks in advance. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Am 24.02.2010 18:09, schrieb Karol:
> Hello, > > I'm trying to write trivial plugin that does image rotation (90, 180, > etc. degrees). My question is - where should I change "width" and > "height" properties? I thought the proper place would be _chain() > function(*) where I deal with buffer contents. However, pipeline dies > with internal error if I do that. I guess I should handle that > mysterious beast called caps negotiation? (specifically: _set_caps() > function?) If you can't use videflip, you can at least look how it is done there. STefan > > (*) I'm using basic GstElement, not GstBaseTransform. > > Thanks in advance. > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Fri, 26 Feb 2010 10:04:03 +0200, Stefan Kost wrote:
> Am 24.02.2010 18:09, schrieb Karol: >> Hello, >> >> I'm trying to write trivial plugin that does image rotation (90, 180, >> etc. degrees). My question is - where should I change "width" and >> "height" properties? I thought the proper place would be _chain() >> function(*) where I deal with buffer contents. However, pipeline dies >> with internal error if I do that. I guess I should handle that >> mysterious beast called caps negotiation? (specifically: _set_caps() >> function?) > > If you can't use videflip, you can at least look how it is done there. Well, yes. I've looked at it already and implemented _transform_caps() in similar fashion. However, why I needed to explicitly set "width" and "height" for caps when I wasn't any doing rotation/transformation is still puzzling to me. While I don't understand why it happens that way - it does work. Thanks. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |