GNU Radio's M17 Package
quantise.h
Go to the documentation of this file.
1#ifndef CODEC2_MOD_QUANTISE_H
2#define CODEC2_MOD_QUANTISE_H
3
4#include <stdint.h>
5
6void pack(uint8_t *bitArray, unsigned int *bitIndex,
7 unsigned int field, unsigned int fieldWidth);
8
9int unpack(const uint8_t *bitArray, unsigned int *bitIndex,
10 unsigned int fieldWidth);
11
12int encode_Wo(float Wo, uint8_t bits);
13float decode_Wo(int index, int bits);
14int encode_energy(float e, int bits);
15float decode_energy(int index, int bits);
16void encode_lspds_scalar(int *indexes, const float *lsp);
17void decode_lspds_scalar(float *lsp_, const int *indexes);
18
19#endif /* CODEC2_MOD_QUANTISE_H */
int unpack(const uint8_t *bitArray, unsigned int *bitIndex, unsigned int fieldWidth)
void pack(uint8_t *bitArray, unsigned int *bitIndex, unsigned int field, unsigned int fieldWidth)
void decode_lspds_scalar(float *lsp_, const int *indexes)
float decode_energy(int index, int bits)
int encode_energy(float e, int bits)
void encode_lspds_scalar(int *indexes, const float *lsp)
int encode_Wo(float Wo, uint8_t bits)
float decode_Wo(int index, int bits)