#include "avutil.h"Go to the source code of this file.
all in native-endian format
Definition at line 27 of file samplefmt.h.
Return the planar<->packed alternative form of the given sample format, or AV_SAMPLE_FMT_NONE on error.
If the passed sample_fmt is already in the requested planar/packed format, the format returned is the same as the input.
Definition at line 63 of file samplefmt.c.
Referenced by avfilter_default_get_audio_buffer(), get(), main(), set(), and swr_init().
Return number of bytes per sample.
Definition at line 85 of file samplefmt.c.
Referenced by audio_decode_frame(), av_asrc_buffer_add_buffer(), av_audio_resample_init(), av_get_bits_per_sample_format(), av_samples_get_buffer_size(), config_output(), decode_frame(), decode_init(), do_audio_out(), encode_audio_frame(), filter_samples(), flush_encoders(), init_buffers(), lavfi_read_packet(), mkv_write_tracks(), REMATRIX_FUNC_SIG(), sdl_audio_callback(), setup_array(), swr_init(), transcode_audio(), vmdaudio_decode_init(), and wavpack_decode_block().
Return a sample format corresponding to name, or AV_SAMPLE_FMT_NONE on error.
Definition at line 53 of file samplefmt.c.
Referenced by avcodec_get_sample_fmt(), ff_parse_sample_format(), and new_audio_stream().
Return the name of sample_fmt, or NULL if sample_fmt is not recognized.
Definition at line 46 of file samplefmt.c.
Referenced by audio_decode_frame(), av_audio_resample_init(), avcodec_get_sample_fmt_name(), avcodec_string(), choose_sample_fmt(), config_output(), do_audio_out(), dprint_options(), ff_dlog_link(), filter_samples(), init(), log_input_change(), main(), print_digraph(), show_frame(), show_stream(), snprint_link_prop(), swr_init(), and transcode_audio().
Generate a string corresponding to the sample format with sample_fmt, or a header if sample_fmt is negative.
Definition at line 72 of file samplefmt.c.
Referenced by avcodec_sample_fmt_string(), and show_sample_fmts().
Check if the sample format is planar.
Definition at line 99 of file samplefmt.c.
Referenced by av_samples_fill_arrays(), av_samples_get_buffer_size(), avcodec_decode_audio3(), avcodec_fill_audio_frame(), get(), set(), setup_array(), and swr_init().
Allocate a samples buffer for nb_samples samples, and fill data pointers and linesize accordingly.
The allocated samples buffer can be freed by using av_freep(&audio_data[0])
Definition at line 149 of file samplefmt.c.
Referenced by avfilter_default_get_audio_buffer(), and init_buffers().
Fill channel data pointers and linesize for samples with sample format sample_fmt.
The pointers array is filled with the pointers to the samples data: for planar, set the start point of each channel's data within the buffer, for packed, set the start point of the entire buffer only.
The linesize array is filled with the aligned size of each channel's data buffer for planar layout, or the aligned size of the buffer for all channels for packed layout.
Definition at line 130 of file samplefmt.c.
Referenced by av_asrc_buffer_add_buffer(), av_samples_alloc(), and avcodec_fill_audio_frame().
Get the required buffer size for the given audio parameters.
Definition at line 106 of file samplefmt.c.
Referenced by audio_decode_example(), audio_decode_frame(), audio_get_buffer(), av_samples_alloc(), av_samples_fill_arrays(), avcodec_decode_audio3(), avcodec_encode_audio(), avcodec_fill_audio_frame(), and sdl_audio_callback().