decoder: h264: compute view ids only once per slice.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 22 May 2014 08:04:46 +0000 (10:04 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 22 May 2014 08:13:34 +0000 (10:13 +0200)
commitf0d3d9cd3c2fa852e71198184336b31259762a25
tree0d1420977fff627e9c276991002e74aacfff37df
parentabcc8bb7a2f45852af6957af91a656a65a46fc50
decoder: h264: compute view ids only once per slice.

Optimize lookups of view ids / view order indices by caching the result
of the calculatiosn right into the GstVaapiParserInfoH264 struct. This
terribly simplifies is_new_access_unit() and find_first_field() functions.
gst-libs/gst/vaapi/gstvaapidecoder_h264.c