vaapiencode: optimize _handle_frame() to avoid extra allocation.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 14:56:53 +0000 (15:56 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 16:32:18 +0000 (17:32 +0100)
commit30f382fcdfb9ff790ce23aae7a076ad6fdf7b606
tree2c48c0261e75aeef87543a64f39cddb174c8ae10
parent081ff63f9a7d13438414c2d96da4c261b2b030f6
vaapiencode: optimize _handle_frame() to avoid extra allocation.

Optimize gst_vaapiencode_handle_frame() to avoid extra memory allocation,
and in particular the GstVaapiEncObjUserData object. i.e. directly use
the VA surface proxy from the source buffer. This also makes the user
data attached to the GstVideoCodecFrame more consistent between both
the decoder and encoder plug-in elements.
gst-libs/gst/vaapi/gstvaapiencoder_objects.c
gst-libs/gst/vaapi/gstvaapiencoder_objects.h
gst/vaapi/gstvaapiencode.c