mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
radeon/vcn/enc: Add missing line to HEVC SPS header code
Add previously missing line in HEVC SPS header generation on VCN 1.0 devices, for when an image does not need to be cropped. Fixes:e62c7e7c6c("radeon: Add cropping to encoded H.265 when padding is used") Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11535> (cherry picked from commitd977e7fbe1)
This commit is contained in:
parent
5378895d48
commit
94bc232abe
2 changed files with 2 additions and 1 deletions
|
|
@ -1615,7 +1615,7 @@
|
|||
"description": "radeon/vcn/enc: Add missing line to HEVC SPS header code",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "e62c7e7c6caa6c9531afb694e7952a7fc3ac4401"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -412,6 +412,7 @@ static void radeon_enc_nalu_sps_hevc(struct radeon_encoder *enc)
|
|||
radeon_enc_code_ue(enc, enc->enc_pic.session_init.padding_height / 2);
|
||||
radeon_enc_code_ue(enc, enc->enc_pic.session_init.padding_height / 2);
|
||||
} else
|
||||
radeon_enc_code_fixed_bits(enc, 0x0, 1);
|
||||
|
||||
radeon_enc_code_ue(enc, enc->enc_pic.bit_depth_luma_minus8);
|
||||
radeon_enc_code_ue(enc, enc->enc_pic.bit_depth_chroma_minus8);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue