diff options
author | Benjamin Cheng <ben@bcheng.me> | 2024-12-21 15:25:37 -0500 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-12-23 04:24:54 +0900 |
commit | bf9f921ef7c6b77da4c93dd292cb8bea97a49b1d (patch) | |
tree | ee06eaa2ed36e82cfe49a252f2beca0c123bfc95 /libavcodec/hw_base_encode.h | |
parent | 0a6388d1da174bb2ed3e793461c9226341e3629f (diff) | |
download | ffmpeg-bf9f921ef7c6b77da4c93dd292cb8bea97a49b1d.tar.gz |
avcodec/hw_base_encode: restrict size of next_prev
Some drivers are more strict about the size of the reference lists given
(i.e. VAOn12 [1]). The next_prev list is used to handle multiple "L0"
references in AV1 encode. Restrict the size of next_prev based on the
value of ref_l0 when the GOP structure is initialized.
[1] https://github.com/intel/cartwheel-ffmpeg/issues/278
v2: fix indentation issues
Diffstat (limited to 'libavcodec/hw_base_encode.h')
-rw-r--r-- | libavcodec/hw_base_encode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/hw_base_encode.h b/libavcodec/hw_base_encode.h index e30b1e60ad..e768579722 100644 --- a/libavcodec/hw_base_encode.h +++ b/libavcodec/hw_base_encode.h @@ -193,6 +193,10 @@ typedef struct FFHWBaseEncodeContext { int end_of_stream; int p_to_gpb; + // The number of L0/L1 references supported by the driver. + int ref_l0; + int ref_l1; + // Whether the driver supports ROI at all. int roi_allowed; |