diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-03-23 16:09:48 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-12 09:37:47 +0200 |
commit | ffae62d96c75d4a476eb3890357c4f3e4f8bd4f5 (patch) | |
tree | 3057751fe52a1b473d67926341d4b39713695341 /libavutil/video_enc_params.h | |
parent | c90f57c6736a11670a0fcf25ed4280062246fb02 (diff) | |
download | ffmpeg-ffae62d96c75d4a476eb3890357c4f3e4f8bd4f5.tar.gz |
vp9dec: support exporting QP tables through the AVVideoEncParams API
Diffstat (limited to 'libavutil/video_enc_params.h')
-rw-r--r-- | libavutil/video_enc_params.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavutil/video_enc_params.h b/libavutil/video_enc_params.h index f64864caae..0cf79c435c 100644 --- a/libavutil/video_enc_params.h +++ b/libavutil/video_enc_params.h @@ -27,6 +27,21 @@ enum AVVideoEncParamsType { AV_VIDEO_ENC_PARAMS_NONE = -1, + /** + * VP9 stores: + * - per-frame base (luma AC) quantizer index, exported as AVVideoEncParams.qp + * - deltas for luma DC, chroma AC and chroma DC, exported in the + * corresponding entries in AVVideoEncParams.delta_qp + * - per-segment delta, exported as for each block as AVVideoBlockParams.delta_qp + * + * To compute the resulting quantizer index for a block: + * - for luma AC, add the base qp and the per-block delta_qp, saturating to + * unsigned 8-bit. + * - for luma DC and chroma AC/DC, add the corresponding + * AVVideoBlockParams.delta_qp to the luma AC index, again saturating to + * unsigned 8-bit. + */ + AV_VIDEO_ENC_PARAMS_VP9, }; /** |