diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-09-26 14:15:25 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-08 18:17:49 +0100 |
commit | 5a419b2dd1881889d436f55741fd3ff3f9f436c4 (patch) | |
tree | 66d406037b11884a24f35498b7249e6dbf7ddd7a /libavutil/pixdesc.h | |
parent | 04ccd584a70fad4ebb29ca340d704970ff313cbc (diff) | |
download | ffmpeg-5a419b2dd1881889d436f55741fd3ff3f9f436c4.tar.gz |
pixdesc: return color properties names
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r-- | libavutil/pixdesc.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index 1c9e0af11f..23dc009a12 100644 --- a/libavutil/pixdesc.h +++ b/libavutil/pixdesc.h @@ -291,4 +291,29 @@ int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt); */ enum AVPixelFormat av_pix_fmt_swap_endianness(enum AVPixelFormat pix_fmt); +/** + * @return the name for provided color range or NULL if unknown. + */ +const char *av_color_range_name(enum AVColorRange range); + +/** + * @return the name for provided color primaries or NULL if unknown. + */ +const char *av_color_primaries_name(enum AVColorPrimaries primaries); + +/** + * @return the name for provided color transfer or NULL if unknown. + */ +const char *av_color_transfer_name(enum AVColorTransferCharacteristic transfer); + +/** + * @return the name for provided color space or NULL if unknown. + */ +const char *av_color_space_name(enum AVColorSpace space); + +/** + * @return the name for provided chroma location or NULL if unknown. + */ +const char *av_chroma_location_name(enum AVChromaLocation location); + #endif /* AVUTIL_PIXDESC_H */ |