diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-27 23:20:30 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-27 23:20:30 +0000 |
commit | 5efccce2a9191ded328233ab68a0767661a26679 (patch) | |
tree | 07b028878e03463cc5b0806cd5efec25a846ff66 /libavcodec/pixdesc.h | |
parent | 859471565a2356a6e8b58879f73e84b229bfdc40 (diff) | |
download | ffmpeg-5efccce2a9191ded328233ab68a0767661a26679.tar.gz |
Implement av_get_bits_per_pixel().
Originally committed as revision 18709 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pixdesc.h')
-rw-r--r-- | libavcodec/pixdesc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/pixdesc.h b/libavcodec/pixdesc.h index 6660ea1710..0a2acab719 100644 --- a/libavcodec/pixdesc.h +++ b/libavcodec/pixdesc.h @@ -193,4 +193,14 @@ static inline void write_line(const uint16_t *src, uint8_t *data[4], const int l } } +/** + * Returns the number of bits per pixel used by the pixel format + * described by pixdesc. + * + * The returned number of bits refers to the number of bits actually + * used for storing the pixel information, that is padding bits are + * not counted. + */ +int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc); + #endif /* AVCODEC_PIXDESC_H */ |