aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2025-01-31 10:46:27 -0300
committerTimo Rothenpieler <timo@rothenpieler.org>2025-07-01 22:46:19 +0200
commit39d5a998bd2c548fc24bf82c04737cdc263affe2 (patch)
tree1eee610b809beba99f2251f5c3a6d771df49d8df
parentb2e4b0e2826fc8cc84ce0c1eda65a450055da5e3 (diff)
downloadffmpeg-39d5a998bd2c548fc24bf82c04737cdc263affe2.tar.gz
avcodec/packet: add a 3D Reference Displays Information side data type
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/avcodec.c1
-rw-r--r--libavcodec/packet.c1
-rw-r--r--libavcodec/packet.h11
-rw-r--r--libavcodec/version.h2
4 files changed, 14 insertions, 1 deletions
diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c
index 7bcb0295e5..03c3d09b87 100644
--- a/libavcodec/avcodec.c
+++ b/libavcodec/avcodec.c
@@ -65,6 +65,7 @@ const SideDataMap ff_sd_global_map[] = {
{ AV_PKT_DATA_CONTENT_LIGHT_LEVEL, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL },
{ AV_PKT_DATA_ICC_PROFILE, AV_FRAME_DATA_ICC_PROFILE },
{ AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT },
+ { AV_PKT_DATA_3D_REFERENCE_DISPLAYS, AV_FRAME_DATA_3D_REFERENCE_DISPLAYS },
{ AV_PKT_DATA_NB },
};
diff --git a/libavcodec/packet.c b/libavcodec/packet.c
index 5104eb98b1..4003b56223 100644
--- a/libavcodec/packet.c
+++ b/libavcodec/packet.c
@@ -308,6 +308,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type)
case AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM: return "IAMF Recon Gain Info Parameter Data";
case AV_PKT_DATA_FRAME_CROPPING: return "Frame Cropping";
case AV_PKT_DATA_LCEVC: return "LCEVC NAL data";
+ case AV_PKT_DATA_3D_REFERENCE_DISPLAYS: return "3D Reference Displays Info";
}
return NULL;
}
diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index 71bc2e0575..a3953776fc 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -346,6 +346,17 @@ enum AVPacketSideDataType {
AV_PKT_DATA_LCEVC,
/**
+ * 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_PKT_DATA_3D_REFERENCE_DISPLAYS,
+
+ /**
* The number of side data types.
* This is not part of the public API/ABI in the sense that it may
* change when new side data types are added.
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 06631ffa8c..789d9047c2 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -30,7 +30,7 @@
#include "version_major.h"
#define LIBAVCODEC_VERSION_MINOR 4
-#define LIBAVCODEC_VERSION_MICRO 100
+#define LIBAVCODEC_VERSION_MICRO 101
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \