Skip to content

Commit

Permalink
vainfo: Print VAConfigAttribEncMaxTileRowsCols
Browse files Browse the repository at this point in the history
Signed-off-by: Sil Vilerino <[email protected]>
  • Loading branch information
sivileri committed Sep 22, 2023
1 parent 81eed6e commit 1b346fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vainfo/vainfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ static int show_config_attributes(VADisplay va_dpy, VAProfile profile, VAEntrypo
printf("%-*sl1=%d\n", 45, "", (attrib_list[VAConfigAttribEncMaxRefFrames].value >> 16) & 0xffff);
}

if (attrib_list[VAConfigAttribEncMaxTileRowsCols].value & (~VA_ATTRIB_NOT_SUPPORTED)) {
printf(" %-39s: ", vaConfigAttribTypeStr(attrib_list[VAConfigAttribEncMaxTileRowsCols].type));
printf("tile_rows=%d\n", attrib_list[VAConfigAttribEncMaxTileRowsCols].value & 0xffff);
printf("%-*stile_cols=%d\n", 45, "", (attrib_list[VAConfigAttribEncMaxTileRowsCols].value >> 16) & 0xffff);
}

if (attrib_list[VAConfigAttribEncMaxSlices].value & (~VA_ATTRIB_NOT_SUPPORTED)) {
printf(" %-39s: %d\n", vaConfigAttribTypeStr(attrib_list[VAConfigAttribEncMaxSlices].type),
attrib_list[VAConfigAttribEncMaxSlices].value);
Expand Down

0 comments on commit 1b346fe

Please sign in to comment.