History

avutil/spherical: Add more spherical types

These originate from the Apple Vision Pro, and are documented here: https://developer.apple.com/documentation/coremedia/cmprojectiontype

Derek Buitenhuis committed 2 years ago

Commit 57bfba31 parent b5150884 files · +27 −1Browse files

Unified · Split

4 files
  1. doc/APIchanges +5 −0
  2. libavutil/spherical.c +5 −0
  3. libavutil/spherical.h +16 −0
  4. libavutil/version.h +1 −1
doc/APIchanges+5−0
@@ -2,6 +2,11 @@ The last version increases of all libraries were on 2024-03-07 · 1 unmodified line
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-06-18 - xxxxxxxxxx - lavu 59.23.100 - spherical.h
6 Add AV_SPHERICAL_HALF_EQUIRECTANGULAR, AV_SPHERICAL_RECTILINEAR, and
7 AV_SPHERICAL_FISHEYE values to AVSphericalProjection, and initialize
8 to AV_SPHERICAL_RECTILINEAR on alloc.
9
52024-06-13 - xxxxxxxxxx - lavu 59.22.100 - common.h102024-06-13 - xxxxxxxxxx - lavu 59.22.100 - common.h
6 Deprecate av_mod_uintp2[_c]() and replace it with av_zero_extend[_c]().11 Deprecate av_mod_uintp2[_c]() and replace it with av_zero_extend[_c]().
7 12
libavutil/spherical.c+5−0
@@ -29,6 +29,8 @@ AVSphericalMapping *av_spherical_alloc(size_t *size) · 28 unmodified lines
29 if (!spherical)29 if (!spherical)
30 return NULL;30 return NULL;
31 31
32 spherical->projection = AV_SPHERICAL_RECTILINEAR;
33
32 if (size)34 if (size)
33 *size = sizeof(*spherical);35 *size = sizeof(*spherical);
34 36
@@ -57,6 +59,9 @@ static const char *const spherical_projection_names[] = { · 22 unmodified lines
57 [AV_SPHERICAL_EQUIRECTANGULAR] = "equirectangular",59 [AV_SPHERICAL_EQUIRECTANGULAR] = "equirectangular",
58 [AV_SPHERICAL_CUBEMAP] = "cubemap",60 [AV_SPHERICAL_CUBEMAP] = "cubemap",
59 [AV_SPHERICAL_EQUIRECTANGULAR_TILE] = "tiled equirectangular",61 [AV_SPHERICAL_EQUIRECTANGULAR_TILE] = "tiled equirectangular",
62 [AV_SPHERICAL_HALF_EQUIRECTANGULAR] = "half equirectangular",
63 [AV_SPHERICAL_RECTILINEAR] = "rectilinear",
64 [AV_SPHERICAL_FISHEYE] = "fisheye",
60};65};
61 66
62const char *av_spherical_projection_name(enum AVSphericalProjection projection)67const char *av_spherical_projection_name(enum AVSphericalProjection projection)
libavutil/spherical.h+16−0
@@ -66,6 +66,22 @@ enum AVSphericalProjection { · 65 unmodified lines
66 * the position of the current video in a larger surface.66 * the position of the current video in a larger surface.
67 */67 */
68 AV_SPHERICAL_EQUIRECTANGULAR_TILE,68 AV_SPHERICAL_EQUIRECTANGULAR_TILE,
69
70 /**
71 * Video frame displays as a 180 degree equirectangular projection.
72 */
73 AV_SPHERICAL_HALF_EQUIRECTANGULAR,
74
75 /**
76 * Video frame displays on a flat, rectangular 2D surface.
77 */
78 AV_SPHERICAL_RECTILINEAR,
79
80 /**
81 * Fisheye projection (Apple).
82 * See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye
83 */
84 AV_SPHERICAL_FISHEYE,
69};85};
70 86
71/**87/**
libavutil/version.h+1−1
@@ -79,7 +79,7 @@ · 78 unmodified lines
79 */79 */
80 80
81#define LIBAVUTIL_VERSION_MAJOR 5981#define LIBAVUTIL_VERSION_MAJOR 59
82#define LIBAVUTIL_VERSION_MINOR 2282#define LIBAVUTIL_VERSION_MINOR 23
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