Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-21 19:45:54 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-11-21 20:05:50 +0400
commit649d8bd8a56d8bffe9dd3143cd48082ae187961a (patch)
treec97d92cba511d3d479677fc0603f34abe08a3b89 /libavutil/pixdesc.h
parentad9333d5ef82f74dc470744f19f1350fabc93aa4 (diff)
pixdesc: add av_get_padded_bits_per_pixel()
This will be needed to allow removing the PixFmtInfo table Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/pixdesc.h')
-rw-r--r--libavutil/pixdesc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index 59fd1fff25..ca0722e1f4 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -189,6 +189,12 @@ char *av_get_pix_fmt_string (char *buf, int buf_size, enum AVPixelFormat pix_fmt
int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc);
/**
+ * Return the number of bits per pixel for the pixel format
+ * described by pixdesc, including any padding or unused bits.
+ */
+int av_get_padded_bits_per_pixel(const AVPixFmtDescriptor *pixdesc);
+
+/**
* @return a pixel format descriptor for provided pixel format or NULL if
* this pixel format is unknown.
*/