[gst-embedded] [gst-devel] how to write a proper atmel plugin?
Arnout Vandecappelle
arnout at mind.be
Thu Mar 11 00:15:10 PST 2010
On Tuesday 09 March 2010 14:59:01, Sedji Gaouaou wrote:
> Anyway I have another question. My video decoder is also able to
> crop/scale/rotate/convert colors, and I would like to know what is the
> best way to use such capabilities within gstreamer?
>
> Should I write only one plugin which will do everything or several
> plugins like for instance one for the decoder, one for the post
> processing(crop, rotation..) and one for the color conversion?
If it can be done in separate plugins, that's the preferred way because it
gives more flexibility to use the plugins (e.g. you can do the rotation on
raw video, without decoder).
One good reason to put them in a single plugin is if that is the only way
you can avoid memcpy overhead. I had this situation recently for a
hardware-accelerated resizer followed by a letterbox. The resizer requires
DMA buffers for its output, so they can't be allocated by the normal
letterbox pad-alloc. And obviously, the buffers allocated by the resizer
are not large enough to contain the black bars of the letterbox.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
More information about the Gstreamer-embedded
mailing list