#include "avcore.h"#include "samplefmt.h"Go to the source code of this file.
Data Structures | |
| struct | SampleFmtInfo |
Functions | |
| const char * | av_get_sample_fmt_name (enum AVSampleFormat sample_fmt) |
| Return the name of sample_fmt, or NULL if sample_fmt is not recognized. | |
| enum AVSampleFormat | av_get_sample_fmt (const char *name) |
| Return a sample format corresponding to name, or AV_SAMPLE_FMT_NONE on error. | |
| char * | av_get_sample_fmt_string (char *buf, int buf_size, enum AVSampleFormat sample_fmt) |
| Generate a string corresponding to the sample format with sample_fmt, or a header if sample_fmt is negative. | |
| int | av_get_bits_per_sample_fmt (enum AVSampleFormat sample_fmt) |
| Return sample format bits per sample. | |
Variables | |
| static const SampleFmtInfo | sample_fmt_info [AV_SAMPLE_FMT_NB] |
| this table gives more information about formats | |
| int av_get_bits_per_sample_fmt | ( | enum AVSampleFormat | sample_fmt | ) |
Return sample format bits per sample.
| sample_fmt | the sample format |
Definition at line 66 of file samplefmt.c.
Referenced by audio_decode_frame(), av_audio_resample_init(), av_get_bits_per_sample_format(), avfilter_default_get_audio_buffer(), decode_frame(), decode_init(), do_audio_out(), mkv_write_tracks(), and output_packet().
| enum AVSampleFormat av_get_sample_fmt | ( | const char * | name | ) |
Return a sample format corresponding to name, or AV_SAMPLE_FMT_NONE on error.
Definition at line 43 of file samplefmt.c.
Referenced by avcodec_get_sample_fmt(), and opt_audio_sample_fmt().
| const char* av_get_sample_fmt_name | ( | enum AVSampleFormat | sample_fmt | ) |
Return the name of sample_fmt, or NULL if sample_fmt is not recognized.
Definition at line 36 of file samplefmt.c.
Referenced by audio_decode_frame(), av_audio_resample_init(), avcodec_get_sample_fmt_name(), avcodec_string(), do_audio_out(), ff_dprintf_link(), and print_digraph().
| char* av_get_sample_fmt_string | ( | char * | buf, | |
| int | buf_size, | |||
| enum AVSampleFormat | sample_fmt | |||
| ) |
Generate a string corresponding to the sample format with sample_fmt, or a header if sample_fmt is negative.
| buf | the buffer where to write the string | |
| buf_size | the size of buf | |
| sample_fmt | the number of the sample format to print the corresponding info string, or a negative value to print the corresponding header. |
Definition at line 53 of file samplefmt.c.
Referenced by avcodec_sample_fmt_string(), and opt_audio_sample_fmt().
const SampleFmtInfo sample_fmt_info[AV_SAMPLE_FMT_NB] [static] |
Initial value:
{
[AV_SAMPLE_FMT_U8] = { .name = "u8", .bits = 8 },
[AV_SAMPLE_FMT_S16] = { .name = "s16", .bits = 16 },
[AV_SAMPLE_FMT_S32] = { .name = "s32", .bits = 32 },
[AV_SAMPLE_FMT_FLT] = { .name = "flt", .bits = 32 },
[AV_SAMPLE_FMT_DBL] = { .name = "dbl", .bits = 64 },
}
Definition at line 28 of file samplefmt.c.
1.5.6