src/quantizer.c File Reference

#include <stdarg.h>
#include <it/types.h>
#include <it/vec.h>
#include <it/math.h>
#include <it/quantizer.h>
#include <it/io.h>

Go to the source code of this file.

Defines

#define gray_to_bin(x)   ((x) ^ (x >> 1))

Functions

static void scalar_quantizer_destructor (it_object_t *it_this)
static vec scalar_quantizer_get_codebook_range (it_scalar_quantizer_t *q, int start, int end)
static void scalar_quantizer_get_index_range (it_scalar_quantizer_t *q, int *_imin, int *_imax)
static void scalar_quantizer_set_index_range (it_scalar_quantizer_t *q, int _imin, int _imax)
static int scalar_quantizer_scalar_quantize (it_scalar_quantizer_t *q, double v)
static double scalar_quantizer_scalar_dequantize (it_scalar_quantizer_t *it_this, int q)
static void scalar_quantizer_set_codebook (it_scalar_quantizer_t *it_this, vec codebook, int first)
static ivec scalar_quantizer_quantize (it_quantizer_t *it_this, vec v)
static vec scalar_quantizer_dequantize (it_quantizer_t *it_this, ivec q)
static unsigned int scalar_quantizer_get_cardinal (it_quantizer_t *it_this)
static int uniform_quantizer_scalar_quantize (it_scalar_quantizer_t *it_this, double v)
static double uniform_quantizer_scalar_dequantize (it_scalar_quantizer_t *it_this, int q)
static vec uniform_quantizer_get_codebook_range (it_scalar_quantizer_t *it_this, int s, int e)
static void uniform_quantizer_set_index_range (it_scalar_quantizer_t *q, int _imin, int _imax)
static void uniform_quantizer_set_codebook (it_scalar_quantizer_t *it_this, vec codebook, int first)
static void trellis_coded_quantizer_destructor (it_object_t *it_this)
static ivec trellis_coded_quantizer_quantize (it_quantizer_t *it_this, vec v)
static vec trellis_coded_quantizer_dequantize (it_quantizer_t *it_this, ivec q)
static unsigned int trellis_coded_quantizer_get_cardinal (it_quantizer_t *it_this)
 it_instanciate (it_scalar_quantizer_t)
 it_instanciate (it_uniform_quantizer_t)
 it_instanciate (it_trellis_coded_quantizer_t)
 it_function_args (lloyd_max_distortion)
 it_function (lloyd_max_distortion)
vec lloyd_max (it_function_t function, it_args_t args, double a, double b, int N)
imat __it_quantize_mat (it_quantizer_t *q, mat m)
mat __it_dequantize_mat (it_quantizer_t *q, imat m)


Define Documentation

#define gray_to_bin (  )     ((x) ^ (x >> 1))

Definition at line 384 of file quantizer.c.

Referenced by it_instanciate().


Function Documentation

it_function ( lloyd_max_distortion   ) 

Definition at line 561 of file quantizer.c.

it_function_args ( lloyd_max_distortion   ) 

Definition at line 554 of file quantizer.c.

static vec scalar_quantizer_dequantize ( it_quantizer_t it_this,
ivec  q 
) [static]

static void scalar_quantizer_destructor ( it_object_t it_this  )  [static]

static unsigned int scalar_quantizer_get_cardinal ( it_quantizer_t it_this  )  [static]

Definition at line 251 of file quantizer.c.

References IT_SCALAR_QUANTIZER.

Referenced by it_instanciate().

static vec scalar_quantizer_get_codebook_range ( it_scalar_quantizer_t q,
int  start,
int  end 
) [static]

static void scalar_quantizer_get_index_range ( it_scalar_quantizer_t q,
int *  _imin,
int *  _imax 
) [static]

Definition at line 134 of file quantizer.c.

References _scalar_quantizer_::imax, and _scalar_quantizer_::imin.

Referenced by it_instanciate().

static ivec scalar_quantizer_quantize ( it_quantizer_t it_this,
vec  v 
) [static]

static double scalar_quantizer_scalar_dequantize ( it_scalar_quantizer_t it_this,
int  q 
) [static]

Definition at line 197 of file quantizer.c.

References _scalar_quantizer_::codebook, and _scalar_quantizer_::first.

Referenced by it_instanciate().

static int scalar_quantizer_scalar_quantize ( it_scalar_quantizer_t q,
double  v 
) [static]

static void scalar_quantizer_set_codebook ( it_scalar_quantizer_t it_this,
vec  codebook,
int  first 
) [static]

static void scalar_quantizer_set_index_range ( it_scalar_quantizer_t q,
int  _imin,
int  _imax 
) [static]

static vec trellis_coded_quantizer_dequantize ( it_quantizer_t it_this,
ivec  q 
) [static]

static void trellis_coded_quantizer_destructor ( it_object_t it_this  )  [static]

static unsigned int trellis_coded_quantizer_get_cardinal ( it_quantizer_t it_this  )  [static]

static vec uniform_quantizer_get_codebook_range ( it_scalar_quantizer_t it_this,
int  s,
int  e 
) [static]

static double uniform_quantizer_scalar_dequantize ( it_scalar_quantizer_t it_this,
int  q 
) [static]

static int uniform_quantizer_scalar_quantize ( it_scalar_quantizer_t it_this,
double  v 
) [static]

static void uniform_quantizer_set_codebook ( it_scalar_quantizer_t it_this,
vec  codebook,
int  first 
) [static]

Definition at line 374 of file quantizer.c.

Referenced by it_instanciate().

static void uniform_quantizer_set_index_range ( it_scalar_quantizer_t q,
int  _imin,
int  _imax 
) [static]


Hosted by
Copyright (C) 2005-2006 Hervé Jégou
Vivien Chappelier
Francois Cayre
libit logo courtesy of Jonathan Delhumeau