aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pixdesc.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-30 18:50:00 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-30 18:50:00 +0000
commit80a07f6e47a842ca351ebec3478878204cd1d0b7 (patch)
tree8fd672ac9acafe58958f0de532966c6dcfe8b6f3 /libavutil/pixdesc.h
parent7b0b81a16d16f583b7a871e19ada8ccc1b6b4aa3 (diff)
downloadffmpeg-80a07f6e47a842ca351ebec3478878204cd1d0b7.tar.gz
Implement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().
Originally committed as revision 21545 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r--libavutil/pixdesc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index c8743487c9..1fa571f405 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -203,6 +203,19 @@ static inline void write_line(const uint16_t *src, uint8_t *data[4], const int l
}
/**
+ * Returns the pixel format corresponding to name.
+ *
+ * If there is no pixel format with name name, then looks for a
+ * pixel format with the name corresponding to the native endian
+ * format of name.
+ * For example in a little-endian system, first looks for "gray16",
+ * then for "gray16le".
+ *
+ * Finally if no pixel format has been found, returns PIX_FMT_NONE.
+ */
+enum PixelFormat av_get_pix_fmt(const char *name);
+
+/**
* Returns the number of bits per pixel used by the pixel format
* described by pixdesc.
*