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
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52025-07-31 - xxxxxxxxxx - lavu 60.7.100 - spherical.h
6 Add AV_SPHERICAL_PARAMETRIC_IMMERSIVE.
7
52025-07-20 - xxxxxxxxxx - lavu 60.6.100 - attributes.h, avstring.h82025-07-20 - xxxxxxxxxx - lavu 60.6.100 - attributes.h, avstring.h
6 Add av_scanf_format() and use it on av_sscanf().9 Add av_scanf_format() and use it on av_sscanf().
7 10
libavformat/mov.c+3−0
@@ -6858,6 +6858,9 @@ static int mov_read_vexu_proj(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 6857 unmodified lines
6858 case MKTAG('f','i','s','h'):6858 case MKTAG('f','i','s','h'):
6859 projection = AV_SPHERICAL_FISHEYE;6859 projection = AV_SPHERICAL_FISHEYE;
6860 break;6860 break;
6861 case MKTAG('p','r','i','m'):
6862 projection = AV_SPHERICAL_PARAMETRIC_IMMERSIVE;
6863 break;
6861 default:6864 default:
6862 av_log(c->fc, AV_LOG_ERROR, "Invalid projection type in prji box: 0x%08X\n", tag);6865 av_log(c->fc, AV_LOG_ERROR, "Invalid projection type in prji box: 0x%08X\n", tag);
6863 return AVERROR_INVALIDDATA;6866 return AVERROR_INVALIDDATA;
libavutil/spherical.c+1−0
@@ -62,6 +62,7 @@ static const char *const spherical_projection_names[] = { · 61 unmodified lines
62 [AV_SPHERICAL_HALF_EQUIRECTANGULAR] = "half equirectangular",62 [AV_SPHERICAL_HALF_EQUIRECTANGULAR] = "half equirectangular",
63 [AV_SPHERICAL_RECTILINEAR] = "rectilinear",63 [AV_SPHERICAL_RECTILINEAR] = "rectilinear",
64 [AV_SPHERICAL_FISHEYE] = "fisheye",64 [AV_SPHERICAL_FISHEYE] = "fisheye",
65 [AV_SPHERICAL_PARAMETRIC_IMMERSIVE] = "parametric immersive",
65};66};
66 67
67const char *av_spherical_projection_name(enum AVSphericalProjection projection)68const char *av_spherical_projection_name(enum AVSphericalProjection projection)
libavutil/spherical.h+6−0
@@ -82,6 +82,12 @@ enum AVSphericalProjection { · 81 unmodified lines
82 * See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye82 * See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye
83 */83 */
84 AV_SPHERICAL_FISHEYE,84 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,
85};91};
86 92
87/**93/**
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
79 */79 */
80 80
81#define LIBAVUTIL_VERSION_MAJOR 6081#define LIBAVUTIL_VERSION_MAJOR 60
82#define LIBAVUTIL_VERSION_MINOR 682#define LIBAVUTIL_VERSION_MINOR 7
83#define LIBAVUTIL_VERSION_MICRO 10083#define LIBAVUTIL_VERSION_MICRO 100
84 84
85#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \85#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