summaryrefslogtreecommitdiff
path: root/libavcodec/av1dec.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-11-25 17:02:56 -0300
committerJames Almer <jamrial@gmail.com>2020-11-30 19:12:39 -0300
commiteee7ba8dba3546ce953f65b98f6ef59188ec935c (patch)
treee170582b5281807619e3fa0eae286b04f6c49541 /libavcodec/av1dec.h
parentaea80e227327da2f275e9fb14821eac2b57df930 (diff)
avcodec/av1dec: infer and store film grain param values in AV1Frame
They are not always coded in the bistream for each frame. In some cases, the values need to be taken from a reference frame. See section 6.8.20 from the AV1 spec. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/av1dec.h')
-rw-r--r--libavcodec/av1dec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/av1dec.h b/libavcodec/av1dec.h
index 4b218f64bb..7e3b0c7291 100644
--- a/libavcodec/av1dec.h
+++ b/libavcodec/av1dec.h
@@ -47,6 +47,8 @@ typedef struct AV1Frame {
uint8_t skip_mode_frame_idx[2];
+ AV1RawFilmGrainParams film_grain;
+
uint8_t coded_lossless;
} AV1Frame;