ffmpeg.libswresample.audioconvert

Undocumented in source.

Members

Aliases

conv_func_type
alias conv_func_type = void function(ubyte* po, const(ubyte)* pi, int is_, int os, ubyte* end)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
simd_func_type
alias simd_func_type = void function(ubyte** dst, const(ubyte*)* src, int len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

swri_audio_convert
int swri_audio_convert(AudioConvert* ctx, AudioData* out_a_b, AudioData* in_a_b, int len)

Convert between audio sample formats @paramin out array of output buffers for each channel. set to NULL to ignore processing of the given channel. @paramin in array of input buffers for each channel @param len length of audio frame size (measured in samples)

swri_audio_convert_alloc
AudioConvert* swri_audio_convert_alloc(AVSampleFormat out_fmt, AVSampleFormat in_fmt, int channels, int* ch_map, int flags)

Create an audio sample format converter context @param out_fmt Output sample format @param in_fmt Input sample format @param channels Number of channels @param flags See AV_CPU_FLAG_xx @param ch_map list of the channels id to pick from the source stream, NULL if all channels must be selected @return NULL on error

swri_audio_convert_free
void swri_audio_convert_free(AudioConvert** ctx)

Free audio sample format converter context. and set the pointer to NULL

Structs

AudioConvert
struct AudioConvert
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta