Skip to content

Commit 71ef7e0

Browse files
sivileriXinfengZhang
authored andcommitted
va: Add VAConfigAttribEncMaxTileRows and VAConfigAttribEncMaxTileCols
Currently there is no way of exposing the driver tile_rows and tile_cols limitations for encoding with tiles. For codecs like AV1 there is a cap specifying the max number of tiles, but without differentiating cols/rows. Different hardware may have restrictions which may need to be taken into account. More specifically, D3D12 encode exposes the maximum rows/cols and adding VAConfigAttribEncMaxTileRows/Cols allows for mapping that information to the VAOn12 driver. Signed-off-by: Sil Vilerino <sivileri@microsoft.com>
1 parent 53e459d commit 71ef7e0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

va/va.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,20 @@ typedef enum {
10361036
* The value returned uses the VAConfigAttribValEncPerBlockControl type.
10371037
*/
10381038
VAConfigAttribEncPerBlockControl = 55,
1039+
/**
1040+
* \brief Maximum number of tile rows. Read-only.
1041+
*
1042+
* This attribute determines the maximum number of tile
1043+
* rows supported for encoding with tile support.
1044+
*/
1045+
VAConfigAttribEncMaxTileRows = 56,
1046+
/**
1047+
* \brief Maximum number of tile cols. Read-only.
1048+
*
1049+
* This attribute determines the maximum number of tile
1050+
* columns supported for encoding with tile support.
1051+
*/
1052+
VAConfigAttribEncMaxTileCols = 57,
10391053
/**@}*/
10401054
VAConfigAttribTypeMax
10411055
} VAConfigAttribType;

va/va_str.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType)
149149
TOSTR(VAConfigAttribEncAV1Ext1);
150150
TOSTR(VAConfigAttribEncAV1Ext2);
151151
TOSTR(VAConfigAttribEncPerBlockControl);
152+
TOSTR(VAConfigAttribEncMaxTileRows);
153+
TOSTR(VAConfigAttribEncMaxTileCols);
152154
case VAConfigAttribTypeMax:
153155
break;
154156
}

0 commit comments

Comments
 (0)