From 064b875e894f45ea9e0426696559645d87af0bc3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 10 Mar 2020 18:26:00 +0100 Subject: h264dec: support exporting QP tables through the AVVideoEncParams API --- libavutil/video_enc_params.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libavutil/video_enc_params.h') diff --git a/libavutil/video_enc_params.h b/libavutil/video_enc_params.h index 0cf79c435c..43fa443154 100644 --- a/libavutil/video_enc_params.h +++ b/libavutil/video_enc_params.h @@ -42,6 +42,19 @@ enum AVVideoEncParamsType { * unsigned 8-bit. */ AV_VIDEO_ENC_PARAMS_VP9, + + /** + * H.264 stores: + * - in PPS (per-picture): + * * initial QP_Y (luma) value, exported as AVVideoEncParams.qp + * * delta(s) for chroma QP values (same for both, or each separately), + * exported as in the corresponding entries in AVVideoEncParams.delta_qp + * - per-slice QP delta, not exported directly, added to the per-MB value + * - per-MB delta; not exported directly; the final per-MB quantizer + * parameter - QP_Y - minus the value in AVVideoEncParams.qp is exported + * as AVVideoBlockParams.qp_delta. + */ + AV_VIDEO_ENC_PARAMS_H264, }; /** -- cgit v1.2.3