Skip to content

Commit

Permalink
va: limit to VAProfileAV1Profile2_420
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
davidwuAMD authored and XinfengZhang committed Nov 27, 2024
1 parent 25381db commit 20a8be5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion va/va.h
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ typedef enum {
VAProfileH264High10 = 36,
VAProfileVVCMain10 = 37,
VAProfileVVCMultilayerMain10 = 38,
VAProfileAV1Profile2 = 39
VAProfileAV1Profile2_420 = 39
} VAProfile;

/**
Expand Down
2 changes: 1 addition & 1 deletion va/va_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion va/va_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 20a8be5

Please sign in to comment.