mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 06:30:11 +01:00
vulkan/video: Fix h265 level values
From spec: "general_level_idc shall be set equal to a value of 30 times the level number." Fixes:8243145f02("vulkan/video: add a h265 level translator.") Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36285> (cherry picked from commit2c3bb204a5)
This commit is contained in:
parent
4c9b91047b
commit
bb918ab253
2 changed files with 4 additions and 2 deletions
|
|
@ -3444,7 +3444,7 @@
|
|||
"description": "vulkan/video: Fix h265 level values",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "8243145f02c94315de898102f741edfb340c01b3",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1779,7 +1779,9 @@ vk_video_get_h265_nal_unit(const StdVideoEncodeH265PictureInfo *pic_info)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const uint8_t vk_video_h265_levels[] = {10, 20, 21, 30, 31, 40, 41, 50, 51, 52, 60, 61, 62};
|
||||
static const uint8_t vk_video_h265_levels[] = {
|
||||
30, 60, 63, 90, 93, 120, 123, 150, 153, 156, 180, 183, 186
|
||||
};
|
||||
|
||||
static uint8_t
|
||||
vk_video_get_h265_level(StdVideoH265LevelIdc level)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue