History

lavu/spherical: Add support for Spherical Immersive type

Vittorio Giovara committed 1 year ago

Commit 119d1271 parent c275f3b5 files · +14 −1Browse files

Unified · Split

5 files
  1. doc/APIchanges +3 −0
  2. libavformat/mov.c +3 −0
  3. libavutil/spherical.c +1 −0
  4. libavutil/spherical.h +6 −0
  5. libavutil/version.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2025-07-31 - xxxxxxxxxx - lavu 60.7.100 - spherical.h
6+ Add AV_SPHERICAL_PARAMETRIC_IMMERSIVE.
7+
58 2025-07-20 - xxxxxxxxxx - lavu 60.6.100 - attributes.h, avstring.h
69 Add av_scanf_format() and use it on av_sscanf().
710
libavformat/mov.c+3−0
@@ -6858,6 +6858,9 @@ static int mov_read_vexu_proj(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 6857 unmodified lines
68586858 case MKTAG('f','i','s','h'):
68596859 projection = AV_SPHERICAL_FISHEYE;
68606860 break;
6861+ case MKTAG('p','r','i','m'):
6862+ projection = AV_SPHERICAL_PARAMETRIC_IMMERSIVE;
6863+ break;
68616864 default:
68626865 av_log(c->fc, AV_LOG_ERROR, "Invalid projection type in prji box: 0x%08X\n", tag);
68636866 return AVERROR_INVALIDDATA;
libavutil/spherical.c+1−0
@@ -62,6 +62,7 @@ static const char *const spherical_projection_names[] = { · 61 unmodified lines
6262 [AV_SPHERICAL_HALF_EQUIRECTANGULAR] = "half equirectangular",
6363 [AV_SPHERICAL_RECTILINEAR] = "rectilinear",
6464 [AV_SPHERICAL_FISHEYE] = "fisheye",
65+ [AV_SPHERICAL_PARAMETRIC_IMMERSIVE] = "parametric immersive",
6566 };
6667
6768 const char *av_spherical_projection_name(enum AVSphericalProjection projection)
libavutil/spherical.h+6−0
@@ -82,6 +82,12 @@ enum AVSphericalProjection { · 81 unmodified lines
8282 * See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye
8383 */
8484 AV_SPHERICAL_FISHEYE,
85+
86+ /**
87+ * Parametric Immersive projection (Apple).
88+ * See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/parametricimmersive
89+ */
90+ AV_SPHERICAL_PARAMETRIC_IMMERSIVE,
8591 };
8692
8793 /**
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
7979 */
8080
8181 #define LIBAVUTIL_VERSION_MAJOR 60
82−#define LIBAVUTIL_VERSION_MINOR 6
82+#define LIBAVUTIL_VERSION_MINOR 7
8383 #define LIBAVUTIL_VERSION_MICRO 100
8484
8585 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \

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