summaryrefslogtreecommitdiffstats
path: root/libavcore/samplefmt.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 22:20:49 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 22:20:49 +0000
commit6f84cd127947394e53a6621e9ed077517df5a6d2 (patch)
tree3693859eec8e3bdadf4a9a9f162aae56173e628e /libavcore/samplefmt.h
parentd63e456a2abcc8c23962f2b8828004c6a35ca1fe (diff)
downloadffmpeg-streaming-6f84cd127947394e53a6621e9ed077517df5a6d2.zip
ffmpeg-streaming-6f84cd127947394e53a6621e9ed077517df5a6d2.tar.gz
Add av_get_bits_per_sample_fmt() to libavcore/samplefmt.h and
deprecate av_get_bits_per_sample_format(). Originally committed as revision 25654 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcore/samplefmt.h')
-rw-r--r--libavcore/samplefmt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcore/samplefmt.h b/libavcore/samplefmt.h
index 482bb48..8779a6f 100644
--- a/libavcore/samplefmt.h
+++ b/libavcore/samplefmt.h
@@ -58,4 +58,13 @@ enum AVSampleFormat av_get_sample_fmt(const char *name);
*/
char *av_get_sample_fmt_string(char *buf, int buf_size, enum AVSampleFormat sample_fmt);
+/**
+ * Return sample format bits per sample.
+ *
+ * @param sample_fmt the sample format
+ * @return number of bits per sample or zero if unknown for the given
+ * sample format
+ */
+int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt);
+
#endif /* AVCORE_SAMPLEFMT_H */
OpenPOWER on IntegriCloud