ReactOS  0.4.14-dev-323-g6fe6a88
dither.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DITHERSIZE   65536
 

Enumerations

enum  mpg123_noise_type { mpg123_white_noise = 0, mpg123_tpdf_noise, mpg123_highpass_tpdf_noise }
 

Functions

void mpg123_noise (float *table, size_t count, enum mpg123_noise_type noisetype)
 
void dither_table_init (float *dithertable)
 

Macro Definition Documentation

◆ DITHERSIZE

#define DITHERSIZE   65536

Definition at line 12 of file dither.h.

Enumeration Type Documentation

◆ mpg123_noise_type

Enumerator
mpg123_white_noise 
mpg123_tpdf_noise 
mpg123_highpass_tpdf_noise 

Definition at line 13 of file dither.h.

Function Documentation

◆ dither_table_init()

void dither_table_init ( float *  dithertable)

Definition at line 116 of file dither_impl.h.

117 {
118  highpass_tpdf_noise(dithertable, DITHERSIZE);
119 }
static void highpass_tpdf_noise(float *table, size_t count)
Definition: dither_impl.h:65
#define DITHERSIZE
Definition: dither.h:12

◆ mpg123_noise()

void mpg123_noise ( float *  table,
size_t  count,
enum mpg123_noise_type  noisetype 
)

Definition at line 103 of file dither_impl.h.

104 {
105  switch(noisetype)
106  {
107  case mpg123_white_noise: white_noise(table, count); break;
108  case mpg123_tpdf_noise: tpdf_noise(table, count); break;
111  break;
112  }
113 }
GLuint GLuint GLsizei count
Definition: gl.h:1545
static void highpass_tpdf_noise(float *table, size_t count)
Definition: dither_impl.h:65
static void white_noise(float *table, size_t count)
Definition: dither_impl.h:47
static void tpdf_noise(float *table, size_t count)
Definition: dither_impl.h:56