diff options
author | Clément Bœsch <clement@stupeflix.com> | 2016-06-23 12:38:51 +0200 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2016-06-23 12:38:51 +0200 |
commit | abb3cc46d595dcb186ae30ec7339a56cd9803f45 (patch) | |
tree | 6397a8cdb89841f13ef23c8f860fe5eac4c253ec /libavutil/stereo3d.h | |
parent | 5954730ba35ca223e7ba520ade9d589e158c1ede (diff) | |
parent | 0c4468dc185fa8b9e7d6add914595c5e928b24fd (diff) | |
download | ffmpeg-abb3cc46d595dcb186ae30ec7339a56cd9803f45.tar.gz |
Merge commit '0c4468dc185fa8b9e7d6add914595c5e928b24fd'
* commit '0c4468dc185fa8b9e7d6add914595c5e928b24fd':
stereo3d: Add API to get name from value or value from name
Merged-by: Clément Bœsch <clement@stupeflix.com>
Diffstat (limited to 'libavutil/stereo3d.h')
-rw-r--r-- | libavutil/stereo3d.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavutil/stereo3d.h b/libavutil/stereo3d.h index 1135dc9ddc..19c541643e 100644 --- a/libavutil/stereo3d.h +++ b/libavutil/stereo3d.h @@ -149,4 +149,22 @@ AVStereo3D *av_stereo3d_alloc(void); */ AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame); +/** + * Provide a human-readable name of a given stereo3d type. + * + * @param type The input stereo3d type value. + * + * @return The name of the stereo3d value, or "unknown". + */ +const char *av_stereo3d_type_name(unsigned int type); + +/** + * Get the AVStereo3DType form a human-readable name. + * + * @param type The input string. + * + * @return The AVStereo3DType value, or -1 if not found. + */ +int av_stereo3d_from_name(const char *name); + #endif /* AVUTIL_STEREO3D_H */ |