FFmpeg
Macros | Functions
dither.c File Reference
#include "libavutil/avassert.h"
#include "swresample_internal.h"
#include "noise_shaping_data.c"
#include "dither_template.c"

Go to the source code of this file.

Macros

#define TMP_EXTRA   2
 
#define TEMPLATE_DITHER_S16
 
#define TEMPLATE_DITHER_S32
 
#define TEMPLATE_DITHER_FLT
 
#define TEMPLATE_DITHER_DBL
 

Functions

int swri_get_dither (SwrContext *s, void *dst, int len, unsigned seed, enum AVSampleFormat noise_fmt)
 
av_cold int swri_dither_init (SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt)
 

Macro Definition Documentation

◆ TMP_EXTRA

#define TMP_EXTRA   2

◆ TEMPLATE_DITHER_S16

#define TEMPLATE_DITHER_S16

Definition at line 134 of file dither.c.

◆ TEMPLATE_DITHER_S32

#define TEMPLATE_DITHER_S32

Definition at line 138 of file dither.c.

◆ TEMPLATE_DITHER_FLT

#define TEMPLATE_DITHER_FLT

Definition at line 142 of file dither.c.

◆ TEMPLATE_DITHER_DBL

#define TEMPLATE_DITHER_DBL

Definition at line 146 of file dither.c.

Function Documentation

◆ swri_get_dither()

int swri_get_dither ( SwrContext s,
void *  dst,
int  len,
unsigned  seed,
enum AVSampleFormat  noise_fmt 
)

Definition at line 26 of file dither.c.

Referenced by swr_convert_internal().

◆ swri_dither_init()

av_cold int swri_dither_init ( SwrContext s,
enum AVSampleFormat  out_fmt,
enum AVSampleFormat  in_fmt 
)

Definition at line 79 of file dither.c.

Referenced by swr_init().