History

avcodec/packet: add a 3D Reference Displays Information side data type

James Almer committed 1 year ago

Commit 39d5a991 parent b2e4b0e4 files · +14 −1Browse files

Unified · Split

4 files
  1. libavcodec/avcodec.c +1 −0
  2. libavcodec/packet.c +1 −0
  3. libavcodec/packet.h +11 −0
  4. libavcodec/version.h +1 −1
libavcodec/avcodec.c+1−0
@@ -65,6 +65,7 @@ const SideDataMap ff_sd_global_map[] = { · 64 unmodified lines
6565 { AV_PKT_DATA_CONTENT_LIGHT_LEVEL, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL },
6666 { AV_PKT_DATA_ICC_PROFILE, AV_FRAME_DATA_ICC_PROFILE },
6767 { AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT,AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT },
68+ { AV_PKT_DATA_3D_REFERENCE_DISPLAYS, AV_FRAME_DATA_3D_REFERENCE_DISPLAYS },
6869 { AV_PKT_DATA_NB },
6970 };
7071
libavcodec/packet.c+1−0
@@ -308,6 +308,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type) · 307 unmodified lines
308308 case AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM: return "IAMF Recon Gain Info Parameter Data";
309309 case AV_PKT_DATA_FRAME_CROPPING: return "Frame Cropping";
310310 case AV_PKT_DATA_LCEVC: return "LCEVC NAL data";
311+ case AV_PKT_DATA_3D_REFERENCE_DISPLAYS: return "3D Reference Displays Info";
311312 }
312313 return NULL;
313314 }
libavcodec/packet.h+11−0
@@ -345,6 +345,17 @@ enum AVPacketSideDataType { · 344 unmodified lines
345345 */
346346 AV_PKT_DATA_LCEVC,
347347
348+ /**
349+ * This side data contains information about the reference display width(s)
350+ * and reference viewing distance(s) as well as information about the
351+ * corresponding reference stereo pair(s), i.e., the pair(s) of views to be
352+ * displayed for the viewer's left and right eyes on the reference display
353+ * at the reference viewing distance.
354+ * The payload is the AV3DReferenceDisplaysInfo struct defined in
355+ * libavutil/tdrdi.h.
356+ */
357+ AV_PKT_DATA_3D_REFERENCE_DISPLAYS,
358+
348359 /**
349360 * The number of side data types.
350361 * This is not part of the public API/ABI in the sense that it may
libavcodec/version.h+1−1
@@ -30,7 +30,7 @@ · 29 unmodified lines
3030 #include "version_major.h"
3131
3232 #define LIBAVCODEC_VERSION_MINOR 4
33−#define LIBAVCODEC_VERSION_MICRO 100
33+#define LIBAVCODEC_VERSION_MICRO 101
3434
3535 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
3636 LIBAVCODEC_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t