MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_spherical_alloc

Function av_spherical_alloc

libavutil/spherical.c:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "spherical.h"
25
26AVSphericalMapping *av_spherical_alloc(size_t *size)
27{
28 AVSphericalMapping *spherical = av_mallocz(sizeof(AVSphericalMapping));
29 if (!spherical)
30 return NULL;
31
32 spherical->projection = AV_SPHERICAL_RECTILINEAR;
33
34 if (size)
35 *size = sizeof(*spherical);
36
37 return spherical;
38}
39
40void av_spherical_tile_bounds(const AVSphericalMapping *map,
41 size_t width, size_t height,

Callers 4

mov_read_sv3dFunction · 0.85
mov_read_vexu_projFunction · 0.85
mov_parse_uuid_sphericalFunction · 0.85

Calls 1

av_malloczFunction · 0.70

Tested by

no test coverage detected