FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#define TMP_EXTRA   2

Referenced by swri_get_dither().

#define TEMPLATE_DITHER_S16

Definition at line 134 of file dither.c.

#define TEMPLATE_DITHER_S32

Definition at line 138 of file dither.c.

#define TEMPLATE_DITHER_FLT

Definition at line 142 of file dither.c.

#define TEMPLATE_DITHER_DBL

Definition at line 146 of file dither.c.

Function Documentation

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().

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().