diff options
author | James Almer <jamrial@gmail.com> | 2020-10-20 17:48:31 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-10-28 11:26:25 -0300 |
commit | 5d1238f77fbd83e834b2f3066a60c29eb6f49ef8 (patch) | |
tree | 257a35be6f118773038109cd4f9868a4b12c0c4a /libavcodec/cbs_av1.h | |
parent | 744b7f2e91fad0953505c909bc2b0cebced03d28 (diff) | |
download | ffmpeg-5d1238f77fbd83e834b2f3066a60c29eb6f49ef8.tar.gz |
avcodec/cbs_av1: infer loop filter delta parameters from reference frames
Partially implements setup_past_independence() and load_previous().
These ensures they are always set, even if the values were not coded
in the input bitstream and will not be coded in the output bitstream.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_av1.h')
-rw-r--r-- | libavcodec/cbs_av1.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cbs_av1.h b/libavcodec/cbs_av1.h index 7a0c08c596..97aeee9795 100644 --- a/libavcodec/cbs_av1.h +++ b/libavcodec/cbs_av1.h @@ -413,6 +413,9 @@ typedef struct AV1ReferenceFrameState { int subsampling_y; // RefSubsamplingY int bit_depth; // RefBitDepth int order_hint; // RefOrderHint + + int8_t loop_filter_ref_deltas[AV1_TOTAL_REFS_PER_FRAME]; + int8_t loop_filter_mode_deltas[2]; } AV1ReferenceFrameState; typedef struct CodedBitstreamAV1Context { |