AW: Adding a row to a video frame?

Thornton, Keith keith.thornton at
Tue Dec 9 23:04:54 PST 2014

I wrote my ovn element MemoryAligner plugin which does something similar. When using Intel QuickSync, the memory sizes must be multiples of 16 or 32 bytes which is not the case with 1920 * 1080.
My element implements the propose_allocation method and suggests the larger size.

Von: gstreamer-devel [mailto:gstreamer-devel-bounces at] Im Auftrag von Stirling Westrup
Gesendet: Dienstag, 9. Dezember 2014 18:00
An: Discussion of the development of and with GStreamer
Betreff: Adding a row to a video frame?

We have an application in which we want to add an extra row of 'off-screen' pixels to a video frame. That is, we want to turn an 800x600 image stored in an 800x600 buffer into an 800x600 image stored in an 800x601 buffer.
Up until now we've just been using gst_buffer_append() to add some extra memory to the end of the buffer, and that has worked for single-plane formats.
However, now we want to support multi-plane formats like NV12 as well, and its not clear if there is some way to append extra memory to each of the planes so as to add our extra row, without messing up the plane offsets.
Any suggestions?

Stirling Westrup
Programmer, Entrepreneur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list