decoder: optimize pre-allocation of decoder units.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 7 Jan 2013 12:59:07 +0000 (13:59 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 7 Jan 2013 13:11:39 +0000 (14:11 +0100)
commita486d1af667e93e299b35b83625d49ee12575a90
treea5c30fbc28ba143567498c032af348f44d45bdd9
parent4fd99cc989acf8ee43a709a2c10cd41448ce3d38
decoder: optimize pre-allocation of decoder units.

Optimize pre-allocation of decoder units, thus avoiding un-necessary
memory reallocations. The heuristic used is that we could have around
one slice unit per macroblock line.
gst-libs/gst/vaapi/gstvaapidecoder.c
gst-libs/gst/vaapi/gstvaapidecoder_frame.c
gst-libs/gst/vaapi/gstvaapidecoder_frame.h