mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 17:18:30 +02:00
ac/video: Add {min,max}_qp to video enc caps
Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com> Reviewed-by: David Rosca <david.rosca@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42136>
This commit is contained in:
parent
c2e76e111d
commit
880fbcbeee
2 changed files with 10 additions and 0 deletions
|
|
@ -421,6 +421,8 @@ vcn_enc_caps(struct radeon_info *info)
|
|||
cap->avc.l1_refs = info->vcn_ip_version >= VCN_3_0_0 ? 1 : 0;
|
||||
cap->avc.transform_8x8 = info->vcn_ip_version >= VCN_5_0_0;
|
||||
cap->formats.nv12 = 1;
|
||||
cap->min_qp = info->vcn_ip_version >= VCN_5_0_0 ? 0 : 1;
|
||||
cap->max_qp = 51;
|
||||
|
||||
/* HEVC Encode */
|
||||
cap = &info->video_caps.enc[AC_VIDEO_CODEC_HEVC];
|
||||
|
|
@ -464,6 +466,8 @@ vcn_enc_caps(struct radeon_info *info)
|
|||
cap->hevc.log2_diff_max_min_luma_transform_block_size = 3;
|
||||
cap->formats.nv12 = 1;
|
||||
cap->formats.p010 = cap->hevc.main10 ? 1 : 0;
|
||||
cap->min_qp = 0;
|
||||
cap->max_qp = 51;
|
||||
|
||||
/* AV1 Encode */
|
||||
cap = &info->video_caps.enc[AC_VIDEO_CODEC_AV1];
|
||||
|
|
@ -508,6 +512,10 @@ vcn_enc_caps(struct radeon_info *info)
|
|||
cap->av1.skip_mode_present = info->vcn_ip_version >= VCN_5_0_0;
|
||||
cap->formats.nv12 = 1;
|
||||
cap->formats.p010 = 1;
|
||||
cap->min_qp = info->vcn_ip_version == VCN_4_0_2 ||
|
||||
info->vcn_ip_version == VCN_4_0_5 ||
|
||||
info->vcn_ip_version == VCN_4_0_6 ? 8 : 1;
|
||||
cap->max_qp = 255;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -140,6 +140,8 @@ struct ac_video_enc_codec_caps {
|
|||
bool vbr;
|
||||
bool qvbr;
|
||||
} rc;
|
||||
uint32_t min_qp;
|
||||
uint32_t max_qp;
|
||||
|
||||
union {
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue