diff options
author | James Almer <jamrial@gmail.com> | 2017-03-29 05:49:40 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-31 19:26:56 +0300 |
commit | 9033e8723c86ed31872b22bd576602d48e2b9d0e (patch) | |
tree | 31575f1baae237a2304564f8f9e7b8d531e5f97a /libavutil/spherical.h | |
parent | 76dd87c9296917bf6394b2a41820f92aeaeae447 (diff) |
avutil/spherical: add av_spherical_projection_name()
Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/spherical.h')
-rw-r--r-- | libavutil/spherical.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavutil/spherical.h b/libavutil/spherical.h index a7952875af..cef759cf27 100644 --- a/libavutil/spherical.h +++ b/libavutil/spherical.h @@ -206,6 +206,24 @@ 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); + +/** + * Provide a human-readable name of a given AVSphericalProjection. + * + * @param projection The input AVSphericalProjection. + * + * @return The name of the AVSphericalProjection, or "unknown". + */ +const char *av_spherical_projection_name(enum AVSphericalProjection projection); + +/** + * Get the AVSphericalProjection form a human-readable name. + * + * @param name The input string. + * + * @return The AVSphericalProjection value, or -1 if not found. + */ +int av_spherical_from_name(const char *name); /** * @} * @} |