From 5a419b2dd1881889d436f55741fd3ff3f9f436c4 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 26 Sep 2014 14:15:25 +0100 Subject: pixdesc: return color properties names --- libavutil/pixdesc.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'libavutil/pixdesc.h') 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 */ -- cgit v1.2.3