diff options
author | James Almer <jamrial@gmail.com> | 2025-01-31 10:42:54 -0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2025-07-01 22:42:53 +0200 |
commit | b2e4b0e2826fc8cc84ce0c1eda65a450055da5e3 (patch) | |
tree | bb31a8b5d8c3886b2e19e288e92385b86907e667 | |
parent | 80a05bea4f09ff138b3cc047c452cabb83fcecac (diff) | |
download | ffmpeg-b2e4b0e2826fc8cc84ce0c1eda65a450055da5e3.tar.gz |
avutil/frame: add a 3D Reference Displays Information side data type
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavutil/frame.h | 11 | ||||
-rw-r--r-- | libavutil/side_data.c | 1 | ||||
-rw-r--r-- | libavutil/version.h | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h index 8493233ba2..c50cd263d9 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -243,6 +243,17 @@ enum AVFrameSideDataType { * The data is an int storing the view ID. */ AV_FRAME_DATA_VIEW_ID, + + /** + * This side data contains information about the reference display width(s) + * and reference viewing distance(s) as well as information about the + * corresponding reference stereo pair(s), i.e., the pair(s) of views to be + * displayed for the viewer's left and right eyes on the reference display + * at the reference viewing distance. + * The payload is the AV3DReferenceDisplaysInfo struct defined in + * libavutil/tdrdi.h. + */ + AV_FRAME_DATA_3D_REFERENCE_DISPLAYS, }; enum AVActiveFormatDescription { diff --git a/libavutil/side_data.c b/libavutil/side_data.c index 17965f2d3c..fa2a2c2a13 100644 --- a/libavutil/side_data.c +++ b/libavutil/side_data.c @@ -55,6 +55,7 @@ static const AVSideDataDescriptor sd_props[] = { [AV_FRAME_DATA_ICC_PROFILE] = { "ICC profile", AV_SIDE_DATA_PROP_GLOBAL | AV_SIDE_DATA_PROP_COLOR_DEPENDENT }, [AV_FRAME_DATA_SEI_UNREGISTERED] = { "H.26[45] User Data Unregistered SEI message", AV_SIDE_DATA_PROP_MULTI }, [AV_FRAME_DATA_VIDEO_HINT] = { "Encoding video hint", AV_SIDE_DATA_PROP_SIZE_DEPENDENT }, + [AV_FRAME_DATA_3D_REFERENCE_DISPLAYS] = { "3D Reference Displays Information", AV_SIDE_DATA_PROP_GLOBAL }, }; const AVSideDataDescriptor *av_frame_side_data_desc(enum AVFrameSideDataType type) diff --git a/libavutil/version.h b/libavutil/version.h index 6e82f039c5..2c0aa3e35e 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -80,7 +80,7 @@ #define LIBAVUTIL_VERSION_MAJOR 60 #define LIBAVUTIL_VERSION_MINOR 4 -#define LIBAVUTIL_VERSION_MICRO 100 +#define LIBAVUTIL_VERSION_MICRO 101 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ LIBAVUTIL_VERSION_MINOR, \ |