aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-06-22 17:25:40 -0300
committerJames Almer <jamrial@gmail.com>2024-06-28 13:16:57 -0300
commit1c8b32e19f8327c1efe8d530b9b6f15e0e9ae120 (patch)
tree7e42c904be0e19badcd2c622a1851a3c04b884d9
parente0b574c483db05c5e2e7be22e9f1206f3423c38b (diff)
downloadffmpeg-1c8b32e19f8327c1efe8d530b9b6f15e0e9ae120.tar.gz
avutil/stereo3d: add a Stereo3D type to signal that the packing is unspecified
Given that a video stream/frame may have only one view or both views coded with the packing information being unavailable, this commit adds a new type value AV_STEREO3D_UNSPEC for this purpose. The most common case for this is container level signaling of Stereo3D video where the specifics are defined at the bitstream level. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavutil/stereo3d.c1
-rw-r--r--libavutil/stereo3d.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/stereo3d.c b/libavutil/stereo3d.c
index 7ea3dceb33..647f9a952a 100644
--- a/libavutil/stereo3d.c
+++ b/libavutil/stereo3d.c
@@ -74,6 +74,7 @@ static const char * const stereo3d_type_names[] = {
[AV_STEREO3D_SIDEBYSIDE_QUINCUNX] = "side by side (quincunx subsampling)",
[AV_STEREO3D_LINES] = "interleaved lines",
[AV_STEREO3D_COLUMNS] = "interleaved columns",
+ [AV_STEREO3D_UNSPEC] = "unspecified",
};
static const char * const stereo3d_view_names[] = {
diff --git a/libavutil/stereo3d.h b/libavutil/stereo3d.h
index 386455a5a4..e3da3257d7 100644
--- a/libavutil/stereo3d.h
+++ b/libavutil/stereo3d.h
@@ -136,6 +136,11 @@ enum AVStereo3DType {
* @endcode
*/
AV_STEREO3D_COLUMNS,
+
+ /**
+ * Video is stereoscopic but the packing is unspecified.
+ */
+ AV_STEREO3D_UNSPEC,
};
/**