59 #ifndef CDIO_SECTOR_H_ 60 #define CDIO_SECTOR_H_ 91 #define CDIO_PREGAP_SECTORS 150 92 #define CDIO_POSTGAP_SECTORS 150 134 #define CDIO_CD_MINS 74 136 #define CDIO_CD_SECS_PER_MIN 60 137 #define CDIO_CD_FRAMES_PER_SEC 75 138 #define CDIO_CD_SYNC_SIZE 12 139 #define CDIO_CD_CHUNK_SIZE 24 140 #define CDIO_CD_NUM_OF_CHUNKS 98 141 #define CDIO_CD_FRAMESIZE_SUB 96 142 #define CDIO_CD_HEADER_SIZE 4 144 #define CDIO_CD_SUBHEADER_SIZE 8 146 #define CDIO_CD_EDC_SIZE 4 148 #define CDIO_CD_M1F1_ZERO_SIZE 8 150 #define CDIO_CD_ECC_SIZE 276 152 #define CDIO_CD_FRAMESIZE 2048 153 #define CDIO_CD_FRAMESIZE_RAW 2352 154 #define CDIO_CD_FRAMESIZE_RAWER 2646 156 #define CDIO_CD_FRAMESIZE_RAW1 (CDIO_CD_FRAMESIZE_RAW-CDIO_CD_SYNC_SIZE) 157 #define CDIO_CD_FRAMESIZE_RAW0 (CDIO_CD_FRAMESIZE_RAW-CDIO_CD_SYNC_SIZE-CDIO_CD_HEADER_SIZE) 160 #define CDIO_CD_XA_HEADER (CDIO_CD_HEADER_SIZE+CDIO_CD_SUBHEADER_SIZE) 163 #define CDIO_CD_XA_TAIL (CDIO_CD_EDC_SIZE+CDIO_CD_ECC_SIZE) 166 #define CDIO_CD_XA_SYNC_HEADER (CDIO_CD_SYNC_SIZE+CDIO_CD_XA_HEADER) 186 #define M2F2_SECTOR_SIZE 2324 187 #define M2SUB_SECTOR_SIZE 2332 188 #define M2RAW_SECTOR_SIZE 2336 191 #define CDIO_CD_MAX_SESSIONS 99 193 #define CDIO_CD_MIN_SESSION_NO 1 196 #define CDIO_CD_MAX_LSN 450150 198 #define CDIO_CD_MIN_LSN -450150 201 #define CDIO_CD_FRAMES_PER_MIN \ 202 (CDIO_CD_FRAMES_PER_SEC*CDIO_CD_SECS_PER_MIN) 213 #define msf_t_SIZEOF 3 264 unsigned int frames);
276 #ifndef DO_NOT_WANT_PARANOIA_COMPATIBILITY 278 #define CD_FRAMESIZE_RAW CDIO_CD_FRAMESIZE_RAW #define CDIO_CD_MIN_SESSION_NO
Definition: sector.h:200
Common type definitions used pervasively in libcdio.
#define M2SUB_SECTOR_SIZE
Definition: sector.h:194
#define CDIO_CD_FRAMESIZE_RAW
Definition: sector.h:159
#define CDIO_CD_CHUNK_SIZE
Definition: sector.h:140
lba_t cdio_msf_to_lba(const msf_t *p_msf)
#define CDIO_CD_SUBHEADER_SIZE
Definition: sector.h:146
int32_t lsn_t
Definition: types.h:266
void cdio_lsn_to_msf(lsn_t i_lsn, msf_t *p_msf)
#define CDIO_CD_MAX_SESSIONS
Definition: sector.h:198
#define CDIO_CD_NUM_OF_CHUNKS
Definition: sector.h:141
lba_t cdio_lsn_to_lba(lsn_t i_lsn)
cdio_cd_enums
Definition: sector.h:99
typedefPRAGMA_END_PACKED struct msf_s msf_t
Definition: types.h:224
lba_t cdio_mmssff_to_lba(const char *psz_mmssff)
int32_t lba_t
Definition: types.h:259
#define CDIO_CD_FRAMESIZE_RAWER
Definition: sector.h:160
#define CDIO_CD_FRAMESIZE_RAW0
Definition: sector.h:164
cdio_subchannel
Definition: sector.h:71
cdio_cd_minutes_sectors
Definition: sector.h:211
char * cdio_msf_to_str(const msf_t *p_msf)
#define CDIO_CD_FRAMESIZE
Definition: sector.h:158
lba_t cdio_msf3_to_lba(unsigned int minutes, unsigned int seconds, unsigned int frames)
lsn_t cdio_msf_to_lsn(const msf_t *p_msf)
#define CDIO_CD_FRAMESIZE_SUB
Definition: sector.h:142
#define CDIO_CD_FRAMES_PER_SEC
Definition: sector.h:138
m2_sector_enums
Definition: sector.h:187
#define CDIO_CD_FRAMESIZE_RAW1
Definition: sector.h:163
#define CDIO_CD_HEADER_SIZE
Definition: sector.h:143
lba_t cdio_lba_to_lsn(lba_t i_lba)
#define CDIO_CD_ECC_SIZE
Definition: sector.h:155
const uint8_t CDIO_SECTOR_SYNC_HEADER[CDIO_CD_SYNC_SIZE]
#define CDIO_CD_SECS_PER_MIN
Definition: sector.h:137
flag_t
Definition: sector.h:82
#define CDIO_CD_MINS
Definition: sector.h:134
#define CDIO_PREGAP_SECTORS
Definition: sector.h:91
#define CDIO_CD_SYNC_SIZE
Definition: sector.h:139
#define M2F2_SECTOR_SIZE
Definition: sector.h:193
#define UINT32_C(c)
Definition: types.h:82
#define CDIO_CD_MIN_LSN
Definition: sector.h:205
char * cdio_lba_to_msf_str(lba_t i_lba)
#define CDIO_CD_MAX_LSN
Definition: sector.h:203
#define M2RAW_SECTOR_SIZE
Definition: sector.h:195
#define CDIO_CD_FRAMES_PER_MIN
Definition: sector.h:208
void cdio_lba_to_msf(lba_t i_lba, msf_t *p_msf)