FFmpeg
Loading...
Searching...
No Matches
dither.c File Reference

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

Referenced by swri_get_dither().

◆ TEMPLATE_DITHER_S16

#define TEMPLATE_DITHER_S16

Definition at line 135 of file dither.c.

◆ TEMPLATE_DITHER_S32

#define TEMPLATE_DITHER_S32

Definition at line 139 of file dither.c.

◆ TEMPLATE_DITHER_FLT

#define TEMPLATE_DITHER_FLT

Definition at line 143 of file dither.c.

◆ TEMPLATE_DITHER_DBL

#define TEMPLATE_DITHER_DBL

Definition at line 147 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 27 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 80 of file dither.c.

Referenced by swr_init().