aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/frame.h
diff options
context:
space:
mode:
authorElias Carotti <eliascrt _at_ amazon _dot_ it>2023-07-10 14:34:53 +0200
committerStefano Sabatini <stefasab@gmail.com>2023-08-08 09:46:11 +0200
commit5012b4ab4ca65a1c71bbcc125ba39db074b94e70 (patch)
tree93e0c0507756486bb9830cd7a79110b06c59fde1 /libavutil/frame.h
parentc0709706ddda0d1f079d4020047bcdeb0bc4a7f1 (diff)
downloadffmpeg-5012b4ab4ca65a1c71bbcc125ba39db074b94e70.tar.gz
lavu: add video_hint API
Add side data type to provide hint to the video encoders about unchanged portions of each frame. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r--libavutil/frame.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h
index a491315f25..c0c1b23db7 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -214,6 +214,16 @@ enum AVFrameSideDataType {
* Ambient viewing environment metadata, as defined by H.274.
*/
AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT,
+
+ /**
+ * Provide encoder-specific hinting information about changed/unchanged
+ * portions of a frame. It can be used to pass information about which
+ * macroblocks can be skipped because they didn't change from the
+ * corresponding ones in the previous frame. This could be useful for
+ * applications which know this information in advance to speed up
+ * encoding.
+ */
+ AV_FRAME_DATA_VIDEO_HINT,
};
enum AVActiveFormatDescription {