From 20a8be55f19298d6f669f36f64d630d4d7896f39 Mon Sep 17 00:00:00 2001 From: "David (Ming Qiang) Wu" Date: Mon, 12 Aug 2024 15:09:21 -0400 Subject: [PATCH] va: limit to VAProfileAV1Profile2_420 Some hardwares do not support a full set of AV1 profile2, in this case use a subset instead. At the moment, VAProfileAV1Profile2_420 is for supporting 12-bit 4:2:0. Signed-off-by: David (Ming Qiang) Wu --- va/va.h | 2 +- va/va_str.c | 2 +- va/va_trace.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/va/va.h b/va/va.h index a4dda28a5..893e5b8f8 100644 --- a/va/va.h +++ b/va/va.h @@ -542,7 +542,7 @@ typedef enum { VAProfileH264High10 = 36, VAProfileVVCMain10 = 37, VAProfileVVCMultilayerMain10 = 38, - VAProfileAV1Profile2 = 39 + VAProfileAV1Profile2_420 = 39 } VAProfile; /** diff --git a/va/va_str.c b/va/va_str.c index b47bf69a2..4c9cd53fc 100644 --- a/va/va_str.c +++ b/va/va_str.c @@ -64,7 +64,7 @@ const char *vaProfileStr(VAProfile profile) TOSTR(VAProfileHEVCSccMain444); TOSTR(VAProfileAV1Profile0); TOSTR(VAProfileAV1Profile1); - TOSTR(VAProfileAV1Profile2); + TOSTR(VAProfileAV1Profile2_420); TOSTR(VAProfileHEVCSccMain444_10); TOSTR(VAProfileProtected); TOSTR(VAProfileVVCMain10); diff --git a/va/va_trace.c b/va/va_trace.c index 6145f818d..f96cd9b81 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -6775,7 +6775,7 @@ void va_TraceRenderPicture( break; case VAProfileAV1Profile0: case VAProfileAV1Profile1: - case VAProfileAV1Profile2: + case VAProfileAV1Profile2_420: for (j = 0; j < num_elements; j++) { va_TraceMsg(trace_ctx, "\telement[%d] = \n", j);