quantizerf
Variants: quantizercf, quantizerf
Amplitude quantization object
Public Functions
quantizerf | quantizerf_create( |
int | quantizerf_destroy( |
int | quantizerf_print( |
int | quantizerf_execute_adc( |
int | quantizerf_execute_dac( |
Interfaces
quantizerf quantizerf_create(
Create quantizer object given compander type, input range, and the number of bits to represent the output
- _ctype : compander type (linear, mulaw, alaw)
- _range : maximum abosolute input range (ignored for now)
- _num_bits : number of bits per sample
int quantizerf_destroy(
Destroy object, freeing all internally-allocated memory.
int quantizerf_print(
Print object properties to stdout, including compander type and number of bits per sample
int quantizerf_execute_adc(
Execute quantizer as analog-to-digital converter, accepting input sample and returning digitized output bits
- _q : quantizer object
- _x : input sample
- _s : output bits
int quantizerf_execute_dac(
Execute quantizer as digital-to-analog converter, accepting input bits and returning representation of original input sample
- _q : quantizer object
- _s : input bits
- _x : output sample