diff options
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r-- | libavutil/pixdesc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index 727e47f06a..fad6d59d87 100644 --- a/libavutil/pixdesc.h +++ b/libavutil/pixdesc.h @@ -22,6 +22,7 @@ #ifndef AVUTIL_PIXDESC_H #define AVUTIL_PIXDESC_H +#include "pixfmt.h" #include <inttypes.h> typedef struct AVComponentDescriptor{ @@ -142,6 +143,14 @@ void av_write_image_line(const uint16_t *src, uint8_t *data[4], const int linesi enum PixelFormat av_get_pix_fmt(const char *name); /** + * Return the short name for a pixel format, NULL in case pix_fmt is + * unknown. + * + * @see av_get_pix_fmt(), av_get_pix_fmt_string() + */ +const char *av_get_pix_fmt_name(enum PixelFormat pix_fmt); + +/** * Print in buf the string corresponding to the pixel format with * number pix_fmt, or an header if pix_fmt is negative. * |