encoder: avoid extra allocations of GstVaapiEncoderSyncPic objects.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 16:05:17 +0000 (17:05 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 18:14:38 +0000 (19:14 +0100)
commit26726b18fcdf3f4fac1cce7420c8a9715295cfb2
tree8c05b2b8afda3b39046bf7a162db04194517af4e
parent038149b69b8ea628aa2e3c576f7117e70087f15f
encoder: avoid extra allocations of GstVaapiEncoderSyncPic objects.

Kill GstVaapiEncoderSyncPic objects that are internally and temporarily
allocated. Rather, associate a GstVaapiEncPicture to a coded buffer
through GstVaapiCodedBufferProxy user-data facility.

Besides, use a GAsyncQueue to maintain a thread-safe queue object of
coded buffers.

Partial fix for the following report:
https://bugzilla.gnome.org/show_bug.cgi?id=719530
gst-libs/gst/vaapi/gstvaapiencoder.c
gst-libs/gst/vaapi/gstvaapiencoder.h
gst-libs/gst/vaapi/gstvaapiencoder_priv.h