FFmpeg
Macros | Functions
dither.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/mem.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 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().