summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-03-10 18:26:00 +0100
committerAnton Khirnov <anton@khirnov.net>2020-05-25 11:59:42 +0200
commit064b875e894f45ea9e0426696559645d87af0bc3 (patch)
tree05d5fbe353f5f60f46f6d4eefb242dacb5acbc17 /libavutil
parent37140ebd87f549eae86a5b548d717a1e97203dd6 (diff)
h264dec: support exporting QP tables through the AVVideoEncParams API
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/version.h2
-rw-r--r--libavutil/video_enc_params.h13
2 files changed, 14 insertions, 1 deletions
diff --git a/libavutil/version.h b/libavutil/version.h
index 5821bcdd0e..7acecf5a97 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -79,7 +79,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 56
-#define LIBAVUTIL_VERSION_MINOR 48
+#define LIBAVUTIL_VERSION_MINOR 49
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
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,
};
/**