vaapivideomemory: use an image pool to cache objects.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 24 Jul 2014 04:46:22 +0000 (06:46 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 24 Jul 2014 04:55:26 +0000 (06:55 +0200)
commit3a762284a26b8aa91226e27459176876655330ae
treea03b930cad106032c7ea02bb1410b832a9b4e026
parentc3643b42a44f57b76af95596383e3ff2f88c24be
vaapivideomemory: use an image pool to cache objects.

Use an image pool to hold VA images to be used for downloads/uploads
of contents for the associated surface.

This is an optmization for size. So, instead of creating as many VA
images as there are buffers (then VA surfaces) allocated, we only
maintain a minimal set of live VA images, thus preserving memory
resources.
gst/vaapi/gstvaapivideomemory.c
gst/vaapi/gstvaapivideomemory.h