summaryrefslogtreecommitdiff
path: root/libavcodec/codec_id.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/codec_id.h')
-rw-r--r--libavcodec/codec_id.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h
index 83e1dbb4b3..6141268096 100644
--- a/libavcodec/codec_id.h
+++ b/libavcodec/codec_id.h
@@ -581,6 +581,24 @@ enum AVMediaType avcodec_get_type(enum AVCodecID codec_id);
const char *avcodec_get_name(enum AVCodecID id);
/**
+ * Return codec bits per sample.
+ *
+ * @param[in] codec_id the codec
+ * @return Number of bits per sample or zero if unknown for the given codec.
+ */
+int av_get_bits_per_sample(enum AVCodecID codec_id);
+
+/**
+ * Return codec bits per sample.
+ * Only return non-zero if the bits per sample is exactly correct, not an
+ * approximation.
+ *
+ * @param[in] codec_id the codec
+ * @return Number of bits per sample or zero if unknown for the given codec.
+ */
+int av_get_exact_bits_per_sample(enum AVCodecID codec_id);
+
+/**
* @}
*/