From baecaa16c16dc2bca7ca15ed3c379d7343955adb Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 10 Mar 2020 11:45:55 +0100 Subject: mpegvideo: use the AVVideoEncParams API for exporting QP tables Do it only when requested with the AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS flag. Drop previous code using the long-deprecated AV_FRAME_DATA_QP_TABLE* API. Temporarily disable fate-filter-pp, fate-filter-pp7, fate-filter-spp. They will be reenabled once these filters are converted in following commits. --- libavutil/video_enc_params.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavutil/video_enc_params.h') diff --git a/libavutil/video_enc_params.h b/libavutil/video_enc_params.h index e3b422d6f3..fc0c3bc1a5 100644 --- a/libavutil/video_enc_params.h +++ b/libavutil/video_enc_params.h @@ -55,6 +55,14 @@ enum AVVideoEncParamsType { * as AVVideoBlockParams.qp_delta. */ AV_VIDEO_ENC_PARAMS_H264, + + /* + * MPEG-2-compatible quantizer. + * + * Summing the frame-level qp with the per-block delta_qp gives the + * resulting quantizer for the block. + */ + AV_VIDEO_ENC_PARAMS_MPEG2, }; /** -- cgit v1.2.3