Go to the documentation of this file.
35 #define OFFSET(x) offsetof(AVAudioResampleContext, x)
36 #define PARAM AV_OPT_FLAG_AUDIO_PARAM
39 {
"in_channel_layout",
"Input Channel Layout",
OFFSET(in_channel_layout),
AV_OPT_TYPE_INT64, { .i64 = 0 }, INT64_MIN, INT64_MAX,
PARAM },
42 {
"out_channel_layout",
"Output Channel Layout",
OFFSET(out_channel_layout),
AV_OPT_TYPE_INT64, { .i64 = 0 }, INT64_MIN, INT64_MAX,
PARAM },
@ AV_SAMPLE_FMT_FLTP
float, planar
AV_RESAMPLE_FILTER_TYPE_KAISER
Kaiser Windowed Sinc.
AVAudioResampleContext * avresample_alloc_context(void)
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
AV_MIX_COEFF_TYPE_Q15
16-bit 8.8 fixed-point
static float kaiser_beta(float att, float tr_bw)
@ AV_SAMPLE_FMT_S32P
signed 32 bits, planar
AV_MIX_COEFF_TYPE_FLT
32-bit 17.15 fixed-point
@ AV_MATRIX_ENCODING_DOLBY
const AVClass * av_class
AVClass for logging and AVOptions
AV_RESAMPLE_DITHER_NB
Number of dither types.
const AVClass * avresample_get_class(void)
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
AV_MIX_COEFF_TYPE_NB
floating-point
AV_RESAMPLE_DITHER_TRIANGULAR_NS
Triangular Dither with Noise Shaping.
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption avresample_options[]
@ AV_SAMPLE_FMT_NB
Number of sample formats. DO NOT USE if linking dynamically.
@ AV_SAMPLE_FMT_U8P
unsigned 8 bits, planar
AV_RESAMPLE_FILTER_TYPE_BLACKMAN_NUTTALL
Blackman Nuttall Windowed Sinc.
@ AV_MATRIX_ENCODING_NONE
AV_RESAMPLE_DITHER_NONE
Do not use dithering.
AV_RESAMPLE_FILTER_TYPE_CUBIC
Cubic.
@ AV_SAMPLE_FMT_S16P
signed 16 bits, planar
static const AVClass av_resample_context_class
@ AV_SAMPLE_FMT_S16
signed 16 bits
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AV_RESAMPLE_DITHER_TRIANGULAR
Triangular Dither.
AV_RESAMPLE_DITHER_RECTANGULAR
Rectangular Dither.
@ AV_SAMPLE_FMT_DBLP
double, planar
AV_RESAMPLE_DITHER_TRIANGULAR_HP
Triangular Dither with High Pass.
@ AV_SAMPLE_FMT_DBL
double
@ AV_SAMPLE_FMT_S32
signed 32 bits
@ AV_MATRIX_ENCODING_DPLII