FFmpeg
Functions | Variables
spherical.c File Reference
#include "mem.h"
#include "spherical.h"

Go to the source code of this file.

Functions

AVSphericalMappingav_spherical_alloc (size_t *size)
 Allocate a AVSphericalVideo structure and initialize its fields to default values. More...
 
void av_spherical_tile_bounds (const AVSphericalMapping *map, size_t width, size_t height, size_t *left, size_t *top, size_t *right, size_t *bottom)
 Convert the bounding fields from an AVSphericalVideo from 0.32 fixed point to pixels. More...
 
const char * av_spherical_projection_name (enum AVSphericalProjection projection)
 Provide a human-readable name of a given AVSphericalProjection. More...
 
int av_spherical_from_name (const char *name)
 Get the AVSphericalProjection form a human-readable name. More...
 

Variables

static const char * spherical_projection_names []
 

Variable Documentation

◆ spherical_projection_names

const char* spherical_projection_names[]
static
Initial value:
= {
[AV_SPHERICAL_EQUIRECTANGULAR] = "equirectangular",
[AV_SPHERICAL_CUBEMAP] = "cubemap",
[AV_SPHERICAL_EQUIRECTANGULAR_TILE] = "tiled equirectangular",
}

Definition at line 54 of file spherical.c.

Referenced by av_spherical_from_name(), and av_spherical_projection_name().

AV_SPHERICAL_EQUIRECTANGULAR_TILE
@ AV_SPHERICAL_EQUIRECTANGULAR_TILE
Video represents a portion of a sphere mapped on a flat surface using equirectangular projection.
Definition: spherical.h:72
AV_SPHERICAL_EQUIRECTANGULAR
@ AV_SPHERICAL_EQUIRECTANGULAR
Video represents a sphere mapped on a flat surface using equirectangular projection.
Definition: spherical.h:56
AV_SPHERICAL_CUBEMAP
@ AV_SPHERICAL_CUBEMAP
Video frame is split into 6 faces of a cube, and arranged on a 3x2 layout.
Definition: spherical.h:65