2017-06-11 11:12:12 +02:00
|
|
|
#ifndef PDMP3_H
|
|
|
|
#define PDMP3_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
2017-06-12 16:32:56 +02:00
|
|
|
#include <stdint.h>
|
2017-06-11 11:12:12 +02:00
|
|
|
|
|
|
|
//#define DEBUG
|
|
|
|
#define IMDCT_TABLES
|
|
|
|
#define IMDCT_NTABLES
|
|
|
|
#define POW34_ITERATE
|
|
|
|
#define POW34_TABLE
|
|
|
|
#define OUTPUT_RAW
|
|
|
|
|
|
|
|
#define OK 0
|
|
|
|
#define ERROR -1
|
|
|
|
|
|
|
|
unsigned Get_Byte(void);
|
|
|
|
unsigned Get_Bytes(unsigned num, unsigned* data_vec);
|
|
|
|
unsigned Get_Filepos(void);
|
|
|
|
int Decode_L3(void);
|
|
|
|
int Read_Frame(void);
|
|
|
|
size_t writeToWriter(void* data, int size);
|
|
|
|
|
2017-06-12 16:32:56 +02:00
|
|
|
unsigned Get_Main_Bit(void);
|
|
|
|
unsigned Get_Main_Bits(unsigned number_of_bits);
|
2017-06-12 19:49:15 +02:00
|
|
|
void Get_Sideinfo(unsigned sideinfo_size);
|
|
|
|
unsigned Get_Side_Bits(unsigned number_of_bits);
|
2017-06-12 16:32:56 +02:00
|
|
|
|
|
|
|
int Huffman_Decode(unsigned table_num, int32_t* x, int32_t*y, int32_t* v, int32_t* w);
|
|
|
|
|
2017-06-11 11:12:12 +02:00
|
|
|
#endif
|