summaryrefslogtreecommitdiff
path: root/src/amd
diff options
context:
space:
mode:
authorDavid Rosca <nowrep@gmail.com>2023-10-04 16:55:47 +0200
committerMarge Bot <emma+marge@anholt.net>2023-10-25 01:03:58 +0000
commit9b4fccf4b375bca6988fe821c5d8a1813b597f8f (patch)
treeafe97e906cb919755cf7b5c7c705f95ce22dc214 /src/amd
parent3c5d82142d403acddfa366905114fb4e4cd3946f (diff)
downloadmesa-9b4fccf4b375bca6988fe821c5d8a1813b597f8f.tar.gz
mesa-9b4fccf4b375bca6988fe821c5d8a1813b597f8f.tar.bz2
mesa-9b4fccf4b375bca6988fe821c5d8a1813b597f8f.zip
radeonsi/vcn: Add encode support for H264 B-frames
Tested with ffmpeg and gstreamer vah264enc. References to B-frames (b_depth/b-pyramid) not supported. Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25565>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_vcn_enc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_vcn_enc.h b/src/amd/common/ac_vcn_enc.h
index 41a63d7ddcd..dcb088ac8bd 100644
--- a/src/amd/common/ac_vcn_enc.h
+++ b/src/amd/common/ac_vcn_enc.h
@@ -373,6 +373,7 @@ typedef struct rvcn_enc_h264_encode_params_s {
rvcn_enc_h264_reference_picture_info_t picture_info_l0_reference_picture1;
uint32_t l1_reference_picture0_index;
rvcn_enc_h264_reference_picture_info_t picture_info_l1_reference_picture0;
+ uint32_t is_reference;
} rvcn_enc_h264_encode_params_t;
typedef struct rvcn_enc_h264_deblocking_filter_s {
@@ -562,6 +563,7 @@ typedef struct rvcn_enc_vui_info_s
uint32_t matrix_coefficients;
uint32_t chroma_sample_loc_type_top_field;
uint32_t chroma_sample_loc_type_bottom_field;
+ uint32_t max_num_reorder_frames;
}rvcn_enc_vui_info;
typedef struct rvcn_enc_input_format_s