1 #ifndef _RECOVER_RAW_H
2 #define _RECOVER_RAW_H
3 
4 #include <stdint.h>
5 #include <boolean.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #define CD_RAW_SECTOR_SIZE 2352
12 #define CD_RAW_C2_SECTOR_SIZE (2352+294)  /* main channel plus C2 vector */
13 
14 int CheckEDC(const unsigned char *a, bool b);
15 int CheckMSF(unsigned char *a, int b);
16 
17 
18 int ValidateRawSector(unsigned char *frame, bool xaMode);
19 bool Init_LEC_Correct(void);
20 void Kill_LEC_Correct(void);
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif
27