21 #include "libavutil/mathematics.h"
22 #include "libavutil/mem.h"
23 #include "libavutil/opt.h"
33 #define OFFSET(x) offsetof(AVAudioResampleContext, x)
34 #define PARAM AV_OPT_FLAG_AUDIO_PARAM
37 {
"in_channel_layout",
"Input Channel Layout",
OFFSET(in_channel_layout),
AV_OPT_TYPE_INT64, { .i64 = 0 }, INT64_MIN, INT64_MAX,
PARAM },
40 {
"out_channel_layout",
"Output Channel Layout",
OFFSET(out_channel_layout),
AV_OPT_TYPE_INT64, { .i64 = 0 }, INT64_MIN, INT64_MAX,
PARAM },
Number of sample formats. DO NOT USE if linking dynamically.
#define LIBAVUTIL_VERSION_INT
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
Triangular Dither with Noise Shaping.
Triangular Dither with High Pass.
const char * av_default_item_name(void *ctx)
Return the context name.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
const AVClass * avresample_get_class(void)
Get the AVClass for AVAudioResampleContext.
AVAudioResampleContext * avresample_alloc_context(void)
Allocate AVAudioResampleContext and set options.
const AVClass * av_class
AVClass for logging and AVOptions.
static const AVOption avresample_options[]
Describe the class of an AVClass context structure.
Blackman Nuttall Windowed Sinc.
static const AVClass av_resample_context_class
void * av_mallocz(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...