mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
avutil/spherical: Add more spherical types
These originate from the Apple Vision Pro, and are documented here:
https://developer.apple.com/documentation/coremedia/cmprojectiontype
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -29,6 +29,8 @@ AVSphericalMapping *av_spherical_alloc(size_t *size)
|
||||
if (!spherical)
|
||||
return NULL;
|
||||
|
||||
spherical->projection = AV_SPHERICAL_RECTILINEAR;
|
||||
|
||||
if (size)
|
||||
*size = sizeof(*spherical);
|
||||
|
||||
@@ -57,6 +59,9 @@ static const char *const spherical_projection_names[] = {
|
||||
[AV_SPHERICAL_EQUIRECTANGULAR] = "equirectangular",
|
||||
[AV_SPHERICAL_CUBEMAP] = "cubemap",
|
||||
[AV_SPHERICAL_EQUIRECTANGULAR_TILE] = "tiled equirectangular",
|
||||
[AV_SPHERICAL_HALF_EQUIRECTANGULAR] = "half equirectangular",
|
||||
[AV_SPHERICAL_RECTILINEAR] = "rectilinear",
|
||||
[AV_SPHERICAL_FISHEYE] = "fisheye",
|
||||
};
|
||||
|
||||
const char *av_spherical_projection_name(enum AVSphericalProjection projection)
|
||||
|
||||
Reference in New Issue
Block a user