|
|
|
@@ -19,6 +19,8 @@ |
|
|
|
#ifndef AVUTIL_SAMPLEFMT_H |
|
|
|
#define AVUTIL_SAMPLEFMT_H |
|
|
|
|
|
|
|
#include "avutil.h" |
|
|
|
|
|
|
|
/** |
|
|
|
* all in native-endian format |
|
|
|
*/ |
|
|
|
@@ -58,13 +60,21 @@ enum AVSampleFormat av_get_sample_fmt(const char *name); |
|
|
|
*/ |
|
|
|
char *av_get_sample_fmt_string(char *buf, int buf_size, enum AVSampleFormat sample_fmt); |
|
|
|
|
|
|
|
#if FF_API_GET_BITS_PER_SAMPLE_FMT |
|
|
|
/** |
|
|
|
* @deprecated Use av_get_bytes_per_sample() instead. |
|
|
|
*/ |
|
|
|
attribute_deprecated |
|
|
|
int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt); |
|
|
|
#endif |
|
|
|
|
|
|
|
/** |
|
|
|
* Return sample format bits per sample. |
|
|
|
* Return number of bytes per sample. |
|
|
|
* |
|
|
|
* @param sample_fmt the sample format |
|
|
|
* @return number of bits per sample or zero if unknown for the given |
|
|
|
* @return number of bytes per sample or zero if unknown for the given |
|
|
|
* sample format |
|
|
|
*/ |
|
|
|
int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt); |
|
|
|
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt); |
|
|
|
|
|
|
|
#endif /* AVUTIL_SAMPLEFMT_H */ |