diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-04 12:56:21 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-04 12:56:21 +0000 |
commit | bb4afa13dd3264832bc379bbfefe1db8cf4f0e40 (patch) | |
tree | 9ec62bfd5a328dda35f0d6c935aad05da3b924d2 /libavutil/pixdesc.h | |
parent | 4da12e3b13d362e0218956a78dd2b8f7a1260265 (diff) | |
download | ffmpeg-bb4afa13dd3264832bc379bbfefe1db8cf4f0e40.tar.gz |
Deprecate avcodec_pix_fmt_string() in favor of
av_get_pix_fmt_string(), added to libavutil/pixdesc.h.
Originally committed as revision 25879 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r-- | libavutil/pixdesc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h index 8d131beb3a..727e47f06a 100644 --- a/libavutil/pixdesc.h +++ b/libavutil/pixdesc.h @@ -142,6 +142,18 @@ 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); /** + * Print in buf the string corresponding to the pixel format with + * number pix_fmt, or an header if pix_fmt is negative. + * + * @param buf the buffer where to write the string + * @param buf_size the size of buf + * @param pix_fmt the number of the pixel format to print the + * corresponding info string, or a negative value to print the + * corresponding header. + */ +char *av_get_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt); + +/** * Return the number of bits per pixel used by the pixel format * described by pixdesc. * |