vaapivideomemory: always prefer native VA surface formats.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 25 Jul 2014 13:44:58 +0000 (15:44 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 25 Jul 2014 13:44:58 +0000 (15:44 +0200)
commit1d1be0ae76d92babf8ffd9fd8d1d2bff48996ddd
treef0f1c19692946cf5d64d3f389db75ba550fc06aa
parente0e869f536a888191225249b3ade5979516c29d8
vaapivideomemory: always prefer native VA surface formats.

Make sure to always prefer native internal formats for the VA surfaces
that get allocated. Also disable "direct-rendering" mode in this case.

This is needed so that to make sure that anything that gets out of the
decoder, or anything that gets into the encoder, is in native format
for the hardware, and thus the driver doesn't need to perform implicit
conversions in there. Interop with SW elements is still available with
fast implementations of VA imaging APIs.
gst/vaapi/gstvaapivideomemory.c