[4/5] hwcontext_vaapi: Enable P010 support

Message ID bf45e59b-5adf-8f74-39e6-faa100432382@jkqxz.net
State Committed
Commit eaaaabf6c93321cdb78bf61dc383cf515ec12e07
Headers show

Commit Message

Mark Thompson Sept. 30, 2016, 4:57 p.m.
This is required for 10-bit surfaces.
---
 libavutil/hwcontext_vaapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Luca Barbato Sept. 30, 2016, 5:55 p.m. | #1
On 30/09/16 18:57, Mark Thompson wrote:
> This is required for 10-bit surfaces.
> ---
>  libavutil/hwcontext_vaapi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
> index bba0c4d..fd0806c 100644
> --- a/libavutil/hwcontext_vaapi.c
> +++ b/libavutil/hwcontext_vaapi.c
> @@ -109,7 +109,7 @@ static struct {
>      MAP(YUY2, YUV422,  YUYV422),
>      MAP(Y800, YUV400,  GRAY8),
>  #ifdef VA_FOURCC_P010
> -  //MAP(P010, YUV420_10BPP, P010),
> +    MAP(P010, YUV420_10BPP, P010),
>  #endif
>      MAP(BGRA, RGB32,   BGRA),
>    //MAP(BGRX, RGB32,   BGR0),
> 

Ok.

Patch

diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
index bba0c4d..fd0806c 100644
--- a/libavutil/hwcontext_vaapi.c
+++ b/libavutil/hwcontext_vaapi.c
@@ -109,7 +109,7 @@  static struct {
     MAP(YUY2, YUV422,  YUYV422),
     MAP(Y800, YUV400,  GRAY8),
 #ifdef VA_FOURCC_P010
-  //MAP(P010, YUV420_10BPP, P010),
+    MAP(P010, YUV420_10BPP, P010),
 #endif
     MAP(BGRA, RGB32,   BGRA),
   //MAP(BGRX, RGB32,   BGR0),