vaapiencode: fix support for raw YUV sink buffers.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 26 Nov 2013 14:31:03 +0000 (15:31 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 26 Nov 2013 14:55:09 +0000 (15:55 +0100)
commit84af15179643b402530ad53d8ac7cd4e8636e2ea
tree3238739ba42d21e4d6cf8fa3de74c2da9b2111aa
parent139c99bb772488cf263513e73e3f8f63ab87a06f
vaapiencode: fix support for raw YUV sink buffers.

Allow vaapiencode plug-in elements to encode from raw YUV buffers.
The most efficient way to do so is to let the vaapiencode elements
allocate a buffer pool, and subsequently buffers from it. This means
that upstream elements are expected to honour downstream pools.

If upstream elements insist on providing their own allocated buffers
to the vaapiencode elements, then it possibly would be more efficient
to insert a vaapipostproc element before the vaapiencode element.
This is because vaapipostproc currently has better support than other
elements for "foreign" raw YUV buffers.
gst/vaapi/gstvaapiencode.c
gst/vaapi/gstvaapiencode_h264.c
gst/vaapi/gstvaapiencode_mpeg2.c