| 24 | #include "spherical.h" |
| 25 | |
| 26 | AVSphericalMapping *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 | |
| 40 | void av_spherical_tile_bounds(const AVSphericalMapping *map, |
| 41 | size_t width, size_t height, |
no test coverage detected