quantizercf
Variants: quantizercf, quantizerf
Amplitude quantization object
Public Functions
quantizercf | quantizercf_create( |
int | quantizercf_destroy( |
int | quantizercf_print( |
int | quantizercf_execute_adc( |
int | quantizercf_execute_dac( |
Interfaces
quantizercf quantizercf_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 quantizercf_destroy(
Destroy object, freeing all internally-allocated memory.
int quantizercf_print(
Print object properties to stdout, including compander type and number of bits per sample
int quantizercf_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 quantizercf_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