Libav
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
audio_convert.c File Reference
#include <stdint.h>
#include "config.h"
#include "libavutil/common.h"
#include "libavutil/libm.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/samplefmt.h"
#include "audio_convert.h"
#include "audio_data.h"
#include "dither.h"

Go to the source code of this file.

Data Structures

struct  AudioConvert
 

Macros

#define CONV_FUNC_NAME(dst_fmt, src_fmt)   conv_ ## src_fmt ## _to_ ## dst_fmt
 
#define CONV_LOOP(otype, expr)
 
#define CONV_FUNC_FLAT(ofmt, otype, ifmt, itype, expr)
 
#define CONV_FUNC_INTERLEAVE(ofmt, otype, ifmt, itype, expr)
 
#define CONV_FUNC_DEINTERLEAVE(ofmt, otype, ifmt, itype, expr)
 
#define CONV_FUNC_GROUP(ofmt, otype, ifmt, itype, expr)
 
#define SET_CONV_FUNC_GROUP(ofmt, ifmt)
 

Typedefs

typedef void() conv_func_flat(uint8_t *out, const uint8_t *in, int len)
 
typedef void() conv_func_interleave(uint8_t *out, uint8_t *const *in, int len, int channels)
 
typedef void() conv_func_deinterleave(uint8_t **out, const uint8_t *in, int len, int channels)
 

Enumerations

enum  ConvFuncType { CONV_FUNC_TYPE_FLAT, CONV_FUNC_TYPE_INTERLEAVE, CONV_FUNC_TYPE_DEINTERLEAVE }
 

Functions

void ff_audio_convert_set_func (AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int ptr_align, int samples_align, const char *descr, void *conv)
 Set conversion function if the parameters match. More...
 
 CONV_FUNC_GROUP (AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80)<< 8) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32
 
 if (ac->has_optimized_func)
 
 av_log (ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
 

Variables

 int32_t
 
 AV_SAMPLE_FMT_U8
 
 uint8_t
 
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> dc
 
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> out
 
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> in
 
 else
 
 return
 

Macro Definition Documentation

◆ CONV_FUNC_NAME

#define CONV_FUNC_NAME (   dst_fmt,
  src_fmt 
)    conv_ ## src_fmt ## _to_ ## dst_fmt

Definition at line 134 of file audio_convert.c.

◆ CONV_LOOP

#define CONV_LOOP (   otype,
  expr 
)
Value:
do { \
*(otype *)po = expr; \
pi += is; \
po += os; \
} while (po < end); \

Definition at line 136 of file audio_convert.c.

◆ CONV_FUNC_FLAT

#define CONV_FUNC_FLAT (   ofmt,
  otype,
  ifmt,
  itype,
  expr 
)
Value:
static void CONV_FUNC_NAME(ofmt, ifmt)(uint8_t *out, const uint8_t *in, \
int len) \
{ \
int is = sizeof(itype); \
int os = sizeof(otype); \
const uint8_t *pi = in; \
uint8_t *po = out; \
uint8_t *end = out + os * len; \
CONV_LOOP(otype, expr) \
}
uint8_t
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> out
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> in
#define CONV_FUNC_NAME(dst_fmt, src_fmt)
int len

Definition at line 143 of file audio_convert.c.

◆ CONV_FUNC_INTERLEAVE

#define CONV_FUNC_INTERLEAVE (   ofmt,
  otype,
  ifmt,
  itype,
  expr 
)
Value:
static void CONV_FUNC_NAME(ofmt, ifmt)(uint8_t *out, const uint8_t **in, \
int len, int channels) \
{ \
int ch; \
int out_bps = sizeof(otype); \
int is = sizeof(itype); \
int os = channels * out_bps; \
for (ch = 0; ch < channels; ch++) { \
const uint8_t *pi = in[ch]; \
uint8_t *po = out + ch * out_bps; \
uint8_t *end = po + os * len; \
CONV_LOOP(otype, expr) \
} \
}
uint8_t
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> out
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> in
#define CONV_FUNC_NAME(dst_fmt, src_fmt)
int len

Definition at line 155 of file audio_convert.c.

◆ CONV_FUNC_DEINTERLEAVE

#define CONV_FUNC_DEINTERLEAVE (   ofmt,
  otype,
  ifmt,
  itype,
  expr 
)
Value:
static void CONV_FUNC_NAME(ofmt, ifmt)(uint8_t **out, const uint8_t *in, \
int len, int channels) \
{ \
int ch; \
int in_bps = sizeof(itype); \
int is = channels * in_bps; \
int os = sizeof(otype); \
for (ch = 0; ch < channels; ch++) { \
const uint8_t *pi = in + ch * in_bps; \
uint8_t *po = out[ch]; \
uint8_t *end = po + os * len; \
CONV_LOOP(otype, expr) \
} \
}
uint8_t
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> out
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if(! *ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);} AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method !=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2) { ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc) { av_free(ac);return NULL;} return ac;} in_planar=ff_sample_fmt_is_planar(in_fmt, channels);out_planar=ff_sample_fmt_is_planar(out_fmt, channels);if(in_planar==out_planar) { ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar ? ac->channels :1;} else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_AARCH64) ff_audio_convert_init_aarch64(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;} int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic=1;int len=in->nb_samples;int p;if(ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> in
#define CONV_FUNC_NAME(dst_fmt, src_fmt)
int len

Definition at line 171 of file audio_convert.c.

◆ CONV_FUNC_GROUP

#define CONV_FUNC_GROUP (   ofmt,
  otype,
  ifmt,
  itype,
  expr 
)
Value:
CONV_FUNC_FLAT( ofmt, otype, ifmt, itype, expr) \
CONV_FUNC_INTERLEAVE( ofmt, otype, ifmt ## P, itype, expr) \
CONV_FUNC_DEINTERLEAVE(ofmt ## P, otype, ifmt, itype, expr)
#define CONV_FUNC_FLAT(ofmt, otype, ifmt, itype, expr)

Definition at line 187 of file audio_convert.c.

◆ SET_CONV_FUNC_GROUP

#define SET_CONV_FUNC_GROUP (   ofmt,
  ifmt 
)
Value:
ff_audio_convert_set_func(ac, ofmt, ifmt, 0, 1, 1, "C", CONV_FUNC_NAME(ofmt, ifmt)); \
ff_audio_convert_set_func(ac, ofmt ## P, ifmt, 0, 1, 1, "C", CONV_FUNC_NAME(ofmt ## P, ifmt)); \
ff_audio_convert_set_func(ac, ofmt, ifmt ## P, 0, 1, 1, "C", CONV_FUNC_NAME(ofmt, ifmt ## P));
#define CONV_FUNC_NAME(dst_fmt, src_fmt)
void ff_audio_convert_set_func(AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int ptr_align, int samples_align, const char *descr, void *conv)
Set conversion function if the parameters match.
Definition: audio_convert.c:70

Typedef Documentation

◆ conv_func_flat

typedef void() conv_func_flat(uint8_t *out, const uint8_t *in, int len)

Definition at line 40 of file audio_convert.c.

◆ conv_func_interleave

typedef void() conv_func_interleave(uint8_t *out, uint8_t *const *in, int len, int channels)

Definition at line 42 of file audio_convert.c.

◆ conv_func_deinterleave

typedef void() conv_func_deinterleave(uint8_t **out, const uint8_t *in, int len, int channels)

Definition at line 45 of file audio_convert.c.

Enumeration Type Documentation

◆ ConvFuncType

Enumerator
CONV_FUNC_TYPE_FLAT 
CONV_FUNC_TYPE_INTERLEAVE 
CONV_FUNC_TYPE_DEINTERLEAVE 

Definition at line 34 of file audio_convert.c.

Function Documentation

◆ ff_audio_convert_set_func()

void ff_audio_convert_set_func ( AudioConvert ac,
enum AVSampleFormat  out_fmt,
enum AVSampleFormat  in_fmt,
int  channels,
int  ptr_align,
int  samples_align,
const char *  descr,
void conv 
)

Set conversion function if the parameters match.

This compares the parameters of the conversion function to the parameters in the AudioConvert context. If the parameters do not match, no changes are made to the active functions. If the parameters do match and the alignment is not constrained, the function is set as the generic conversion function. If the parameters match and the alignment is constrained, the function is set as the optimized conversion function.

Parameters
acAudioConvert context
out_fmtoutput sample format
in_fmtinput sample format
channelsnumber of channels, or 0 for any number of channels
ptr_alignbuffer pointer alignment, in bytes
samples_alignbuffer size alignment, in samples
descrfunction type description (e.g. "C" or "SSE")
convconversion function pointer

Definition at line 70 of file audio_convert.c.

Referenced by ff_audio_convert_init_aarch64(), ff_audio_convert_init_arm(), and ff_audio_convert_init_x86().

◆ CONV_FUNC_GROUP()

CONV_FUNC_GROUP ( AV_SAMPLE_FMT_S16  ,
int16_t  ,
AV_SAMPLE_FMT_U8  ,
uint8_t  ,
(*(const uint8_t *) pi - 0x80)<<  8 
)

◆ if()

if ( ac->  has_optimized_func)

Definition at line 331 of file audio_convert.c.

Referenced by aac_decode_frame_int(), aac_encode_init(), ac3_eac3_probe(), adpcm_encode_init(), adx_encode_frame(), amr_decode_fix_avctx(), amr_wb_encode_frame(), ape_decode_value_3900(), ape_read_header(), apply_lpc(), asf_read_subpayload(), atrac3p_decode_frame(), av_hwdevice_ctx_create(), av_hwdevice_ctx_init(), av_hwdevice_get_hwframe_constraints(), av_hwdevice_hwconfig_alloc(), av_hwframe_get_buffer(), av_hwframe_transfer_get_formats(), av_reduce(), avcodec_open2(), average_quantized_coeffs(), avfilter_config_links(), avformat_open_input(), binkb_read_bundle(), blend_subrect(), buffer_offset(), cavsvideo_probe(), celt_decode_allocation(), check_header_mismatch(), check_idct(), check_idct_dc4(), check_loopfilter_simple(), check_luma_dc_wht(), cinaudio_decode_frame(), cmv_decode_inter(), cng_encode_frame(), commit_bitstream_and_slice_buffer(), construct_perm_table(), control_port_cb(), dca_decode_frame(), deblocking_filter_CTB(), decode_5(), decode_buffering_period(), decode_cabac_mb_skip(), decode_chunks(), decode_exp_vlc(), decode_frame(), decode_init(), decode_init_thread_copy(), decode_mb_mode(), decode_mode(), decode_ppc(), decode_slice_header(), decode_subframe(), decode_tilehdr(), dump_audioservicetype(), dump_cpb(), dv_extract_audio(), dv_inject_audio(), ebml_parse_elem(), eightsvx_decode_frame(), encode_frame(), encode_mb_internal(), ff_ac3_compute_coupling_strategy(), ff_alloc_picture(), ff_cavs_next_mb(), ff_combine_frame(), ff_dca_xll_decode_audio(), ff_dca_xll_decode_header(), ff_estimate_p_frame_motion(), ff_get_format(), ff_h264_decode_picture_parameter_set(), ff_h264_execute_decode_slices(), ff_h264_init_poc(), ff_hevc_split_coding_unit_flag_decode(), ff_id3v2_write_apic(), ff_imdct15_init(), ff_intrax8_decode_picture(), ff_mjpeg_decode_sos(), ff_mpeg4_encode_mb(), ff_mpv_common_init(), ff_mpv_encode_picture(), ff_qsv_enc_init(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_sws_init_swscale_x86(), ff_thread_await_progress(), ff_thread_release_buffer(), ff_thread_report_progress(), fill_picture_parameters(), filter_frame(), find_next_parse_unit(), find_ref_mvs(), flashsv_encode_frame(), flic_decode_init(), flush(), g723_1_decode_frame(), generate_joint_tables(), get_audio_frame(), get_block_sizes(), h263_probe(), h264_decode_frame(), h264_init_ps(), h264_probe(), h264_slice_header_parse(), handle_packet(), hds_write_packet(), hevc_probe(), hl_decode_mb_444(), hls_coding_unit(), hls_slice_header(), hls_write_header(), hq_decode_frame(), hqx_decode_422a(), hqx_decode_444a(), hyscale(), imc_refine_bit_allocation(), init(), init_dequant_tables(), init_video_param(), input_callback(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0xA(), ivi_dc_transform(), ivi_decode_coded_blocks(), kempf_decode_tile(), libgsm_encode_frame(), libspeex_decode_frame(), loop_filter(), magy_decode_frame(), mask_edges(), matroska_probe(), mc_part_std(), mc_part_weighted(), mjpeg2jpeg_filter(), mlp_parse(), mm_decode_inter(), mmsh_close(), motion_search(), mov_parse_mpeg2_frame(), mov_parse_vc1_frame(), mov_read_extradata(), mov_write_trailer(), mp3_read_probe(), mp_decode_frame(), mpeg1_encode_sequence_header(), mpeg4_decode_mb(), mpeg4_decode_partitioned_mb(), mpeg4video_probe(), mpeg_decode_mb(), mpeg_decode_slice(), mpeg_mux_init(), mpegps_probe(), mpegvideo_probe(), mtv_read_header(), mxf_interleave_get_packet(), mxf_parse_mpeg2_frame(), nppscale_filter_frame(), nut_probe(), ogg_read_page(), open_input_file(), parse_nal_units(), pcm_dvd_decode_frame(), pcm_encode_frame(), piz_uncompress(), pnm_decode_frame(), pred_spatial_direct_motion(), pred_temp_direct_motion(), put_dc(), qcelp_decode_frame(), qdm2_decode(), qdm2_fft_tone_synthesizer(), qsv_decode_init(), qsv_init_child_ctx(), ra144_encode_frame(), read_header(), read_major_sync(), read_old_huffman_tables(), read_var_block_data(), remove_wasted_bits(), rpza_decode_stream(), rtmp_calc_swf_verification(), rtsp_read_packet(), s302m_decode_frame(), sbr_hf_calc_npatches(), sbr_make_f_master(), select_input_picture(), seqvideo_decode(), set_channel_info(), set_palette(), shorten_decode_frame(), smc_decode_stream(), store_packet(), stream_setup(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_mb(), synth_block_fcb_acb(), synth_superframe(), tm2_decode_blocks(), uninit_options(), unpack_superblocks(), unpack_vlcs(), vaapi_frames_init(), vaapi_mpeg4_start_frame(), vc1_apply_p_h_loop_filter(), vc1_decode_b_mb(), vc1_decode_b_mb_intfi(), vc1_decode_b_mb_intfr(), vc1_decode_p_mb_intfi(), vc1_decode_p_mb_intfr(), vc1_put_signed_blocks_clamped(), vda_old_h264_end_frame(), vmd_decode(), vmdaudio_decode_frame(), vorbis_encode_frame(), vorbis_parse_setup_hdr_codebooks(), vp9_frame_alloc(), wiener_denoise(), wma_decode_superframe(), wsvqa_read_header(), XAVS_init(), xvid_encode_frame(), xvid_ff_2pass_create(), and yuv4_write_packet().

◆ av_log()

av_log ( ac->  avr,
AV_LOG_TRACE  ,
"%d samples - audio_convert: %s to %s (%s)\  ,
len  ,
av_get_sample_fmt_name(ac->in_fmt)  ,
av_get_sample_fmt_name(ac->out_fmt)  ,
use_generic ? ac->func_descr_generic :ac->  func_descr 
)

Referenced by a64_write_header(), a64multi_encode_frame(), a64multi_encode_init(), aac_adtstoasc_filter(), aac_decode_er_frame(), aac_decode_frame_int(), aac_encode_frame(), aac_encode_init(), aac_parse_packet(), aasc_decode_frame(), abort_codec_experimental(), ac3_decode_frame(), ac3_handle_packet(), add_input_streams(), add_wordlen_weights(), adpcm_decode_frame(), adpcm_decode_init(), adpcm_encode_frame(), adpcm_encode_init(), adts_decode_extradata(), adts_write_frame_header(), adx_decode_frame(), adx_decode_init(), adx_encode_frame(), adx_encode_init(), adx_read_header(), aea_read_header(), aic_decode_frame(), aic_decode_header(), aic_decode_init(), aiff_read_header(), aiff_write_header(), alac_decode_frame(), alac_decode_init(), alac_encode_frame(), alac_encode_init(), alac_set_info(), alloc_frame(), alloc_frame_buffer(), allocate_buffers(), allocate_frame_buffers(), amf_tag_contents(), amr_decode_fix_avctx(), amr_handle_packet(), amr_parse_fmtp(), amr_parse_sdp_line(), amr_wb_encode_frame(), amr_wb_encode_init(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), ape_decode_init(), ape_decode_value_3900(), ape_dumpinfo(), ape_read_header(), ape_read_packet(), ape_tag_read_field(), ape_unpack_mono(), ape_unpack_stereo(), append_sws_flags(), apply_color_indexing_transform(), apply_dependent_coupling(), apply_motion_generic(), apply_param_change(), apply_predictor_transform(), asf_read_data(), asf_read_header(), asf_read_metadata(), asf_read_multiple_payload(), asf_read_payload(), asf_read_picture(), asf_read_properties(), asf_read_simple_index(), asf_read_single_payload(), asf_read_stream_properties(), asf_read_subpayload(), asf_read_unknown(), asf_read_value(), asf_set_metadata(), asf_write_header1(), ass_encode_frame(), ass_get_duration(), assert_avoptions(), asv1_decode_block(), atrac1_decode_frame(), atrac1_decode_init(), atrac3_decode_frame(), atrac3_decode_init(), atrac3p_decode_frame(), atrac3p_decode_init(), audio_get_buffer(), audio_read_header(), audio_read_packet(), audio_write_header(), audio_write_packet(), aura_decode_frame(), av_bsf_init(), av_bsf_send_packet(), av_dump_format(), av_expr_parse(), av_file_map(), av_hwframe_ctx_init(), av_image_check_size(), av_interleaved_write_frame(), av_log_ask_for_sample(), av_log_missing_feature(), av_new_program(), av_opt_set(), av_opt_set_defaults(), av_opt_set_dict(), av_opt_show2(), av_parse_color(), av_probe_input_buffer(), av_vorbis_parse_frame(), avcodec_copy_context(), avcodec_decode_audio4(), avcodec_decode_video2(), avcodec_encode_audio2(), avcodec_encode_subtitle(), avcodec_encode_video2(), avcodec_find_best_pix_fmt1(), avcodec_open2(), avconv_cleanup(), avconv_parse_options(), avfilter_config_links(), avfilter_graph_alloc_filter(), avfilter_graph_parse(), avfilter_graph_parse2(), avfilter_init_dict(), avfilter_init_str(), avfilter_insert_filter(), avfilter_link(), avformat_find_stream_info(), avformat_write_header(), avfoundation_read_close(), avfoundation_read_header(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_sync(), avi_write_header(), avisynth_context_create(), avisynth_create_stream_audio(), avisynth_create_stream_video(), avisynth_open_file(), avisynth_read_packet_audio(), avisynth_read_packet_video(), avpriv_set_pts_info(), avresample_convert(), avresample_get_matrix(), avresample_open(), avresample_set_channel_mapping(), avresample_set_compensation(), avresample_set_matrix(), avs_decode_frame(), avs_read_header(), bethsoftvid_decode_frame(), bfi_decode_frame(), bfi_read_packet(), bink_decode_plane(), bink_put_pixels(), binkb_decode_plane(), biquad_init_coeffs(), bitplane_decoding(), bits2qp(), bktr_getframe(), bktr_init(), bmp_decode_frame(), bmp_encode_frame(), bmp_encode_init(), bmv_aud_decode_frame(), bmv_read_packet(), build_table(), butterworth_init_coeffs(), cdata_read_header(), cdg_decode_frame(), cdxl_decode_frame(), cdxl_read_header(), cdxl_read_packet(), channelmap_config_input(), channelmap_init(), check_diff(), check_header_mismatch(), check_header_variable(), check_http_code(), check_init_output_file(), check_marker(), check_n_master(), check_packet(), check_sessionid(), check_size(), check_slice_size(), check_stream_specifier(), checkline(), choose_encoder(), cinaudio_decode_frame(), cinepak_decode_frame(), cinvideo_decode_frame(), cinvideo_decode_init(), clear_index_entries(), clip_coeffs(), cllc_decode_frame(), cmap_read_palette(), cmv_decode_frame(), cmv_process_header(), cng_decode_frame(), cng_encode_frame(), cng_encode_init(), codec_reinit(), codecctl_int(), color_config_props(), color_init(), commit_bitstream_and_slice_buffer(), compare_doubles(), compare_floats(), compute_pkt_fields(), compute_target_time(), concatenate_packet(), config_input(), config_input_overlay(), config_input_props(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_output(), configure_filtergraph(), configure_input_audio_filter(), configure_video_device(), control_port_cb(), cook_decode_close(), cook_decode_frame(), cook_decode_init(), copy_block(), copy_cell(), copy_from(), copy_metadata(), coupling_coordinates(), coupling_strategy(), create_device(), create_filter(), create_stream(), crypto_open(), cuda_device_create(), cuda_frames_init(), cuda_pool_alloc(), cuda_transfer_data_from(), cuda_transfer_data_to(), cudaupload_filter_frame(), cudaupload_init(), cyuv_decode_frame(), dash_flush(), dash_read_tmpl_id(), dash_write_header(), dash_write_packet(), daud_write_packet(), dc1394_read_common(), dca_decode_block(), dca_decode_frame(), dca_downmix(), dca_exss_parse_asset_header(), dca_parse_frame_header(), dca_subframe_footer(), dca_subframe_header(), dca_subsubframe(), dcadec_decode_frame(), dds_decode(), decode(), decode_0(), decode_13(), decode_6(), decode_8(), decode_argb_frame(), decode_audio_block(), decode_audio_specific_config(), decode_band(), decode_band_hdr(), decode_band_numwavs(), decode_band_types(), decode_block(), decode_block_intra(), decode_block_progressive(), decode_blocks(), decode_buffering_period(), decode_cabac_mb_mvd(), decode_cdlms(), decode_cell(), decode_channel_sf_idx(), decode_channel_sound_unit(), decode_channel_wordlen(), decode_chunks(), decode_clnpass(), decode_cpe(), decode_dc(), decode_dc_progressive(), decode_eld_specific_config(), decode_element(), decode_entropy_coded_image(), decode_envelope(), decode_exp_vlc(), decode_ext_header(), decode_extension_payload(), decode_extradata_ps(), decode_extradata_ps_mp4(), decode_format80(), decode_frame(), decode_frame_header(), decode_frame_headers(), decode_gainc_loc_codes(), decode_gop_header(), decode_group3_1d_line(), decode_group3_2d_line(), decode_header(), decode_header_trees(), decode_hextile(), decode_hrd_parameters(), decode_i2_frame(), decode_i_block(), decode_i_frame(), decode_ics(), decode_ics_info(), decode_info_header(), decode_init(), decode_interframe_v4(), decode_interframe_v4a(), decode_main_header(), decode_mb_i(), decode_mb_info(), decode_mb_mode(), decode_mvc1(), decode_mvc2(), decode_nal_sei_message(), decode_nal_sei_prefix(), decode_nal_sei_suffix(), decode_nal_unit(), decode_nal_units(), decode_p_block(), decode_p_frame(), decode_packet(), decode_pce(), decode_pic(), decode_pic_hdr(), decode_picture_header(), decode_picture_timing(), decode_plane(), decode_prediction(), decode_profile_tier_level(), decode_residual(), decode_residual_inter(), decode_residuals(), decode_rgb24_frame(), decode_rle(), decode_scale_factors(), decode_scalefactors(), decode_sequence_header_adv(), decode_sgirle8(), decode_slice(), decode_slice_header(), decode_slice_thread(), decode_spectrum_and_dequant(), decode_str(), decode_stream_header(), decode_subblock(), decode_subframe(), decode_subframe_fixed(), decode_subframe_length(), decode_subframe_lpc(), decode_syncpoint(), decode_tag(), decode_tilehdr(), decode_tns(), decode_unregistered_user_data(), decode_user_data(), decode_vol_header(), decode_vop_header(), decode_vui(), decode_vui_parameters(), decode_wave_header(), decode_wmv9(), decode_yuv_frame(), decompress_chunks_thread(), decrypt_init(), delete_state(), dequant(), determine_bitrate(), device_init(), device_open(), dfa_decode_frame(), dfa_read_header(), dfa_read_packet(), dilate_init(), display_end_segment(), dnxhd_decode_dct_block(), dnxhd_decode_frame(), dnxhd_decode_header(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_init_vlc(), do_audio_out(), do_exit(), do_subtitle_out(), do_video_out(), dpcm_decode_frame(), dpcm_decode_init(), dprint_compression_options(), draw_glyph(), dss_sp_decode_frame(), dump_attachment(), dump_audio_service_type(), dump_audioservicetype(), dump_bih(), dump_captureparms(), dump_cpb(), dump_downmix(), dump_enc_cfg(), dump_headers(), dump_matrixenc(), dump_metadata(), dump_paramchange(), dump_replaygain(), dump_sidedata(), dump_stereo3d(), dump_stream_format(), dump_unknown(), dump_video_param(), dump_videohdr(), dv1394_close(), dv1394_read_header(), dv1394_read_packet(), dv1394_start(), dv_assemble_frame(), dv_decode_video_segment(), dv_encode_video_segment(), dv_extract_audio_info(), dv_handle_packet(), dv_read_header(), dv_write_header(), dvbsub_init_decoder(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_object_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvbsub_read_2bit_string(), dvbsub_read_4bit_string(), dvbsub_read_8bit_string(), dvvideo_decode_frame(), dvvideo_encode_frame(), dvvideo_encode_init(), dxa_read_header(), dxa_read_packet(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2(), dxv_decode(), dxv_init(), dxva2_alloc(), dxva2_create_decoder(), dxva2_device_create(), dxva2_frames_init(), dxva2_get_decoder_configuration(), dxva2_init(), dxva2_init_pool(), dxva2_transfer_data(), ea_read_header(), ea_read_packet(), ebml_parse_elem(), ebml_parse_id(), ebml_read_master(), ebml_read_num(), eightsvx_decode_frame(), eightsvx_decode_init(), encode_422_bitstream(), encode_bgra_bitstream(), encode_bitstream(), encode_callback(), encode_dvd_subtitles(), encode_frame(), encode_gray_bitstream(), encode_init(), encode_init_ls(), encode_line(), encode_mb(), encode_nals(), encode_picture_ls(), encode_plane(), encode_scale_factors(), encode_slice(), encode_strip(), encode_superframe(), encode_thread(), epic_jb_decode_tile(), error_callback(), escape124_decode_frame(), escape130_decode_frame(), escape130_decode_init(), estimate_timings(), estimate_timings_from_pts(), event_handler(), execute_code(), expand_rle_row16(), expand_rle_row8(), Faac_encode_frame(), Faac_encode_init(), fbdev_read_header(), fbdev_read_packet(), fdk_aac_decode_flush(), fdk_aac_decode_frame(), fdk_aac_decode_init(), ff_ac3_float_mdct_init(), ff_ac3_validate_metadata(), ff_acelp_interpolate(), ff_af_queue_remove(), ff_alloc_picture(), ff_alsa_open(), ff_alsa_xrun_recover(), ff_amf_get_string(), ff_ape_parse_tag(), ff_atrac3p_decode_channel_unit(), ff_audio_convert_set_func(), ff_audio_data_combine(), ff_audio_data_copy(), ff_audio_data_init(), ff_audio_interleave_init(), ff_audio_mix(), ff_audio_mix_alloc(), ff_audio_mix_get_matrix(), ff_audio_mix_set_func(), ff_audio_mix_set_matrix(), ff_audio_resample(), ff_audio_resample_init(), ff_bgmc_init(), ff_celt_decode_frame(), ff_celt_init(), ff_convert_matrix(), ff_create_schro_frame(), ff_dca_exss_parse_header(), ff_dca_xll_decode_audio(), ff_dca_xll_decode_header(), ff_dca_xll_decode_navi(), ff_decode_sbr_extension(), ff_dither_alloc(), ff_dlog_link(), ff_dnxhd_list_cid(), ff_dxva2_commit_buffer(), ff_dxva2_common_end_frame(), ff_eac3_decode_transform_coeffs_aht_ch(), ff_eac3_parse_header(), ff_er_add_slice(), ff_er_frame_end(), ff_eval_refl(), ff_filter_frame(), ff_flac_decode_frame_header(), ff_flac_is_extradata_valid(), ff_flac_parse_picture(), ff_flac_parse_streaminfo(), ff_flv_decode_picture_header(), ff_frame_thread_init(), ff_gen_search(), ff_get_buffer(), ff_get_format(), ff_get_wav_header(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h263_decode_mb(), ff_h263_decode_picture_header(), ff_h263_handle_packet(), ff_h263_show_pict_info(), ff_h2645_packet_split(), ff_h264_build_ref_list(), ff_h264_check_intra4x4_pred_mode(), ff_h264_check_intra_pred_mode(), ff_h264_decode_extradata(), ff_h264_decode_init(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_ref_pic_list_reordering(), ff_h264_decode_ref_pic_marking(), ff_h264_decode_seq_parameter_set(), ff_h264_execute_ref_pic_marking(), ff_h264_field_end(), ff_h264_handle_aggregated_packet(), ff_h264_parse_sprop_parameter_sets(), ff_h264_sei_decode(), ff_h264_update_thread_context(), ff_hevc_coeff_abs_level_remaining(), ff_hevc_cu_qp_delta_abs(), ff_hevc_decode_nal_pps(), ff_hevc_decode_nal_sps(), ff_hevc_decode_nal_vps(), ff_hevc_decode_short_term_rps(), ff_hevc_mvd_decode(), ff_hevc_output_frame(), ff_hevc_parse_sps(), ff_hevc_set_new_ref(), ff_hevc_slice_rpl(), ff_huff_build_tree(), ff_huffyuv_generate_bits_table(), ff_id3v2_write_apic(), ff_iir_filter_init_coeffs(), ff_init_me(), ff_init_scantable_permutation(), ff_init_vlc_sparse(), ff_intel_h263_decode_picture_header(), ff_interleave_packet_per_dts(), ff_ivi_dec_huff_desc(), ff_ivi_decode_frame(), ff_jpeg2000_init_component(), ff_jpegls_decode_lse(), ff_libopenh264_check_version(), ff_libopenh264_trace_callback(), ff_listen_connect(), ff_mjpeg_decode_dht(), ff_mjpeg_decode_dqt(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_init(), ff_mjpeg_decode_sof(), ff_mjpeg_decode_sos(), ff_mjpeg_find_marker(), ff_mlp_read_major_sync(), ff_mms_asf_header_parser(), ff_mov_init_hinting(), ff_mov_read_chan(), ff_mov_read_stsd_entries(), ff_mov_write_packet(), ff_mp4_read_dec_config_descr(), ff_mp4_read_descr(), ff_mpeg4_decode_partitions(), ff_mpeg4_decode_picture_header(), ff_mpeg4_decode_video_packet_header(), ff_mpeg4_pred_dc(), ff_mpeg_update_thread_context(), ff_mpv_common_init(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_mpv_frame_start(), ff_msmpeg4_decode_block(), ff_msmpeg4_decode_ext_header(), ff_msmpeg4_decode_motion(), ff_msmpeg4_decode_picture_header(), ff_msrle_decode(), ff_mss12_decode_init(), ff_mxf_get_samples_per_frame(), ff_network_init(), ff_nvenc_encode_frame(), ff_nvenc_encode_init(), ff_opus_parse_extradata(), ff_oss_audio_open(), ff_parse_fmtp(), ff_parse_mpeg2_descriptor(), ff_pnm_decode_header(), ff_print_debug_info(), ff_program_add_stream_index(), ff_ps_read_data(), ff_put_wav_header(), ff_qsv_enc_init(), ff_qsv_encode(), ff_qsv_init_internal_session(), ff_qsv_init_session_hwcontext(), ff_qsv_print_error(), ff_qsv_print_warning(), ff_qsv_process_data(), ff_rate_control_init(), ff_rate_estimate_qscale(), ff_raw_video_read_header(), ff_read_packet(), ff_read_riff_info(), ff_rm_read_mdpr_codecdata(), ff_rtmp_packet_dump(), ff_rtp_check_and_send_back_rr(), ff_rtp_parse_open(), ff_rtp_send_data(), ff_rtp_send_h261(), ff_rtp_send_h263_rfc2190(), ff_rtp_send_jpeg(), ff_rtsp_open_transport_ctx(), ff_rtsp_parse_streaming_commands(), ff_rtsp_setup_input_streams(), ff_rtsp_setup_output_streams(), ff_rtsp_tcp_read_packet(), ff_rv34_decode_frame(), ff_rv_decode_dc(), ff_seek_frame_binary(), ff_set_cmp(), ff_set_sar(), ff_silk_decode_superframe(), ff_silk_init(), ff_slice_thread_init(), ff_sndio_open(), ff_srtp_decrypt(), ff_srtp_set_crypto(), ff_tak_decode_frame_header(), ff_tempfile(), ff_thread_await_progress(), ff_thread_get_buffer(), ff_thread_release_buffer(), ff_thread_report_progress(), ff_twinvq_decode_frame(), ff_twinvq_decode_init(), ff_update_duplicate_context(), ff_vaapi_encode2(), ff_vaapi_encode_init(), ff_vbv_update(), ff_vc1_decode_entry_point(), ff_vc1_decode_sequence_header(), ff_vc1_mc_1mv(), ff_vc1_mc_4mv_chroma(), ff_vc1_mc_4mv_luma(), ff_vc1_parse_frame_header(), ff_vc1_parse_frame_header_adv(), ff_vda_default_init(), ff_voc_get_packet(), ff_vorbis_comment(), ff_vorbis_ready_floor1_list(), ff_vp56_decode_frame(), ff_wma_run_level_decode(), ff_wms_parse_sdp_a_line(), ff_wmv2_decode_mb(), ff_wmv2_decode_picture_header(), ff_wmv2_decode_secondary_picture_header(), ff_xvid_rate_control_init(), ff_xvid_rate_estimate_qscale(), ff_yuv2rgb_c_init_tables(), ff_yuv2rgb_get_func_ptr(), ff_yuv2rgb_init_ppc(), ff_yuv2rgb_init_tables_ppc(), ffmmal_fill_input_port(), ffmmal_fill_output_port(), ffmmal_flush(), ffmmal_init_decoder(), ffmmal_read_frame(), ffv1_decode_frame(), ffv1_encode_frame(), ffv1_encode_init(), ffv1_init_slice_contexts(), fic_decode_frame(), film_read_header(), filter_frame(), find_and_decode_index(), find_codec_or_die(), find_component(), find_headers_search_validate(), find_next_parse_unit(), find_ref_idx(), find_short(), flac_decode_frame(), flac_encode_frame(), flac_encode_init(), flac_fifo_read_wrap(), flac_parse(), flac_read_header(), flac_write_header(), flac_write_trailer(), flashsv2_prime(), flashsv_decode_block(), flashsv_decode_frame(), flashsv_decode_init(), flashsv_encode_frame(), flashsv_encode_init(), flic_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), flic_decode_init(), flic_read_header(), flush(), flush_encoders(), flush_packet(), flv_read_packet(), flv_set_audio_codec(), flv_set_video_codec(), flv_write_header(), flv_write_packet(), flv_write_trailer(), fmt_v4l2codec(), frame_alloc(), frame_configure_elements(), frame_worker_thread(), frei0r_init(), g2m_decode_frame(), g2m_decode_init(), g2m_load_cursor(), g722_decode_frame(), g722_encode_frame(), g722_encode_init(), g723_1_decode_frame(), g723_1_encode_init(), g726_reset(), g729_read_header(), gen_create_stream(), gen_delete_stream(), gen_fcpublish_stream(), gen_fcunpublish_stream(), gen_pause(), gen_play(), gen_pong(), gen_publish(), gen_release_stream(), gen_seek(), gen_swf_verification(), generate_fake_vps(), get_aac_sample_rates(), get_aspect_ratio(), get_audio_flags(), get_chunk_header(), get_coc(), get_cod(), get_cox(), get_dmix_coeff(), get_egolomb(), get_format(), get_fourcc(), get_http_header_data(), get_last_needed_nal(), get_line(), get_num_ct_values(), get_ost_filters(), get_packet(), get_packet_header(), get_packet_size(), get_pixel_format(), get_pts(), get_qcc(), get_qscale(), get_quant(), get_riff(), get_siz(), get_sockaddr(), get_sot(), get_sr_golomb_shorten(), get_stats(), get_stream_info(), get_tag(), get_tcp_server_response(), GET_TOK(), get_video_config(), get_wb_bitrate_mode(), gif_decode_frame(), gif_encode_frame(), gif_read_header1(), gif_read_image(), gif_write_header(), good_mvec(), gopher_connect(), grab_read_header(), graph_check_validity(), grow_array(), gsm_decode_frame(), gsm_init(), guess_input_channel_layout(), gxf_header(), gxf_packet(), gxf_read_index(), gxf_write_header(), gxf_write_map_packet(), gxf_write_packet(), h261_decode_block(), h261_decode_frame(), h261_decode_gob(), h261_decode_gob_header(), h261_decode_mb(), h261_decode_picture_header(), h261_handle_packet(), h263_decode_block(), h263_handle_packet(), h264_close_context(), h264_decode_frame(), h264_extradata_to_annexb(), h264_field_start(), h264_handle_packet(), h264_handle_packet_fu_a(), h264_init_ps(), h264_mp4toannexb_init(), h264_parse_nal_header(), h264_select_output_frame(), h264_slice_header_init(), h264_slice_header_parse(), h264_slice_init(), handle_buffered_output(), handle_chunk_size(), handle_chunk_type(), handle_client_bw(), handle_connect_error(), handle_invoke_error(), handle_invoke_result(), handle_invoke_status(), handle_metadata(), handle_packet(), handle_packet_stream_changing_type(), handle_packets(), handle_ping(), handle_server_bw(), handle_trimming(), hap_compress_frame(), hap_init(), hap_parse_frame_header(), hds_write_header(), help(), hevc_decode_extradata(), hevc_decode_frame(), hevc_extradata_to_annexb(), hevc_frame_start(), hevc_handle_packet(), hevc_mp4toannexb_init(), hevc_parse_nal_header(), hevc_parse_slice_header(), hevc_sdp_parse_fmtp_config(), hex_log(), hls_open(), hls_read(), hls_read_header(), hls_slice_header(), hls_transform_unit(), hls_window(), hls_write_header(), hnm_decode_frame(), hnm_decode_init(), hnm_read_header(), hnm_read_packet(), hq_decode_frame(), hq_hqa_decode_frame(), hqa_decode_frame(), hqa_decode_slice(), hqx_decode_frame(), http_buf_read(), http_open(), http_read_header(), http_read_stream(), huffman_decode(), hvcc_write(), hwdownload_config_input(), hwdownload_config_output(), hwdownload_filter_frame(), hwupload_config_output(), hwupload_filter_frame(), hwupload_query_formats(), icecast_open(), icecast_write(), id3v2_parse(), idcin_decode_frame(), idcin_decode_init(), idcin_decode_vlcs(), idcin_read_header(), idcin_read_packet(), if(), iff_read_header(), ifilter_send_frame(), ilbc_decode_frame(), ilbc_decode_init(), ilbc_encode_frame(), ilbc_encode_init(), ilbc_parse_fmtp(), ilbc_parse_sdp_line(), ilbc_read_header(), ilbc_write_header(), imc_decode_block(), imc_decode_frame(), imc_decode_init(), img_read_header(), img_read_packet(), info_callback(), ingenient_read_packet(), init(), init_audio(), init_band_stepsize(), init_common(), init_cook_mlt(), init_cook_vlc_tables(), init_dimensions(), init_filter_graph(), init_filter_param(), init_image(), init_input_filter(), init_muxer(), init_offset(), init_out_pool(), init_out_session(), init_output_bsfs(), init_output_filter(), init_output_stream(), init_pass2(), init_processing_chain(), init_video(), init_video_param(), initFilter(), initialize_cur_frame(), insert_trim(), ipod_get_codec_tag(), ipvideo_decode_block_opcode_0x6(), ipvideo_decode_frame(), ipvideo_decode_opcodes(), ir2_decode_frame(), ism_write_header(), ivf_write_header(), ivi_decode_coded_blocks(), ivi_process_empty_tile(), join_config_output(), join_init(), jpeg2000_decode_frame(), jpeg2000_decode_packet(), jpeg2000_read_main_headers(), jpeg_parse_packet(), kmvc_decode_inter_8x8(), kmvc_decode_intra_8x8(), lag_decode_arith_plane(), lag_decode_frame(), lag_decode_zero_run_line(), lag_read_prob_header(), latm_decode_audio_specific_config(), latm_decode_extradata(), latm_decode_frame(), latm_parse_packet(), latm_write_packet(), libgsm_decode_frame(), libgsm_encode_frame(), libgsm_encode_init(), libkvazaar_encode(), libkvazaar_init(), libopenjpeg_create_image(), libopenjpeg_decode_frame(), libopenjpeg_encode_frame(), libopenjpeg_encode_init(), libopus_configure_encoder(), libopus_decode(), libopus_decode_init(), libopus_encode(), libopus_encode_init(), libschroedinger_decode_frame(), libschroedinger_encode_frame(), libschroedinger_encode_init(), libschroedinger_frame_from_data(), libschroedinger_handle_first_access_unit(), libspeex_decode_frame(), libspeex_decode_init(), libvorbis_encode_frame(), libvorbis_encode_init(), libwebp_encode_frame(), libwebp_encode_init(), libx265_encode_frame(), libx265_encode_init(), link_filter(), link_filter_inouts(), list_capture_devices_by_type(), list_formats(), ljpeg_encode_bgr(), ljpeg_encode_frame(), ljpeg_encode_init(), ljpeg_encode_yuv(), lmlm4_read_packet(), load_buffer(), load_input_picture(), load_ipmovie_packet(), load_matrix(), load_path(), load_sym(), log_encoder_error(), log_net_error(), lxf_read_header(), lxf_read_packet(), m4sl_cb(), mace_decode_frame(), magy_decode_frame(), main(), map_pixel_format(), matroska_convert_tag(), matroska_convert_tags(), matroska_find_track_by_num(), matroska_parse_block(), matroska_parse_cues(), matroska_parse_flac(), matroska_parse_frame(), matroska_parse_laces(), matroska_parse_rm_audio(), matroska_parse_seekhead_entry(), matroska_parse_tracks(), matroska_read_header(), mdec_decode_block_intra(), metasound_decode_init(), metasound_read_bitstream(), mimic_decode_frame(), mimic_decode_init(), mix_function_init(), mjpeg2jpeg_filter(), mjpeg_decode_app(), mjpeg_decode_com(), mjpeg_decode_dc(), mjpeg_decode_dri(), mjpeg_decode_scan(), mjpeg_decode_scan_progressive_ac(), mjpega_dump_header(), mjpegb_decode_frame(), mkv_write_ass_blocks(), mkv_write_attachments(), mkv_write_block(), mkv_write_chapters(), mkv_write_codecprivate(), mkv_write_flush_packet(), mkv_write_native_codecprivate(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_track(), mkv_write_trailer(), mlp_parse(), mm_decode_frame(), mm_decode_init(), mmap_init(), mmap_read_frame(), mmap_release_buffer(), mmap_start(), mmf_rate(), mmf_read_header(), mms_open(), mms_read(), mms_safe_send_recv(), mmsh_open(), modify_pred(), modify_qscale(), mov_build_index(), mov_finalize_stsd_codec(), mov_find_next_sample(), mov_flush_fragment(), mov_get_codec_tag(), mov_get_dv_codec_tag(), mov_metadata_loci(), mov_parse_stsd_audio(), mov_parse_stsd_video(), mov_read_chapters(), mov_read_cmov(), mov_read_colr(), mov_read_covr(), mov_read_ctts(), mov_read_custom(), mov_read_default(), mov_read_dref(), mov_read_elst(), mov_read_enda(), mov_read_fiel(), mov_read_ftyp(), mov_read_hdlr(), mov_read_header(), mov_read_mdhd(), mov_read_moof(), mov_read_mvhd(), mov_read_packet(), mov_read_pasp(), mov_read_smi(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tfdt(), mov_read_tfhd(), mov_read_trak(), mov_read_trun(), mov_read_udta_string(), mov_seek_stream(), mov_skip_multiple_stsd(), mov_write_chan_tag(), mov_write_dvc1_structs(), mov_write_hdlr_tag(), mov_write_header(), mov_write_identification(), mov_write_loci_tag(), mov_write_mdhd_tag(), mov_write_sidx_tag(), mov_write_trailer(), mov_write_trak_tag(), movie_get_frame(), movie_init(), mp3_write_header(), mp3_write_packet(), mp3_write_trailer(), mp3_write_xing(), mp3lame_encode_frame(), mp_decode_frame(), mp_decode_layer3(), mp_get_code(), MPA_encode_frame(), MPA_encode_init(), mpa_robust_parse_packet(), mpa_robust_parse_rtp_header(), mpc7_decode_frame(), mpc7_decode_init(), mpc8_decode_frame(), mpc8_decode_init(), mpc8_parse_seektable(), mpc8_read_header(), mpc_read_header(), mpeg1_decode_picture(), mpeg1_decode_sequence(), mpeg4_decode_block(), mpeg4_decode_dc(), mpeg4_decode_gop_header(), mpeg4_decode_mb(), mpeg4_decode_partition_a(), mpeg4_decode_partition_b(), mpeg4_decode_partitioned_mb(), mpeg_decode_gop(), mpeg_decode_mb(), mpeg_decode_picture_coding_extension(), mpeg_decode_picture_display_extension(), mpeg_decode_sequence_display_extension(), mpeg_decode_sequence_extension(), mpeg_decode_slice(), mpeg_er_decode_mb(), mpeg_field_start(), mpeg_motion_internal(), mpeg_mux_init(), mpeg_mux_write_packet(), mpegps_read_dts(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_open_section_filter(), mpegts_probe(), mpegts_push_data(), mpegts_read_header(), mpegts_resync(), mpegts_set_stream_info(), mpegts_write_header(), mpegts_write_packet_internal(), mpegts_write_pes(), mpegts_write_pmt(), mpv_decode_mb_internal(), msmpeg4_decode_dc(), msmpeg4v12_decode_mb(), msmpeg4v34_decode_mb(), msnwc_tcp_read_header(), msrle_decode_8_16_24_32(), msrle_decode_frame(), msrle_decode_init(), msrle_decode_pal4(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss3_decode_init(), mss4_decode_frame(), mss4_decode_init(), msvideo1_decode_frame(), mszh_decomp(), mv_read_header(), mxf_absolute_bodysid_offset(), mxf_compute_essence_containers(), mxf_compute_index_tables(), mxf_compute_ptses_fake_index(), mxf_compute_sample_count(), mxf_decrypt_triplet(), mxf_edit_unit_absolute_offset(), mxf_interleave_get_packet(), mxf_parse_handle_essence(), mxf_parse_mpeg2_frame(), mxf_parse_structural_metadata(), mxf_read_header(), mxf_read_index_table_segment(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_packet_old(), mxf_read_partition_pack(), mxf_read_pixel_layout(), mxf_seek_to_previous_partition(), mxf_set_current_edit_unit(), mxf_write_d10_video_packet(), mxf_write_essence_container_refs(), mxf_write_header(), mxf_write_index_table_segment(), mxf_write_package(), mxf_write_packet(), mxg_read_packet(), mxpeg_check_dimensions(), mxpeg_decode_frame(), mxpeg_decode_mxm(), nal_send(), nc_read_packet(), nested_io_open(), new_audio_stream(), new_data_stream(), new_output_stream(), new_pes_packet(), new_video_stream(), ni_prepare_read(), nppscale_config_props(), nppscale_deinterleave(), nppscale_init(), nppscale_interleave(), nppscale_resize(), nprobe(), nsv_parse_NSVf_header(), nsv_parse_NSVs_header(), nsv_probe(), nsv_read_chunk(), nsv_read_header(), nsv_read_packet(), nsv_resync(), num_coded_units(), nut_read_header(), nut_read_packet(), nut_read_timestamp(), nut_write_header(), nut_write_packet(), nuv_header(), nuv_packet(), nvenc_check_capabilities(), nvenc_check_device(), nvenc_find_free_reg_resource(), nvenc_old_init(), nvenc_override_rate_control(), nvenc_print_error(), nvenc_setup_device(), nvenc_upload_frame(), ogg_get_headers(), ogg_packet(), ogg_read_page(), ogg_write_header(), ogm_header(), old_codec37(), old_codec47(), oma_read_header(), oma_write_header(), omx_component_init(), omx_encode_frame(), omx_encode_init(), omx_try_load(), on2avc_decode_band_scales(), on2avc_decode_band_types(), on2avc_decode_frame(), on2avc_decode_init(), on2avc_decode_subframe(), open_files(), open_input(), open_input_file(), open_output_file(), open_temporary(), opt_channel_layout(), opt_default(), opt_frame_pix_fmt(), opt_frame_size(), opt_list(), opt_loglevel(), opt_map(), opt_output_format(), opt_streamid(), opt_target(), opt_timelimit(), opt_vstats(), opus_decode_frame(), opus_decode_packet(), opus_decode_redundancy(), opus_decode_subpacket(), opus_find_frame_end(), opus_flush_resample(), opus_init_resample(), opus_packet(), output_data(), output_packet(), paf_audio_init(), paf_video_init(), palToRgbWrapper(), pam_encode_frame(), parse_bintree(), parse_chunks(), parse_command_line(), parse_content_encoding(), parse_fmtp(), parse_fmtp_config(), parse_font(), parse_forced_key_frames(), parse_frame_aspect_ratio(), parse_frame_header(), parse_id_header(), parse_iplconvkernel(), parse_key_value_pair(), parse_keyframes_index(), parse_legacy_attrib(), parse_link_name(), parse_maps(), parse_matrix_coeffs(), parse_media_type(), parse_meta_type(), parse_mp4_descr(), parse_multipart_header(), parse_nal_units(), parse_number_or_die(), parse_object_segment(), parse_optgroup(), parse_option(), parse_outputs(), parse_packed_headers(), parse_palette(), parse_palette_segment(), parse_pixel_format(), parse_presentation_segment(), parse_primary(), parse_profile_level_id(), parse_setup_header(), parse_strk(), parse_sws_flags(), parse_time_or_die(), parse_waveformatex(), pat_cb(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_decode_frame(), pcm_decode_init(), pcm_dvd_decode_frame(), pcm_dvd_parse_header(), pcm_encode_frame(), pcm_read_packet(), pcx_decode_frame(), pcx_encode_frame(), pick_format(), pix_decode_frame(), pixfmt_from_pixmap_format(), planarRgbToRgbWrapper(), pmp_header(), pmp_packet(), pmt_cb(), png_decode_idat(), pnm_decode_frame(), pnm_encode_frame(), poll_filter(), poll_filters(), prepare_input_packet(), print(), print_enc_params(), print_error(), print_final_stats(), print_fps(), print_gain(), print_interlace_msg(), print_long_term(), print_md5(), print_peak(), print_report(), print_short_term(), print_supported_formats(), print_tls_error(), probe_codec(), process_audio_header_eacs(), process_audio_header_elements(), process_block(), process_ea_header(), process_frame(), process_frame_obj(), process_input(), process_input_packet(), process_ipmovie_chunk(), process_line(), process_unnamed_options(), ptx_decode_frame(), pulse_read_header(), pulse_read_packet(), put_s(), put_xiph_codecpriv(), qcelp_decode_frame(), qcp_read_header(), qcp_read_packet(), qdm2_decode(), qdm2_decode_frame(), qdm2_decode_init(), qdm2_decode_sub_packet_header(), qdm2_decode_super_block(), qdm2_parse_packet(), qp2bits(), qpeg_decode_inter(), qsv_decode(), qsv_decode_init(), qsv_device_create(), qsv_device_init(), qsv_enc_init(), qsv_frame_alloc(), qsv_frames_init(), qsv_init(), qsv_init_child_ctx(), qsv_init_internal_session(), qsv_init_pool(), qsv_load_plugins(), qsv_retrieve_enc_params(), qsv_transfer_data_from(), qsv_transfer_data_to(), qsvdeint_config_props(), qsvscale_config_props(), qsvscale_filter_frame(), qsvscale_init(), qtrle_decode_frame(), qtrle_decode_init(), qtrle_encode_frame(), qtrle_encode_init(), query_formats(), queue_frames(), r3d_read_header(), r3d_read_rdvo(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), r3d_seek(), ra144_decode_frame(), ra144_encode_frame(), ra144_encode_init(), ra288_decode_frame(), raw_init_decoder(), rawvideo_read_header(), read_access_unit(), read_apic(), read_atom(), read_audio_mux_element(), read_block_data(), read_block_types(), read_braindead_odml_indx(), read_channel_data(), read_channel_params(), read_chapter(), read_code_table(), read_colors(), read_connect(), read_data(), read_data_packet(), read_dcs(), read_decoding_params(), read_extra_header(), read_file(), read_filter_params(), read_frame_data(), read_frame_header(), read_frame_internal(), read_geobtag(), read_header(), read_huffman_code_normal(), read_huffman_tables(), read_huffman_tree(), read_kuki_chunk(), read_len_table(), read_line(), read_major_sync(), read_matrix_params(), read_motion_values(), read_offs(), read_packet(), read_pakt_chunk(), read_patterns(), read_restart_header(), read_runs(), read_sbr_data(), read_sbr_extension(), read_sbr_grid(), read_seek(), read_shape_from_file(), read_ttag(), read_var_block_data(), read_xing_toc(), recheck_discard_flags(), reconfig_encoder(), remove_decoded_packets(), remove_short(), return_audio_frame(), revert_channel_correlation(), rgbToPlanarRgbWrapper(), rgbToRgbWrapper(), rice_decompress(), rl2_decode_frame(), rl2_decode_init(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), rm_read_index(), roq_decode_frame(), roq_decode_init(), roq_dpcm_encode_frame(), roq_dpcm_encode_init(), roq_encode_frame(), roq_encode_init(), roq_encode_video(), roq_read_packet(), roqvideo_decode_frame(), rpl_read_header(), rpza_decode_frame(), rpza_decode_stream(), rscc_decode_frame(), rscc_init(), rso_write_header(), rso_write_trailer(), rtcp_parse_packet(), rtcp_send_sr(), rtmp_calc_swf_verification(), rtmp_calc_swfhash(), rtmp_handshake(), rtmp_log(), rtmp_open(), rtmp_packet_read_one_chunk(), rtmp_parse_result(), rtmp_pause(), rtmp_receive_hs_packet(), rtmp_seek(), rtmp_send_hs_packet(), rtmp_server_handshake(), rtmp_write_amf_data(), rtp_parse_addr_list(), rtp_parse_one_packet(), rtp_parse_packet_internal(), rtp_parse_queued_packet(), rtp_resolve_host(), rtp_write(), rtp_write_header(), rtp_write_packet(), rtsp_listen(), rtsp_read_announce(), rtsp_read_packet(), rtsp_read_play(), rtsp_read_request(), rtsp_read_setup(), rtsp_send_reply(), run_postproc(), rv10_decode_frame(), rv10_decode_init(), rv10_decode_packet(), rv10_decode_picture_header(), rv10_write_header(), rv20_decode_picture_header(), rv30_decode_init(), rv30_decode_intra_types(), rv30_decode_mb_info(), rv30_parse_slice_header(), rv34_decode_intra_mb_header(), rv34_decode_slice(), rv40_decode_mb_info(), s302m_decode_frame(), s302m_parse_frame_header(), sap_read_header(), sap_write_header(), save_bits(), sbr_hf_calc_npatches(), sbr_hf_gen(), sbr_make_f_derived(), sbr_make_f_master(), sbr_mapping(), sbr_reset(), scale_vaapi_config_input(), scale_vaapi_config_output(), scale_vaapi_filter_frame(), scale_vaapi_init(), scaling_list_data(), scan_for_extensions(), scan_mmco_reset(), screenpresso_decode_frame(), screenpresso_init(), sctp_open(), sdp_parse_fmtp_config_h264(), sdt_cb(), seek_chapter(), seg_write_header(), seg_write_packet(), segment_hls_window(), select_input_picture(), select_rc_mode(), send_command_packet(), send_invoke_response(), seqvideo_decode_frame(), set_bps_params(), set_channel_layout(), set_channel_params(), set_channels(), set_chroma_format(), set_codec_from_probe_data(), set_codec_str(), set_default_channel_config(), set_disposition_bits(), set_language(), set_param(), set_string_number(), setup_classifs(), setup_default_stream(), setup_find_stream_info_opts(), setup_hwaccel(), setup_stream(), setup_streams(), shall_we_drop(), shift_data(), shorten_decode_frame(), show_banner(), show_help_codec(), show_help_default(), show_help_demuxer(), show_help_filter(), show_help_muxer(), shuffleplanes_config_input(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), sipr_decode_frame(), sipr_decoder_init(), skeleton_header(), skip_data_stream_element(), slice_end(), smacker_decode_bigtree(), smacker_decode_header_tree(), smacker_decode_tree(), smacker_read_header(), smacker_read_packet(), smc_decode_frame(), smc_decode_stream(), smjpeg_read_header(), smjpeg_read_packet(), smjpeg_write_header(), smka_decode_frame(), smka_decode_init(), smooth_init(), smush_read_header(), source_config_props(), source_init(), sox_read_header(), sox_write_header(), spdif_get_offset_and_codec(), spdif_header_aac(), spdif_header_dts(), spdif_header_dts4(), spdif_header_mpeg(), spdif_write_header(), spdif_write_packet(), speex_header(), split_commandline(), spx_strategy(), start_jack(), store_packet(), storeframe(), str_read_packet(), stream_component_open(), stream_setup(), submit_stats(), subtract_sf_weights(), sunrast_decode_frame(), sunrast_encode_init(), supply_new_packets(), svc_decode_frame(), svc_decode_init(), svc_encode_close(), svc_encode_frame(), svc_encode_init(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_encode_end(), svq1_encode_frame(), svq1_encode_plane(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_mb(), svq3_decode_slice_header(), svq3_mc_dir(), swf_probe(), swf_read_header(), swf_read_packet(), swf_write_audio(), swf_write_header(), swf_write_video(), sws_init_context(), sws_printVec2(), sws_scale(), swscale(), sync(), synchronize_audio(), synth_frame(), synth_superframe(), tak_decode_frame(), tak_read_header(), targa_decode_rle(), targa_encode_frame(), targa_encode_init(), tcp_open(), tdsc_decode_frame(), tdsc_decode_jpeg_tile(), tdsc_decode_tiles(), tdsc_init(), tdsc_load_cursor(), tdsc_parse_tdsf(), term_exit(), test_butterflies_float(), test_scalarproduct_float(), test_vector_dmul_scalar(), test_vector_fmac_scalar(), test_vector_fmul(), test_vector_fmul_add(), test_vector_fmul_reverse(), test_vector_fmul_scalar(), test_vector_fmul_window(), tget(), tgq_decode_frame(), tgq_decode_mb(), tgv_decode_frame(), tgv_decode_inter(), theora_header(), thread_init_internal(), tiff_decode_tag(), tiff_unpack_fax(), tiff_unpack_strip(), tls_open(), tm2_build_huff_table(), tm2_decode_blocks(), tm2_read_deltas(), tm2_read_header(), tm2_read_stream(), tm2_read_tree(), tmv_decode_frame(), tmv_read_header(), tqi_decode_frame(), transcode(), transcode_init(), truemotion1_decode_frame(), truemotion1_decode_header(), truemotion2rt_decode_header(), truespeech_decode_frame(), tscc2_decode_frame(), tscc2_decode_init(), tta_check_crc(), tta_decode_frame(), tta_decode_init(), tta_read_header(), twinvq_decode_init(), twinvq_read_bitstream(), twolame_encode_frame(), twolame_encode_init(), txd_decode_frame(), txd_read_packet(), udp_open(), udp_port(), udp_resolve_host(), udp_set_multicast_sources(), ulti_decode_frame(), uninit(), unpack_intraframe(), unpack_superblocks(), unpack_vlcs(), unsupported_codec(), utvideo_encode_frame(), utvideo_encode_init(), v410_decode_frame(), v410_decode_init(), v410_encode_frame(), v410_encode_init(), v4l2_read_close(), v4l2_read_header(), v4l2_set_parameters(), vaapi_buffer_free(), vaapi_build_decoder_config(), vaapi_decode_init(), vaapi_device_create(), vaapi_device_init(), vaapi_encode_alloc_output_buffer(), vaapi_encode_check_config(), vaapi_encode_discard(), vaapi_encode_free_output_buffer(), vaapi_encode_get_next(), vaapi_encode_h264_init_constant_bitrate(), vaapi_encode_h264_init_fixed_qp(), vaapi_encode_h264_init_internal(), vaapi_encode_h265_init_constant_bitrate(), vaapi_encode_h265_init_fixed_qp(), vaapi_encode_h265_init_internal(), vaapi_encode_issue(), vaapi_encode_make_packed_header(), vaapi_encode_make_param_buffer(), vaapi_encode_mangle_end(), vaapi_encode_mjpeg_init_internal(), vaapi_encode_output(), vaapi_encode_wait(), vaapi_frames_get_constraints(), vaapi_frames_init(), vaapi_get_buffer(), vaapi_map_frame(), vaapi_pool_alloc(), vaapi_retrieve_data(), vaapi_unmap_frame(), validate_mix_level(), validate_options(), validate_thread_parameters(), vb_decode_framedata(), vb_decode_palette(), vble_decode_frame(), vble_decode_init(), vc1_decode_b_blocks(), vc1_decode_frame(), vc1_decode_i_block(), vc1_decode_i_block_adv(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_init(), vc1_decode_intra_block(), vc1_decode_p_blocks(), vc1t_read_header(), vc1test_write_header(), vcr1_decode_frame(), vcr1_decode_init(), vda_h264_end_frame(), vda_init(), vda_old_h264_end_frame(), vda_retrieve_data(), vdpau_alloc(), vdpau_device_init(), vdpau_frames_init(), vdpau_hevc_start_frame(), vdpau_pool_alloc(), vdpau_transfer_data_from(), vdpau_transfer_data_to(), vdpau_transfer_get_formats(), verify_md5(), vfw_read_header(), vid_read_packet(), video_get_buffer(), video_thread(), vmd_decode(), vmd_read_header(), vmd_read_packet(), vmdaudio_decode_frame(), vmdaudio_decode_init(), vmdvideo_decode_frame(), vmdvideo_decode_init(), voc_read_header(), vorbis_decode_frame(), vorbis_decode_init(), vorbis_encode_frame(), vorbis_encode_init(), vorbis_floor0_decode(), vorbis_parse_audio_packet(), vorbis_parse_id_hdr(), vorbis_parse_init(), vorbis_parse_setup_hdr(), vorbis_parse_setup_hdr_codebooks(), vorbis_parse_setup_hdr_floors(), vorbis_parse_setup_hdr_mappings(), vorbis_parse_setup_hdr_residues(), vorbis_parse_setup_hdr_tdtransforms(), vorbis_residue_decode(), vorbis_residue_decode_internal(), vp3_decode_frame(), vp3_decode_init(), vp3_dequant(), vp3_init_thread_copy(), vp56_size_changed(), vp5_parse_header(), vp6_parse_header(), vp78_decode_frame(), vp8_broken_sequence(), vp8_decode(), vp8_decode_frame_header(), vp8_encode(), vp8_find_free_buffer(), vp8_header(), vp8_lossless_decode_frame(), vp8_lossy_decode_frame(), vp9_decode_frame(), vp9_decode_packet(), vp9_handle_packet(), vp9_init(), vpx_init(), vqa_decode_chunk(), vqa_decode_frame(), vqa_decode_init(), vqf_read_header(), wait_frame(), warn_insufficient_frame_quality(), warning_callback(), wav_write_header(), wav_write_packet(), wavpack_decode_block(), wavpack_decode_frame(), wavpack_encode_frame(), wavpack_encode_init(), wc3_read_header(), wc3_read_packet(), webp_decode_frame(), wma_decode_block(), wma_decode_init(), wma_decode_superframe(), wmavoice_decode_init(), wmv2_add_block(), write_abst(), write_begin(), write_header(), write_manifest(), write_number(), write_option(), write_packet(), write_status(), write_streamheader(), ws_snd_decode_frame(), wsvqa_read_header(), wsvqa_read_packet(), wtvfile_open2(), wtvfile_open_sector(), wv_check_crc(), wv_read_block_header(), wv_read_packet(), wv_write_header(), wv_write_packet(), X264_init(), x8_vlc_init(), xa_decode(), xan_decode_chroma(), xan_decode_frame(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_decode_init(), xbm_decode_frame(), xbm_encode_frame(), xcbgrab_frame(), xcbgrab_read_header(), xiph_handle_packet(), xiph_parse_fmtp_pair(), xmv_read_header(), xsub_encode(), xvid_correct_framerate(), xvid_encode_frame(), xvid_encode_init(), xwd_decode_frame(), xwd_encode_frame(), xwma_read_header(), yop_copy_previous_block(), yop_decode_frame(), yop_decode_init(), yop_paint_block(), yop_read_header(), yuv4_read_header(), yuv4_write_header(), yuv4_write_packet(), zerocodec_decode_frame(), zerocodec_decode_init(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), and zmbv_decode_xor_8().

Variable Documentation

◆ int32_t

int32_t

Definition at line 194 of file audio_convert.c.

Referenced by ac3_decode_transform_coeffs_ch(), adpcm_decode_frame(), alac_entropy_coder(), alac_linear_predictor(), alac_set_info(), alac_stereo_decorrelation(), allocate_buffers(), ape_decode_frame(), ape_read_header(), ape_unpack_stereo(), apply_channel_coupling(), apply_unsharp(), asf_read_simple_index(), asf_write_markers(), av_crc_init(), av_display_rotation_set(), bink_decode_plane(), binkb_decode_plane(), calc_predictor_params(), calculate_sign_huff(), celt_decode_band(), channel_decorrelation(), checkasm_check_fmtconvert(), chrRangeFromJpeg16_c(), chrRangeToJpeg16_c(), compute_imdct(), configure_input_video_filter(), configure_video_filters(), copy_tag(), create_map(), dca_filter_channels(), dca_norm(), dca_subsubframe(), dcadec_decode_frame(), dct4x4_impl(), dct8x8(), dctcoef_get(), dctcoef_set(), decode_cabac_residual_internal(), decode_channel(), decode_const_block_data(), decode_element(), decode_frame(), decode_residual(), decode_subframe(), decode_var_block_data(), decorrelate(), decorrelate_stereo(), dequantization_int(), dequantize_c(), dss_sp_sf_synthesis(), dump_sidedata(), dwt_decode53(), dwt_decode97_int(), dxa_read_header(), encode_init(), encode_residual_ch(), entropy_decode_mono_3860(), entropy_decode_mono_3900(), entropy_decode_mono_3990(), entropy_decode_stereo_3860(), entropy_decode_stereo_3900(), entropy_decode_stereo_3930(), entropy_decode_stereo_3990(), estimate_stereo_mode(), ff_ac3_apply_rematrixing(), ff_dca_xll_decode_header(), ff_eac3_apply_spectral_extension(), ff_get_bmp_header(), ff_ivi_inverse_haar_4x4(), ff_ivi_inverse_haar_8x8(), ff_ivi_inverse_slant_4x4(), ff_ivi_inverse_slant_8x8(), ff_ivi_recompose53(), ff_ivi_recompose_haar(), ff_j_rev_dct(), ff_jpeg2000_tag_tree_init(), ff_mlp_pack_output(), ff_rtp_check_and_send_back_rr(), ff_vda_default_init(), filter_3800(), filter_channel(), filter_fast_3320(), filter_frame(), finalize_packet(), find_sidx(), flv_read_packet(), get_dmix_coeff(), get_send_time(), get_xbits(), h264_export_frame_props(), h264_mp4toannexb_filter(), hq_decode_block(), hScale16To19_c(), hScale8To19_c(), huf_uncompress(), ict_int(), init_offset(), init_sample_buffers(), initFilter(), inter_predict_dc(), ivi_decode_blocks(), ivi_decode_coded_blocks(), long_filter_ehigh_3830(), long_filter_high_3800(), lpc_prediction(), lumRangeFromJpeg16_c(), lumRangeToJpeg16_c(), mlp_filter_channel(), mov_metadata_loci(), mov_read_elst(), mov_read_header(), mov_read_tkhd(), mov_write_loci_tag(), mov_write_tapt_tag(), mp3_parse_info_tag(), mp3_write_xing(), mp3lame_encode_frame(), mpeg1_decode_block_inter(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_non_intra(), mpeg2_fast_decode_block_non_intra(), msmpeg4_decode_dc(), output_buffer(), parse_value(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_dvd_decode_samples(), pcm_encode_frame(), predictor_decode_mono_3800(), predictor_decode_mono_3930(), predictor_decode_mono_3950(), predictor_decode_stereo_3800(), predictor_decode_stereo_3930(), predictor_decode_stereo_3950(), predictor_update_3930(), predictor_update_filter(), quantize_lpc_coefs(), ra144_encode_frame(), rct_int(), read_dct_coeffs(), read_filter_params(), read_mfra(), read_moof_duration(), read_var_block_data(), remove_wasted_bits(), request_frame(), revert_channel_correlation(), rice_count_exact(), rnd_table_init(), rpl_read_header(), rtcp_parse_packet(), rtcp_update_jitter(), scale_samples_s32(), scaling_list_data(), set_side_data(), shorten_decode_frame(), show_stream(), silk_decode_excitation(), silk_is_lpc_stable(), silk_lsf2lpc(), skip_tag(), smacker_read_header(), svq1_encode_init(), svq3_mc_dir(), sws_init_context(), swscale(), tag_tree_size(), tak_decode_frame(), tta_decode_frame(), tta_decode_init(), ttafilter_process(), unpack_intraframe(), update_md5_sum(), usePal(), wavpack_encode_frame(), write_element(), write_hint_packets(), write_subframes(), wv_unpack_mono(), wv_unpack_stereo(), x8_decode_intra_mb(), x8_loop_filter(), yuv2rgb48_1_c_template(), yuv2rgb48_2_c_template(), yuv2yuyv422_1(), yuvPlanartouyvy_c(), and yuvPlanartoyuy2_c().

◆ AV_SAMPLE_FMT_U8

AV_SAMPLE_FMT_U8

◆ uint8_t

uint8_t

Definition at line 194 of file audio_convert.c.

Referenced by a64_compress_colram(), a64_write_header(), a64multi_encode_frame(), a64multi_encode_init(), aac_adtstoasc_filter(), aac_decode_frame(), aac_decode_frame_int(), aac_decode_init(), aac_encode_init(), aac_sync(), aasc_decode_frame(), ac3_decode_frame(), ac3_decode_transform_coeffs_ch(), ac3_eac3_probe(), ac3_exponent_min_c(), ac3_sync(), add_entry(), add_frame_default(), add_hfyu_median_pred_c(), add_lag_median_prediction(), adpcm_compress_trellis(), adpcm_decode_frame(), adpcm_encode_frame(), adpcm_encode_init(), adts_aac_probe(), adts_write_packet(), adx_decode_frame(), adx_encode_frame(), aic_decode_coeffs(), aic_decode_frame(), aic_decode_init(), aic_decode_slice(), alac_encode_init(), alloc_and_copy(), alloc_scratch_buffers(), allocate_buffers(), alpha_inverse_prediction(), amr_decode_fix_avctx(), amr_handle_packet(), amr_read_header(), amr_read_packet(), amrnb_decode_frame(), amrwb_decode_frame(), ape_decode_frame(), ape_tag_read_field(), append_flv_data(), apply_8x8(), apply_color_indexing_transform(), apply_color_transform(), apply_delogo(), apply_loop_filter(), apply_param_change(), apply_subtract_green_transform(), apply_unsharp(), asf_read_content_desc(), asf_read_ext_content(), asf_read_metadata_obj(), asf_read_payload(), asf_read_picture(), asf_read_stream_properties(), asf_read_subpayload(), asf_read_value(), asf_write_header1(), asf_write_markers(), at1_unpack_dequant(), atrac1_decode_frame(), atrac3_decode_frame(), atrac3_decode_init(), audio_decode_example(), audio_encode_example(), audio_write_packet(), aura_decode_frame(), av_aes_init(), av_base64_decode(), av_buffer_alloc(), av_buffer_realloc(), av_crc(), av_des_mac(), av_dump_format(), av_fast_padded_malloc(), av_fifo_generic_read(), av_fifo_generic_write(), av_fifo_peek2(), av_frame_get_plane_buffer(), av_hmac_final(), av_hmac_init(), av_hwdevice_ctx_alloc(), av_hwframe_ctx_alloc(), av_image_alloc(), av_image_copy_to_buffer(), av_image_get_buffer_size(), av_lfg_init(), av_log(), av_log_default_callback(), av_lzo1x_decode(), av_mallocz_array(), av_md5_final(), av_memcpy_backptr(), av_opt_copy(), av_opt_free(), av_opt_get(), av_opt_get_dict_val(), av_opt_set(), av_opt_set_bin(), av_opt_set_dict_val(), av_packet_copy_props(), av_packet_new_side_data(), av_parser_change(), av_parser_parse2(), av_picture_pad(), av_probe_input_buffer(), AV_RB16(), AV_RB24(), AV_RB32(), av_rc4_crypt(), av_rc4_init(), av_read_image_line(), AV_RL16(), AV_RL24(), AV_RL32(), av_samples_alloc(), av_sha_final(), av_strcasecmp(), av_stream_new_side_data(), av_strncasecmp(), av_vorbis_parse_init(), av_write_image_line(), avcodec_copy_context(), avconv_parse_options(), avg_no_rnd_vc1_chroma_mc4_c(), avi_read_header(), avi_read_packet(), avpriv_dv_produce_packet(), avs_decode_frame(), avs_probe(), avs_read_packet(), backup_mb_border(), bethsoftvid_decode_frame(), bfi_decode_frame(), bgr8torgb8(), bidir_refine(), bilin_1d_fn(), bink_decode_plane(), bink_put_pixels(), binkb_calc_quant(), binkb_decode_plane(), binkb_read_bundle(), bit8x8_c(), bitplane_decoding(), bktr_init(), blend_frame(), blend_subrect(), block_cmp(), blur_power(), bmp_decode_frame(), bmp_encode_frame(), bmv_aud_decode_frame(), buffer_needs_copy(), build_canonical_huff(), build_elision_headers(), build_huff(), build_huff_tree(), build_vlc(), cavs_decode_frame(), cavs_idct8_add_c(), cbr_bit_allocation(), cdata_probe(), cdg_border_preset(), cdg_decode_frame(), cdg_load_palette(), cdg_scroll(), cdg_tile_block(), cdxl_decode_frame(), cdxl_decode_ham6(), cdxl_decode_ham8(), celt_decode_band(), celt_decode_bands(), celt_decode_coarse_energy(), celt_deinterleave_hadamard(), celt_header(), celt_interleave_hadamard(), channelmap_filter_frame(), check_bidir_mv(), check_epel(), check_header_mismatch(), check_idct(), check_idct_dc4(), check_intra_mode(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), check_mc(), check_pred16x16(), check_pred4x4(), check_pred8x8(), check_pred8x8l(), check_qpel(), check_unweighted_pred(), check_weighted_pred(), checkasm_check_bswapdsp(), checkasm_check_h264pred(), checkasm_check_h264qpel(), checkasm_check_hevc_mc(), checkasm_check_v210enc(), chroma_4mv_motion(), chroma_mc(), cinaudio_decode_frame(), cinepak_decode(), cinepak_decode_codebook(), cinepak_decode_frame(), cinepak_decode_strip(), cinepak_decode_vectors(), cinvideo_decode_frame(), cllc_decode_frame(), cmp(), cmp_direct_inline(), cmp_inline(), cmv_decode_frame(), cmv_decode_inter(), color_config_props(), commit_bitstream_and_slice_buffer(), compare_addr(), compress_alpha(), compress_texture(), compute_exp_strategy(), config_input(), configure_input_video_filter(), configure_video_filters(), convert_frame(), convert_from_rgb32(), cook_decode_frame(), copy(), copy_backptr(), copy_block(), copy_cell(), copy_frame(), copy_frame_default(), copy_input_samples(), copy_moof(), copy_output(), copy_picture_field(), copy_processed_frame(), copy_region_enc(), count_frame_header(), create_iv(), create_vorbis_context(), cuda_pool_alloc(), cyuv_decode_frame(), dc1394_read_common(), dca_decode_frame(), dca_parse_audio_coding_header(), dca_parse_params(), dcadec_decode_frame(), dct_get(), dct_quantize_refine(), dct_quantize_trellis_c(), dct_sad8x8_c(), deblocking_filter_CTB(), decode(), decode_0(), decode_10bit_pulse(), decode_13(), decode_5(), decode_8(), decode_argb_frame(), decode_audio_block(), decode_audio_s16(), decode_band(), decode_band_hdr(), decode_band_structure(), decode_band_types(), decode_bdlt(), decode_block(), decode_block_coeffs(), decode_block_intra(), decode_bmv_frame(), decode_byterun(), decode_cabac_intra_mb_type(), decode_cabac_luma_residual(), decode_cabac_residual_internal(), decode_cell(), decode_cell_data(), decode_chunks(), decode_coeffs(), decode_dc(), decode_dds1(), decode_dsw1(), decode_dvd_subtitles(), decode_eld_specific_config(), decode_entropy_coded_image(), decode_extradata_ps_mp4(), decode_frame(), decode_frame_byterun1(), decode_frame_header(), decode_frame_headers(), decode_frame_ilbm(), decode_ga_specific_config(), decode_hextile(), decode_hybrid(), decode_i_frame(), decode_init(), decode_init_static(), decode_interframe_v4(), decode_interframe_v4a(), decode_intra4x4_modes(), decode_lt_rps(), decode_luma_residual(), decode_main_header(), decode_mb_i(), decode_mode(), decode_mvc1(), decode_mvc2(), decode_nal_sei_decoded_picture_hash(), decode_p_frame(), decode_packet(), decode_pgod_cprl(), decode_picture_header(), decode_pixel_in_context(), decode_plane(), decode_region(), decode_region_intra(), decode_region_masked(), decode_residual_block(), decode_rgb24_frame(), decode_rle(), decode_scaling_list(), decode_scaling_matrices(), decode_sgirle8(), decode_slice(), decode_slice_header(), decode_splitmvs(), decode_str(), decode_subblock(), decode_sym(), decode_sym_565(), decode_tag(), decode_tdlt(), decode_tilehdr(), decode_tsw1(), decode_unregistered_user_data(), decode_vui(), decode_wdlt(), decode_yuv_frame(), decompress_chunks_thread(), decompress_texture_thread(), decrypt_init(), delta_decode(), denoise_depth(), dequant(), dequant_lsps(), derive_key(), dfa_decode_frame(), dirac_combine_frame(), dnxhd_10bit_dct_quantize(), dnxhd_decode_dct_block(), dnxhd_decode_frame(), dnxhd_decode_header(), dnxhd_decode_macroblock(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_encode_thread(), dnxhd_get_blocks(), dnxhd_init_qmat(), dnxhd_mb_var_thread(), dnxhd_probe(), dnxhd_unquantize_c(), dnxhd_write_header(), do_adobe_auth(), do_llnw_auth(), do_subtitle_out(), do_swizzle(), doTest(), dpcm_decode_frame(), draw_edges_8_c(), draw_glyph_rgb(), draw_glyph_yuv(), draw_glyphs(), drawbox(), dss_sp_decode_frame(), dtext_prepare_text(), dts_probe(), dump_paramchange(), dv_calc_mb_coordinates(), dv_decode_ac(), dv_decode_video_segment(), dv_encode_video_segment(), dv_extract_audio(), dv_extract_audio_info(), dv_extract_video_info(), dv_init_enc_block(), dv_inject_metadata(), dv_write_dif_id(), dv_write_pack(), dv_write_packet(), dvb_encode_rle2(), dvb_encode_rle4(), dvbsub_decode(), dvbsub_parse(), dvbsub_parse_clut_segment(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_pixel_data_block(), dvbsub_parse_region_segment(), dvbsub_read_8bit_string(), dvd_encode_rle(), dvdsub_decode(), dvvideo_decode_frame(), dx2_decode_slice_410(), dx2_decode_slice_420(), dx2_decode_slice_444(), dx2_decode_slice_5x5(), dx2_decode_slice_rgb(), dxa_read_packet(), dxn3dc_block(), dxt3_block_internal(), dxt5_block_internal(), dxt5ys_block(), dxtory_decode_v1_410(), dxtory_decode_v1_420(), dxtory_decode_v1_444(), dxtory_decode_v1_rgb(), dxtory_decode_v2(), dxva2_pool_alloc(), dxva2_transfer_data(), ebml_parse_nest(), ebml_read_ascii(), ebml_read_num(), emulated_edge_mc(), encode_422_bitstream(), encode_bitstream(), encode_block(), encode_dvb_subtitles(), encode_dvd_subtitles(), encode_exponents(), encode_exponents_blk_ch(), encode_frame(), encode_init(), encode_mb_hq(), encode_mb_internal(), encode_nals(), encode_picture_ls(), encode_plane(), encode_rgb48_10bit(), encode_slice(), encode_slice_header(), encode_thread(), encrypt_counter(), epic_jb_decode_tile(), escape124_decode_frame(), escape130_decode_frame(), escape_FF(), estimate_motion_b(), event_cmp(), expand_rle_row8(), expand_strftime(), exponents_from_scale_factors(), extract_color(), f_func(), fade(), fbdev_read_packet(), ff_ac3_apply_rematrixing(), ff_ac3_group_exponents(), ff_add_cpb_side_data(), ff_add_param_change(), ff_amf_tag_size(), ff_ape_parse_tag(), ff_asfcrypt_dec(), ff_atrac3p_init_vlcs(), ff_audio_data_add_to_fifo(), ff_audio_data_realloc(), ff_audio_mix(), ff_avc_find_startcode(), ff_avc_find_startcode_internal(), ff_avc_parse_nal_units(), ff_avc_write_annexb_extradata(), ff_bgmc_decode(), ff_cavs_filter(), ff_copy_rectangle(), ff_cos(), ff_dct_quantize_c(), ff_decode_frame_props(), ff_draw_rectangle(), ff_dvvideo_init(), ff_eac3_apply_spectral_extension(), ff_els_decode_unsigned(), ff_er_add_slice(), ff_er_frame_end(), ff_er_frame_start(), ff_estimate_p_frame_motion(), ff_fill_line_with_color(), ff_flac_parse_picture(), ff_flac_parse_streaminfo(), ff_flac_write_header(), ff_generate_avci_extradata(), ff_get_best_fcode(), ff_h261_loop_filter(), ff_h263_decode_frame(), ff_h263_find_resync_marker_reverse(), ff_h263_handle_packet(), ff_h263_loop_filter(), ff_h263_round_chroma(), ff_h2645_extract_rbsp(), ff_h264_alloc_tables(), ff_h264_chroma422_dc_dequant_idct(), ff_h264_decode_extradata(), ff_h264_decode_mb_cabac(), ff_h264_decode_mb_cavlc(), ff_h264_filter_mb(), ff_h264_handle_aggregated_packet(), ff_h264_luma_dc_dequant_idct(), ff_h264_parse_sprop_parameter_sets(), ff_h264_slice_context_init(), ff_h264_unref_picture(), ff_hevc_annexb2mp4(), ff_hevc_deblocking_boundary_strengths(), ff_hevc_decode_nal_pps(), ff_hevc_decode_short_term_rps(), ff_hevc_significant_coeff_flag_decode(), ff_hevc_slice_rpl(), ff_id3v1_read(), ff_id3v2_read(), ff_id3v2_write_apic(), ff_init_range_decoder(), ff_insert_pad(), ff_isom_write_avcc(), ff_isom_write_hvcc(), ff_ivi_decode_frame(), ff_jpeg2000_ceildiv(), ff_jpeg2000_getrefctxno(), ff_jpegls_decode_picture(), ff_log2_q15(), ff_lzf_uncompress(), ff_lzw_decode(), ff_lzw_encode(), ff_mjpeg_decode_dht(), ff_mjpeg_decode_frame(), ff_mjpeg_find_marker(), ff_mkv_stereo3d_conv(), ff_mlp_calculate_parity(), ff_mlp_checksum8(), ff_mms_asf_header_parser(), ff_mov_add_hinted_packet(), ff_mov_iso639_to_lang(), ff_mov_write_packet(), ff_mpeg1_encode_picture_header(), ff_mpeg4_encode_mb(), ff_mpeg4_init_partitions(), ff_mpv_encode_picture(), ff_msmpeg4_encode_block(), ff_msmpeg4_encode_mb(), ff_msmpeg4_pred_dc(), ff_mspel_motion(), ff_mss34_gen_quant_mat(), ff_opus_parse_extradata(), ff_opus_parse_packet(), ff_parse_mpeg2_descriptor(), ff_put_wav_header(), ff_qsv_process_data(), ff_rdt_parse_packet(), ff_rl_init(), ff_rle_count_pixels(), ff_rle_encode(), ff_rtjpeg_decode_frame_yuv420(), ff_rtmp_packet_dump(), ff_rtmp_packet_read(), ff_rtmp_packet_write(), ff_rtmpe_compute_secret_key(), ff_rtp_chain_mux_open(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_aac(), ff_rtp_send_amr(), ff_rtp_send_h261(), ff_rtp_send_h263(), ff_rtp_send_h263_rfc2190(), ff_rtp_send_h264_hevc(), ff_rtp_send_jpeg(), ff_rtp_send_mpegvideo(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), ff_rtp_send_xiph(), ff_rtsp_open_transport_ctx(), ff_rtsp_tcp_write_packet(), ff_rv34_decode_frame(), ff_samples_to_time_base(), ff_snappy_uncompress(), ff_srtp_decrypt(), ff_srtp_encrypt(), ff_srtp_set_crypto(), ff_twinvq_decode_frame(), ff_u8_to_s8(), ff_vaapi_alloc_slice(), ff_vaapi_get_surface_id(), ff_vc1_interp_mc(), ff_vc1_mc_1mv(), ff_vc1_mc_4mv_chroma(), ff_vc1_mc_4mv_chroma4(), ff_vc1_mc_4mv_luma(), ff_vc1_pred_b_mv(), ff_vda_create_decoder(), ff_vda_default_init(), ff_vorbis_comment(), ff_vp56_decode_frame(), ff_vp9_adapt_probs(), ff_wma_init(), ff_wmv2_decode_mb(), ff_wmv2_encode_mb(), ff_yuv2rgb_init_tables_ppc(), ffio_fdopen(), ffio_free_dyn_buf(), ffio_set_buf_size(), ffio_wfourcc(), ffmal_copy_frame(), ffmmal_add_packet(), ffmmal_set_ref(), ffurl_write(), ffv1_decode_frame(), ffv1_encode_frame(), ffv1_encode_init(), ffv1_init_slice_state(), fic_decode_frame(), fic_decode_slice(), fic_draw_cursor(), fill_buffer(), fill_decode_caches(), fill_decode_neighbors(), fill_filter_caches(), fill_noise_buffer(), fill_rectangle(), fillPlane(), filter_8tap_1d_fn(), filter_common(), filter_edges(), filter_frame(), filter_line_c(), filter_mb(), filter_mb_dir(), filter_mbedge(), filter_slice(), filter_slice_chroma(), filter_slice_luma(), find_header_idx(), find_headers_search_validate(), find_index_range(), find_marker(), find_new_headers(), find_resync_marker_reverse(), find_smallest_bounding_rectangle(), flac_decode_frame(), flac_decode_init(), flac_encode_frame(), flac_encode_init(), flac_fifo_read(), flac_fifo_read_wrap(), flac_header(), flac_parse(), flac_read_header(), flac_write_block_comment(), flac_write_header(), flac_write_packet(), flac_write_trailer(), flashsv_decode_block(), flashsv_encode_frame(), flic_decode_frame(), flip_swap_frame(), flush(), flush_packet(), flush_put_bits(), flv_probe(), flv_read_packet(), flv_write_packet(), frame_copy_video(), g2m_decode_frame(), g2m_load_cursor(), g2m_paint_cursor(), g723_1_decode_frame(), g726_reset(), gather_data_for_cel(), gather_data_for_subcel(), gbr24ptopacked24(), gbr24ptopacked32(), gen_buffer_time(), gen_bytes_read(), gen_check_bw(), gen_connect(), gen_create_stream(), gen_delete_stream(), gen_fcpublish_stream(), gen_fcsubscribe_stream(), gen_fcunpublish_stream(), gen_get_stream_length(), gen_pause(), gen_play(), gen_pong(), gen_publish(), gen_release_stream(), gen_seek(), gen_server_bw(), gen_swf_verification(), generate_fake_vps(), generate_joint_tables(), generate_new_codebooks(), get16(), get8(), get_asf_string(), get_bits1(), get_block(), get_buffer(), get_che(), get_chunk_header(), get_cox(), get_exponent_dynamic(), get_generic_seed(), get_line(), get_meta(), get_metadata(), get_metadata_size(), get_number(), get_packet_header(), get_packetheader(), get_private_data(), get_pts(), get_siz(), get_slice_data(), get_sot(), get_stats(), get_tlm(), getstr8(), gif_decode_frame(), gif_encode_frame(), gif_image_write_image(), gif_read_header1(), gif_read_image(), gmc1_motion(), gmc_motion(), grow_array(), gsm_decode_frame(), guess_mv(), guess_palette(), gxf_probe(), gxf_write_header(), gxf_write_mpeg_auxiliary(), h261_decode_block(), h261_decode_frame(), h263_decode_block(), h263_mv4_search(), h264_decode_frame(), h264_export_frame_props(), h264_extradata_to_annexb(), h264_field_start(), h264_handle_packet(), h264_handle_packet_fu_a(), h264_mp4toannexb_filter(), h_block_filter(), handle_invoke_error(), handle_invoke_status(), handle_metadata(), handle_notify(), handle_packet(), handle_packets(), hap_compress_frame(), hcscale(), hevc_extradata_to_annexb(), hevc_handle_packet(), hevc_probe(), hevc_sdp_parse_fmtp_config(), hl_decode_mb(), hl_decode_mb_444(), hl_decode_mb_idct_luma(), hl_decode_mb_predict_luma(), hls_coding_unit(), hls_pcm_sample(), hls_prediction_unit(), hls_residual_coding(), hls_transform_tree(), hnm_flip_buffers(), hnm_update_palette(), horizontal_frame_pack(), hq_decode_frame(), hqa_decode_frame(), hqx_decode_frame(), html_color_parse(), http_buf_read(), http_seek(), huf_decode(), huff_build(), hvcc_add_nal_unit(), hvcc_array_add_nal_unit(), hvcc_close(), hvcc_parse_pps(), hvcc_parse_ptl(), hvcc_write(), hyscale(), icecast_write(), id3v2_parse(), id3v2_put_ttag(), idcin_decode_frame(), idcin_read_packet(), idct_mb(), idct_put(), iff_probe(), ilbc_decode_frame(), ilbc_read_header(), imc_decode_frame(), imc_read_level_coeffs(), imx_dump_header(), init(), init_band(), init_band_stepsize(), init_coef_vlc(), init_context_frame(), init_dequant4_coeff_table(), init_dequant8_coeff_table(), init_filter_graph(), init_ralf_vlc(), initFilter(), inject_fake_duration_metadata(), inter_recon(), interlaced_search(), interleaveBytes(), intra_pred(), intra_pred_plane(), intra_predict(), intra_prediction_unit(), intra_recon(), inverse_prediction(), ipmovie_probe(), ipmovie_read_header(), ipvideo_decode_frame(), ir2_decode_frame(), is_intra_more_likely(), isDiffMER(), ivi_create_huff_from_desc(), ivi_decode_blocks(), ivi_decode_coded_blocks(), jpeg2000_read_main_headers(), jpeg_create_header(), jpeg_parse_packet(), jpeg_put_comments(), jpeg_table_header(), jpg_decode_block(), jpg_decode_data(), jpg_unescape(), kempf_decode_tile(), lag_decode_arith_plane(), lag_decode_frame(), lag_decode_prob(), lag_decode_zero_run_line(), lag_get_rac(), latm_parse_packet(), latm_write_packet(), left_predict(), libgsm_decode_frame(), libkvazaar_init(), libopenjpeg_copy_to_packed8(), libopenjpeg_copyto8(), libopenjpeg_decode_frame(), libopus_decode_init(), libopus_encode(), libopus_encode_init(), libopus_write_header(), libschroedinger_decode_frame(), libspeex_decode_frame(), libvorbis_encode_init(), libx265_encode_frame(), ljpeg_decode_rgb_scan(), ljpeg_decode_yuv_scan(), ljpeg_encode_bgr(), ljpeg_encode_yuv_mb(), load_cursor(), load_input_picture(), load_ipmovie_packet(), loop_filter(), loopfilter_subblock(), luma_intra_pred_mode(), luma_mc(), lxf_read_header(), m4sl_cb(), mace_decode_frame(), magy_decode_frame(), magy_decode_slice(), main(), make_digest_auth(), match_colors(), matroska_decode_buffer(), matroska_parse_flac(), matroska_parse_frame(), matroska_parse_laces(), matroska_parse_tracks(), matroska_parse_wavpack(), mb_var_thread(), mc_dir_part(), mc_part_weighted(), md5_close(), md5_finish(), mdec_decode_block_intra(), median_predict(), merge(), mimic_decode_frame(), mix(), mjpeg2jpeg_filter(), mjpeg_decode_scan(), mjpeg_decode_scan_progressive_ac(), mjpega_dump_header(), mjpegb_decode_frame(), mkv_flush_dynbuf(), mkv_strip_wavpack(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_simpletag(), mlp_parse(), mm_decode_frame(), motion_arg(), motion_compensation(), mov_change_extradata(), mov_create_chapter_track(), mov_flush_fragment(), mov_flush_fragment_interleaving(), mov_parse_stsd_video(), mov_parse_vc1_frame(), mov_read_chapters(), mov_read_cmov(), mov_read_colr(), mov_read_custom(), mov_read_dvc1(), mov_read_extradata(), mov_read_ftyp(), mov_read_header(), mov_read_mac_string(), mov_read_packet(), mov_read_replaygain(), mov_read_sbgp(), mov_rewrite_dvd_sub_extradata(), mov_write_ac3_tag(), mov_write_dvc1_structs(), mov_write_dvc1_tag(), mov_write_isml_manifest(), mov_write_tfrf_tag(), mov_write_tfxd_tag(), mov_write_track_udta_tag(), mov_write_udta_tag(), mp3_read_probe(), mp3_update_xing(), mp3_write_trailer(), mp3_write_xing(), mp_decode_frame(), mp_decode_layer1(), mp_decode_layer3(), mp_yuv_to_rgb(), mpc7_decode_frame(), mpc7_decode_init(), mpc8_decode_frame(), mpc8_parse_seektable(), mpc8_probe(), mpc_probe(), mpeg1_decode_block_inter(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_intra(), mpeg2_decode_block_non_intra(), mpeg2_fast_decode_block_intra(), mpeg2_fast_decode_block_non_intra(), mpeg4_decode_block(), mpeg4_encode_block(), mpeg4_get_block_length(), mpeg_decode_a53_cc(), mpeg_decode_frame(), mpeg_decode_postinit(), mpeg_decode_slice(), mpeg_decode_user_data(), mpeg_motion_internal(), mpeg_mux_write_packet(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_pcr(), mpegts_insert_null_packet(), mpegts_insert_pcr_only(), mpegts_push_data(), mpegts_raw_read_packet(), mpegts_read_header(), mpegts_write_packet_internal(), mpegts_write_pat(), mpegts_write_pes(), mpegts_write_pmt(), mpegts_write_sdt(), mpegts_write_section1(), mpegvideo_extract_headers(), mpv_decode_mb_internal(), mpv_motion_internal(), msmpeg4v34_decode_mb(), msnwc_tcp_probe(), msrle_decode_8_16_24_32(), msrle_decode_frame(), mss1_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_dct_block(), mss4_decode_frame(), mss4_decode_image_block(), mss4_init_vlc(), msvideo1_decode_frame(), mszh_decomp(), mux_frames(), mxf_decrypt_triplet(), mxf_get_d10_aes3_packet(), mxf_probe(), mxf_read_content_storage(), mxf_read_generic_descriptor(), mxf_read_material_package(), mxf_read_sequence(), mxf_read_source_package(), mxf_write_d10_audio_packet(), mxf_write_header(), mxf_write_multi_descriptor(), mxg_read_packet(), mxpeg_decode_frame(), mxpeg_decode_mxm(), nal_send(), nal_unit_extract_rbsp(), nppscale_interleave(), nsv_read_chunk(), nuv_packet(), nv12ToPlanarWrapper(), nvenc_copy_frame(), obmc_motion(), ogg_buffer_data(), ogg_build_flac_headers(), ogg_build_opus_headers(), ogg_build_speex_headers(), ogg_new_buf(), ogg_read_page(), ogg_write_header(), ogg_write_page(), ogg_write_vorbiscomment(), ogm_dshow_header(), ogm_header(), ogm_packet(), old_codec1(), old_codec37(), old_codec47(), old_dirac_header(), oma_read_header(), oma_read_probe(), omx_encode_frame(), on2avc_decode_frame(), open_input_file(), open_null_ctx(), open_output_file(), opt_filter_complex_script(), opt_size(), optimize_colors(), opus_decode_frame(), opus_decode_packet(), opus_find_frame_end(), opus_flush_resample(), opus_header(), opus_init_resample(), opus_packet(), opus_rc_trimodel(), output_configure(), output_frame_end(), output_plane(), pack_yuv(), packedCopyWrapper(), packedtogbr24p(), paf_audio_decode(), paf_video_decode(), palToRgbWrapper(), pam_encode_frame(), parse_adts_frame_header(), parse_chunks(), parse_fmtp_config(), parse_fragment(), parse_media_type(), parse_nal_units(), parse_object_segment(), parse_opus_ts_header(), parse_packed_headers(), parse_packet(), parse_palette(), parse_palette_segment(), parse_pcr(), parse_playlist(), parse_profile_level_id(), parse_rps(), parse_setup_header(), parse_timecode(), parse_transform_color_indexing(), parse_waveformatex(), pat_cb(), pcm_bluray_decode_frame(), pcm_bluray_parse_header(), pcm_decode_frame(), pcm_dvd_decode_frame(), pcm_dvd_decode_samples(), pcm_encode_frame(), pcx_decode_frame(), pcx_encode_frame(), pcx_rle_encode(), picmemset(), picmemset_8bpp(), pix_abs16_xy2_c(), pix_abs16_y2_c(), pix_abs8_xy2_c(), pix_abs8_y2_c(), piz_uncompress(), planarCopyWrapper(), planarRgbToRgbWrapper(), planarToNv12Wrapper(), planarToUyvyWrapper(), planarToYuy2Wrapper(), pmt_cb(), png_choose_filter(), png_get_interlaced_row(), png_handle_row(), png_put_interlaced_row(), png_write_chunk(), pnm_decode_frame(), pnm_encode_frame(), pnm_parse(), pred16x16_tm_vp8_c(), pred4x4_tm_vp8_c(), pred8x8_tm_vp8_c(), pred_spatial_direct_motion(), pred_weight_table(), predictor(), prefetch_motion(), prefetch_ppc(), premult2straight(), probe(), process_audio_header_elements(), process_block(), process_input(), process_output(), psy_3gpp_init(), psy_3gpp_window(), ptx_decode_frame(), put16(), put_blocks(), put_cursor(), put_flac_codecpriv(), put_main_header(), put_mspel8_mc10_c(), put_mspel8_mc12_c(), put_mspel8_mc22_c(), put_mspel8_mc30_c(), put_mspel8_mc32_c(), put_obmc(), put_packet(), put_pixels8x8_overlapped(), put_signed_pixels_clamped_c(), put_str16(), put_swf_matrix(), put_swf_rect(), put_xiph_codecpriv(), putstr8(), pxr24_uncompress(), qcelp_decode_frame(), qcp_read_header(), qdm2_decode_frame(), qdm2_decode_init(), qdm2_parse_config(), qdm2_parse_packet(), qdm2_parse_subpacket(), qdm2_restore_block(), qpeg_decode_inter(), qpel_motion(), qsv_pool_alloc(), qsv_retrieve_enc_params(), qtrle_decode_frame(), qtrle_encode_line(), queue_frames(), queue_picture(), ra144_decode_frame(), ra144_encode_frame(), ra288_decode_frame(), raw_decode(), rd8x8_c(), read_access_unit(), read_arbitrary(), read_argb_line(), read_audio_mux_element(), read_block_types(), read_chapter(), read_code_table(), read_colors(), read_connect(), read_dcs(), read_decode_convert_and_store(), read_extra_header(), read_file(), read_frame(), read_gab2_sub(), read_header(), read_huffman_tables(), read_kuki_chunk(), read_motion_values(), read_mv_component(), read_number_result(), read_old_huffman_tables(), read_packet(), read_patterns(), read_payload_length_info(), read_quant_table(), read_restart_header(), read_rgb24_component_line(), read_rle_sgi(), read_runs(), read_sbr_header(), read_sbr_invf(), read_seek(), read_shape_from_file(), read_tag(), read_tree(), read_ttag(), read_uncompressed_sgi(), read_xing_toc(), reconstruct_frame(), render_charset(), render_slice(), request_frame(), reset_block_bap(), residual_interp(), restore_median(), restore_median_il(), restore_rgb_planes(), restore_tqb_pixels(), rgb15to16(), rgb15to16_c(), rgb15to24(), rgb15to32(), rgb15to32_c(), rgb15tobgr24(), rgb15tobgr24_c(), rgb15tobgr32(), rgb16to15(), rgb16to15_c(), rgb16to24(), rgb16to32(), rgb16to32_c(), rgb16tobgr24(), rgb16tobgr24_c(), rgb16tobgr32(), rgb24to15(), rgb24to15_c(), rgb24to16(), rgb24to16_c(), rgb24tobgr15(), rgb24tobgr15_c(), rgb24tobgr16(), rgb24tobgr16_c(), rgb24tobgr24(), rgb24tobgr24_c(), rgb24tobgr32(), rgb24tobgr32_c(), rgb32to15(), rgb32to15_c(), rgb32to16(), rgb32to16_c(), rgb32tobgr15(), rgb32tobgr15_c(), rgb32tobgr16(), rgb32tobgr16_c(), rgb32tobgr24(), rgb32tobgr24_c(), rgb_to_yuv(), rgbToPlanarRgbWrapper(), rgbToRgbWrapper(), rgtc2_block_internal(), rgtc_block_internal(), rl2_decode_frame(), rl2_decode_init(), rl2_rle_decode(), rle_uncompress(), rm_ac3_swap_bytes(), rnd_table_init(), roq_decode_frame(), roq_dpcm_encode_frame(), roq_write_header(), rotate_luts(), rpza_decode_stream(), rscc_decode_frame(), rtmp_calc_swf_verification(), rtmp_calc_swfhash(), rtmp_handshake(), rtmp_http_close(), rtmp_http_send_cmd(), rtmp_open(), rtmp_packet_read_one_chunk(), rtmp_server_handshake(), rtmp_validate_digest(), rtmp_write(), rtp_asf_fix_header(), rtp_mpegts_write_packet(), rtp_parse_one_packet(), rtp_write_packet(), run_postproc(), rv10_decode_frame(), rv10_decode_init(), rv20_decode_picture_header(), rv30_loop_filter(), rv30_weak_loop_filter(), rv34_decode_inter_macroblock(), rv34_gen_vlc(), rv34_mc(), rv34_output_i16x16(), rv34_output_intra(), rv34_pred_4x4_block(), rv40_loop_filter(), rv40_loop_filter_strength(), rv40_weak_loop_filter(), s302m_decode_frame(), sad_hpel_motion_search(), sample_queue_retain(), sao_edge_filter_0(), sao_edge_filter_1(), sao_edge_filter_2(), sao_edge_filter_3(), sao_filter_CTB(), sap_fetch_packet(), sap_read_header(), save_avio_options(), scaling_list_data(), sdl_audio_callback(), sdt_cb(), send_invoke_response(), seqvideo_decode_frame(), set_bandwidth(), set_codec_str(), set_encoder_id(), set_mvs(), set_number(), set_param(), set_string_binary(), setup_partitions(), shall_we_drop(), shift_data(), shorten_decode_frame(), shrink22(), shrink44(), shuffle_bytes_2103(), shuffle_bytes_2103_c(), shuffleplanes_filter_frame(), silk_decode_excitation(), silk_decode_lpc(), sipr_decode_frame(), skeleton_header(), skip_bytes(), skip_check(), skip_hrd_parameters(), slice_decode_thread(), smacker_read_packet(), smc_decode_frame(), smka_decode_frame(), snappy_copy(), sp5x_decode_frame(), spdif_header_eac3(), spdif_probe(), speex_header(), store_icy(), str_probe(), sub_hfyu_median_pred_c(), sunrast_decode_frame(), sunrast_image_write_image(), svc_decode_frame(), svq1_decode_block_intra(), svq1_decode_block_non_intra(), svq1_decode_frame(), svq1_decode_frame_header(), svq1_decode_init(), svq1_encode_frame(), svq1_encode_init(), svq1_encode_plane(), svq1_motion_inter_4v_block(), svq1_motion_inter_block(), svq1_parse_string(), svq1_skip_block(), svq3_decode_block(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_mb(), svq3_luma_dc_dequant_idct_c(), svq3_mc_dir_part(), swf_probe(), swf_write_header(), sws_scale(), swscale(), sync(), synchronize_audio(), synth_block_fcb_acb(), tak_decode_frame(), tak_parse(), tak_read_header(), targa_decode_rle(), targa_encode_frame(), targa_encode_normal(), targa_encode_rle(), tdsc_load_cursor(), tdsc_paint_cursor(), test(), test_encode_decode(), test_random_shared_secret(), test_ref_data(), tget(), tgq_decode_block(), tgq_decode_frame(), tgq_decode_init(), tgq_idct_put_mb(), tgq_idct_put_mb_dconly(), tgv_decode_frame(), tgv_decode_inter(), theora_header(), tiff_unpack_fax(), tm2_decode_blocks(), tmv_decode_frame(), to_meta_with_crop(), tqi_decode_frame(), tqi_idct_put(), truemotion1_decode_frame(), truemotion1_decode_header(), truemotion2rt_decode_frame(), truemotion2rt_decode_header(), truespeech_decode_frame(), tscc2_decode_frame(), tta_decode_frame(), tta_probe(), txd_decode_frame(), ulti_convert_yuv(), ulti_decode_frame(), ulti_grad(), ulti_pattern(), unescape(), uninit_options(), unpack(), unpack_parse_unit(), update_frame_pool(), update_md5_sum(), update_size(), update_stream_extradata(), upsample_plane_c(), usePal(), utvideo_encode_frame(), uyvyToYuv420Wrapper(), uyvyToYuv422Wrapper(), v410_decode_frame(), v410_encode_frame(), v_block_filter(), vaapi_encode_alloc_output_buffer(), vaapi_encode_h264_write_identifier(), vaapi_map_frame(), vaapi_pool_alloc(), vaapi_vc1_start_frame(), vb_decode_framedata(), vble_decode_frame(), vble_read_reverse_unary(), vble_restore_plane(), vc1_apply_p_h_loop_filter(), vc1_apply_p_v_loop_filter(), vc1_decode_frame(), vc1_decode_i_block(), vc1_decode_i_block_adv(), vc1_decode_i_blocks(), vc1_decode_i_blocks_adv(), vc1_decode_init(), vc1_pack_bitplanes(), vc1_parse(), vcr1_decode_frame(), vda_h264_end_frame(), vda_retrieve_data(), vdpau_hevc_start_frame(), vdpau_pool_alloc(), verify_md5(), vertical_frame_pack(), very_broken_op(), video_decode_example(), video_encode_example(), vmdaudio_decode_frame(), vmdvideo_decode_frame(), vorbis_decode_frame(), vorbis_decode_init(), vorbis_encode_init(), vorbis_header(), vorbis_packet(), vorbis_parse_audio_packet(), vorbis_parse_init(), vorbis_parse_setup_hdr_codebooks(), vorbis_parse_setup_hdr_residues(), vorbis_residue_decode_internal(), vp3_decode_frame(), vp3_dequant(), vp3_init_thread_copy(), vp56_mc(), vp56_parse_mb_type(), vp5_parse_coeff(), vp5_parse_coeff_models(), vp6_filter_diag2(), vp6_parse_coeff(), vp6_parse_coeff_huffman(), vp6_parse_vector_adjustment(), vp7_decode_mvs(), vp8_decode(), vp8_decode_mb_row_no_filter(), vp8_decode_mvs(), vp8_filter_mb_row(), vp8_header(), vp8_lossy_decode_alpha(), vp8_mc_chroma(), vp8_mc_luma(), vp8_packet(), vp9_decode_packet(), vqf_read_header(), vu9_to_vu12(), vu9_to_vu12_c(), wait_frame(), wavpack_decode_block(), wavpack_decode_frame(), wc3_read_header(), wc3_read_packet(), wma_decode_init(), wma_decode_superframe(), wmavoice_init_static_data(), wmv2_decode_inter_block(), wmv2_mspel8_h_lowpass(), wmv2_mspel8_v_lowpass(), wrapped_avframe_encode(), write_back_motion(), write_back_motion_list(), write_back_non_zero_count(), write_chapter(), write_codebooks(), write_element(), write_escape_str(), write_extradata(), write_frame(), write_globalinfo(), write_header(), write_mb_info(), write_option(), write_packet(), write_quant_table(), write_status(), write_streaminfo(), write_utf8(), ws_snd_decode_frame(), wtvfile_open2(), wtvfile_open_sector(), X264_frame(), X264_init(), x8_decode_intra_mb(), x8_get_ac_rlf(), x8_setup_spatial_compensation(), x8_setup_spatial_predictor(), xan_decode_chroma(), xan_decode_frame(), xan_decode_frame_type0(), xan_decode_frame_type1(), xan_unpack(), xan_unpack_luma(), xan_wc3_decode_frame(), XAVS_frame(), XAVS_init(), xbm_decode_frame(), xbm_encode_frame(), xcbgrab_frame(), xchg_mb_border(), xiph_parse_fmtp_pair(), xmv_process_packet_header(), xsub_encode(), xvid_encode_frame(), xwd_decode_frame(), xwd_encode_frame(), yop_copy_previous_block(), yuv2mono_1_c_template(), yuv2mono_2_c_template(), yuv2mono_X_c_template(), yuv2nv12cX_c(), yuv2rgb_write(), yuv2yuyv422_1(), yuv420_bgr32(), yuv420_rgb32(), yuv422pToUyvyWrapper(), yuv422pToYuy2Wrapper(), yuv4_write_packet(), yuv_a_to_rgba(), yuv_to_rgba(), yuvPlanartouyvy_c(), yuvPlanartoyuy2_c(), yuy2toyv12(), yuyvToYuv420Wrapper(), yuyvToYuv422Wrapper(), yvu9_to_yuy2(), yvu9_to_yuy2_c(), ZERO8x2(), zerocodec_decode_frame(), zmbv_decode_intra(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), and zmbv_decode_xor_8().

◆ dc

uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0f / (1 << 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0 / (1 << 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t, (*(const int16_t *)pi >> 8) + 0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *)pi * (1.0f / (1 << 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *)pi * (1.0 / (1 << 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t, (*(const int32_t *)pi >> 24) + 0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *)pi * (1.0f / (1U << 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *)pi * (1.0 / (1U << 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8( lrintf(*(const float *)pi * (1 << 7)) + 0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16( lrintf(*(const float *)pi * (1 << 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *)pi * (1U << 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8( lrint(*(const double *)pi * (1 << 7)) + 0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16( lrint(*(const double *)pi * (1 << 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *)pi * (1U << 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if (!*ac) return; ff_dither_free(&(*ac)->dc); av_freep(ac); } AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac; int in_planar, out_planar; ac = av_mallocz(sizeof(*ac)); if (!ac) return NULL; ac->avr = avr; ac->out_fmt = out_fmt; ac->in_fmt = in_fmt; ac->channels = channels; ac->apply_map = apply_map; if (avr->dither_method != AV_RESAMPLE_DITHER_NONE && av_get_packed_sample_fmt(out_fmt) == AV_SAMPLE_FMT_S16 && av_get_bytes_per_sample(in_fmt) > 2) { ac->dc = ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map); if (!ac->dc) { av_free(ac); return NULL; } return ac; } in_planar = ff_sample_fmt_is_planar(in_fmt, channels); out_planar = ff_sample_fmt_is_planar(out_fmt, channels); if (in_planar == out_planar) { ac->func_type = CONV_FUNC_TYPE_FLAT; ac->planes = in_planar ? ac->channels : 1; } else if (in_planar) ac->func_type = CONV_FUNC_TYPE_INTERLEAVE; else ac->func_type = CONV_FUNC_TYPE_DEINTERLEAVE; set_generic_function(ac); if (ARCH_AARCH64) ff_audio_convert_init_aarch64(ac); if (ARCH_ARM) ff_audio_convert_init_arm(ac); if (ARCH_X86) ff_audio_convert_init_x86(ac); return ac; } int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic = 1; int len = in->nb_samples; int p; if (ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt)); return ff_convert_dither(ac-> dc

◆ out

uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0f / (1 << 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0 / (1 << 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t, (*(const int16_t *)pi >> 8) + 0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *)pi * (1.0f / (1 << 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *)pi * (1.0 / (1 << 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t, (*(const int32_t *)pi >> 24) + 0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *)pi * (1.0f / (1U << 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *)pi * (1.0 / (1U << 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8( lrintf(*(const float *)pi * (1 << 7)) + 0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16( lrintf(*(const float *)pi * (1 << 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *)pi * (1U << 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8( lrint(*(const double *)pi * (1 << 7)) + 0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16( lrint(*(const double *)pi * (1 << 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *)pi * (1U << 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if (!*ac) return; ff_dither_free(&(*ac)->dc); av_freep(ac); } AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac; int in_planar, out_planar; ac = av_mallocz(sizeof(*ac)); if (!ac) return NULL; ac->avr = avr; ac->out_fmt = out_fmt; ac->in_fmt = in_fmt; ac->channels = channels; ac->apply_map = apply_map; if (avr->dither_method != AV_RESAMPLE_DITHER_NONE && av_get_packed_sample_fmt(out_fmt) == AV_SAMPLE_FMT_S16 && av_get_bytes_per_sample(in_fmt) > 2) { ac->dc = ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map); if (!ac->dc) { av_free(ac); return NULL; } return ac; } in_planar = ff_sample_fmt_is_planar(in_fmt, channels); out_planar = ff_sample_fmt_is_planar(out_fmt, channels); if (in_planar == out_planar) { ac->func_type = CONV_FUNC_TYPE_FLAT; ac->planes = in_planar ? ac->channels : 1; } else if (in_planar) ac->func_type = CONV_FUNC_TYPE_INTERLEAVE; else ac->func_type = CONV_FUNC_TYPE_DEINTERLEAVE; set_generic_function(ac); if (ARCH_AARCH64) ff_audio_convert_init_aarch64(ac); if (ARCH_ARM) ff_audio_convert_init_arm(ac); if (ARCH_X86) ff_audio_convert_init_x86(ac); return ac; } int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic = 1; int len = in->nb_samples; int p; if (ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt)); return ff_convert_dither(ac-> out

Definition at line 194 of file audio_convert.c.

◆ in

uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0f / (1 << 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0 / (1 << 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t, (*(const int16_t *)pi >> 8) + 0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *)pi * (1.0f / (1 << 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t, *(const int16_t *)pi * (1.0 / (1 << 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t, (*(const int32_t *)pi >> 24) + 0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *)pi * (1.0f / (1U << 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t, *(const int32_t *)pi * (1.0 / (1U << 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8( lrintf(*(const float *)pi * (1 << 7)) + 0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16( lrintf(*(const float *)pi * (1 << 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *)pi * (1U << 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8( lrint(*(const double *)pi * (1 << 7)) + 0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16( lrint(*(const double *)pi * (1 << 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *)pi * (1U << 31)))) #define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac) { } void ff_audio_convert_free(AudioConvert **ac) { if (!*ac) return; ff_dither_free(&(*ac)->dc); av_freep(ac); } AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) { AudioConvert *ac; int in_planar, out_planar; ac = av_mallocz(sizeof(*ac)); if (!ac) return NULL; ac->avr = avr; ac->out_fmt = out_fmt; ac->in_fmt = in_fmt; ac->channels = channels; ac->apply_map = apply_map; if (avr->dither_method != AV_RESAMPLE_DITHER_NONE && av_get_packed_sample_fmt(out_fmt) == AV_SAMPLE_FMT_S16 && av_get_bytes_per_sample(in_fmt) > 2) { ac->dc = ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map); if (!ac->dc) { av_free(ac); return NULL; } return ac; } in_planar = ff_sample_fmt_is_planar(in_fmt, channels); out_planar = ff_sample_fmt_is_planar(out_fmt, channels); if (in_planar == out_planar) { ac->func_type = CONV_FUNC_TYPE_FLAT; ac->planes = in_planar ? ac->channels : 1; } else if (in_planar) ac->func_type = CONV_FUNC_TYPE_INTERLEAVE; else ac->func_type = CONV_FUNC_TYPE_DEINTERLEAVE; set_generic_function(ac); if (ARCH_AARCH64) ff_audio_convert_init_aarch64(ac); if (ARCH_ARM) ff_audio_convert_init_arm(ac); if (ARCH_X86) ff_audio_convert_init_x86(ac); return ac; } int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in) { int use_generic = 1; int len = in->nb_samples; int p; if (ac->dc) { av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (dithered)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt)); return ff_convert_dither(ac-> in

Definition at line 194 of file audio_convert.c.

Referenced by aac_adtstoasc_filter(), cdg_scroll(), checkasm_check_fmtconvert(), checkasm_check_synth_filter(), chomp_filter(), compand_delay(), configure_video_device(), copy_moof(), create_device(), dca_subframe_footer(), des_encdec(), dump_extradata(), epic_jb_decode_tile(), ff_bsf_get_packet(), ff_els_decoder_init(), ff_ivi_inverse_haar_4x4(), ff_ivi_inverse_haar_8x8(), ff_ivi_inverse_slant_4x4(), ff_ivi_inverse_slant_8x8(), ff_rtsp_open_transport_ctx(), fft_ref(), filter_frame(), filter_value(), flac_decorrelate_indep_c(), flac_decorrelate_ls_c(), flac_decorrelate_ms_c(), flac_decorrelate_rs_c(), g723_1_encode_frame(), h264_mp4toannexb_filter(), hevc_mp4toannexb_filter(), hybrid2_re(), hybrid4_8_12_cx(), hybrid6_cx(), iir_filter(), imdct_and_windowing(), imdct_and_windowing_eld(), imdct_and_windowing_ld(), imx_dump_header(), list_capture_devices_by_type(), list_formats(), main(), mjpeg2jpeg_filter(), mjpega_dump_header(), mov2textsub(), noise(), nppscale_scale(), on2avc_reconstruct_channel(), on2avc_reconstruct_stereo(), output_buffer(), parse_fragment(), parse_playlist(), piz_uncompress(), print_supported_formats(), process_frame(), ps_hybrid_analysis_c(), ps_hybrid_synthesis_deint_c(), pxr24_uncompress(), qdm2_decode(), qsv_transfer_data_from(), qsv_transfer_data_to(), read_tree(), remove_extradata(), roq_dpcm_encode_frame(), sbr_make_f_tablelim(), setup_default_stream(), setup_stream(), srt_to_ass(), text2movsub(), ttafilter_process(), wav_decode(), WINDOW_FUNC(), wma_window(), and xan_wc3_decode_frame().

◆ else

else

Definition at line 382 of file audio_convert.c.

◆ return

return

Definition at line 415 of file audio_convert.c.