mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
anv/video: fix VP9 chroma subsampling format detection
Fixes:314de7af("anv: Initial support for VP9 decoding") Signed-off-by: Hyunjun Ko <zzoon@igalia.com> (cherry picked from commit2fe09217a1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39003>
This commit is contained in:
parent
36f02f4d26
commit
7ee41d2337
2 changed files with 7 additions and 4 deletions
|
|
@ -34,7 +34,7 @@
|
|||
"description": "anv/video: fix VP9 chroma subsampling format detection",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "314de7af063ff7f40c10df8cd022f35e5eb7fa1a",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3306,11 +3306,14 @@ anv_vp9_decode_video(struct anv_cmd_buffer *cmd_buffer,
|
|||
pic.Log2TileColumn = std_pic->tile_cols_log2;
|
||||
pic.Log2TileRow = std_pic->tile_rows_log2;
|
||||
|
||||
if (std_pic->pColorConfig->subsampling_x == 1 || std_pic->pColorConfig->subsampling_y == 1) {
|
||||
if (std_pic->pColorConfig->subsampling_x == 1 &&
|
||||
std_pic->pColorConfig->subsampling_y == 1) {
|
||||
pic.ChromaSamplingFormat = Format_420;
|
||||
} else if (std_pic->pColorConfig->subsampling_x == 1 || std_pic->pColorConfig->subsampling_y == 0) {
|
||||
} else if (std_pic->pColorConfig->subsampling_x == 1 &&
|
||||
std_pic->pColorConfig->subsampling_y == 0) {
|
||||
pic.ChromaSamplingFormat = Format_422;
|
||||
} else if (std_pic->pColorConfig->subsampling_x == 0 || std_pic->pColorConfig->subsampling_y == 0) {
|
||||
} else if (std_pic->pColorConfig->subsampling_x == 0 &&
|
||||
std_pic->pColorConfig->subsampling_y == 0) {
|
||||
pic.ChromaSamplingFormat = Format_444;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue