surface pool config based on video info
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 23 Jul 2015 18:07:59 +0000 (20:07 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 13 Aug 2015 15:20:19 +0000 (17:20 +0200)
commitceb70c3ca6d3ce85526a50b524ba6a01831f33ed
tree5bc5ba05bab7313e42e2f92c479e892575c4951a
parent940dc1a18efe3ad62655da7218b5223e9929fed7
surface pool config based on video info

First added the function gst_vaapi_video_format_get_best_native(), which
returns the best native format that matches a particular chroma type:

YUV 4:2:0 -> NV12, YUV 4:2:2 -> YUY2, YUV 4:0:0 -> Y800

RGB32 chroma and encoded format map to NV12 too.

That format is used to configure, initially, the surface's pool for the
allocator.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=744042
gst-libs/gst/vaapi/video-format.c
gst-libs/gst/vaapi/video-format.h
gst/vaapi/gstvaapivideomemory.c