A spherical video file contains surfaces that need to be mapped onto a sphere. Depending on how the frame was converted, a different distortion transformation or surface recomposition function needs to be applied before the video should be mapped and displayed.
Projection of the video surface(s) on a sphere.
| Enumerator | |
|---|---|
| AV_SPHERICAL_EQUIRECTANGULAR | Video represents a sphere mapped on a flat surface using equirectangular projection. |
| AV_SPHERICAL_CUBEMAP | Video frame is split into 6 faces of a cube, and arranged on a 3x2 layout. Faces are oriented upwards for the front, left, right, and back faces. The up face is oriented so the top of the face is forwards and the down face is oriented so the top of the face is to the back. |
| AV_SPHERICAL_EQUIRECTANGULAR_TILE | Video represents a portion of a sphere mapped on a flat surface using equirectangular projection. The bounding fields indicate the position of the current video in a larger surface. |
| AV_SPHERICAL_HALF_EQUIRECTANGULAR | Video frame displays as a 180 degree equirectangular projection. |
| AV_SPHERICAL_RECTILINEAR | Video frame displays on a flat, rectangular 2D surface. |
| AV_SPHERICAL_FISHEYE | Fisheye projection (Apple). See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/fisheye |
| AV_SPHERICAL_PARAMETRIC_IMMERSIVE | Parametric Immersive projection (Apple). See: https://developer.apple.com/documentation/coremedia/cmprojectiontype/parametricimmersive |
Definition at line 47 of file spherical.h.
Allocate a AVSphericalVideo structure and initialize its fields to default values.
Definition at line 26 of file spherical.c.
Referenced by mov_parse_uuid_spherical(), mov_read_sv3d(), and mov_read_vexu_proj().
Convert the bounding fields from an AVSphericalVideo from 0.32 fixed point to pixels.
Definition at line 40 of file spherical.c.
Referenced by dump_spherical(), and print_pkt_side_data().
Provide a human-readable name of a given AVSphericalProjection.
Definition at line 68 of file spherical.c.
Referenced by dump_spherical(), and print_pkt_side_data().
Get the AVSphericalProjection form a human-readable name.
Definition at line 76 of file spherical.c.