26#define MIN_WORDS_OVERLAP 64
27#define MIN_WORDS_SEARCH 64
28#define MIN_WORDS_RIFT 16
29#define MAX_SECTOR_OVERLAP 32
30#define MIN_SECTOR_EPSILON 128
31#define MIN_SECTOR_BACKUP 16
32#define JIGGLE_MODULO 15
33#define MIN_SILENCE_BOUNDARY 1024
34#define CACHEMODEL_SECTORS 1200
36#define min(x,y) ((x)>(y)?(y):(x))
37#define max(x,y) ((x)<(y)?(y):(x))
47 void (*free_poly)(
void *poly);
118 long int begin,
long int end,
192#define ce(v) (v->begin+v->size)
193#define cb(v) (v->begin)
194#define cs(v) (v->size)
201#define cv(c) (c->vector)
203#define fe(f) (f->begin+f->size)
204#define fb(f) (f->begin)
205#define fs(f) (f->size)
206#define fv(f) (v_buffer(f))
208#ifndef DO_NOT_WANT_PARANOIA_COMPATIBILITY
210#define linked_list linked_list_t
The top-level interface header for libcdio_cdda. Applications include this for paranoia access.
void i_paranoia_firstlast(cdrom_paranoia_t *p)
Definition: p_block.c:375
void free_c_block(c_block_t *c)
Definition: p_block.c:134
void c_remove(c_block_t *v, long cutpos, long cutsize)
Definition: p_block.c:313
void free_v_fragment(v_fragment_t *c)
Definition: p_block.c:187
v_fragment_t * v_last(cdrom_paranoia_t *p)
Definition: p_block.c:234
void i_cblock_destructor(c_block_t *c)
Definition: p_block.c:114
void c_set(c_block_t *v, long begin)
Definition: p_block.c:288
void recover_cache(cdrom_paranoia_t *p)
Definition: p_block.c:258
c_block_t * c_next(c_block_t *c)
Definition: p_block.c:209
void c_append(c_block_t *v, int16_t *vector, long size)
Definition: p_block.c:339
struct v_fragment_s v_fragment_t
linked_list_t * copy_list(linked_list_t *p_list)
Definition: p_block.c:92
struct root_block root_block
v_fragment_t * v_first(cdrom_paranoia_t *p)
Definition: p_block.c:225
v_fragment_t * v_prev(v_fragment_t *v)
Definition: p_block.c:250
c_block_t * c_prev(c_block_t *c)
Definition: p_block.c:217
void free_list(linked_list_t *list, int free_ptr)
Definition: p_block.c:80
linked_element * new_elem(linked_list_t *list)
Definition: p_block.c:53
c_block_t * c_first(cdrom_paranoia_t *p)
Definition: p_block.c:193
void free_elem(linked_element *e, int free_ptr)
Definition: p_block.c:60
void c_removef(c_block_t *v, long cut)
Definition: p_block.c:355
void c_overwrite(c_block_t *v, long pos, int16_t *b, long size)
Definition: p_block.c:328
void * get_elem(linked_element *e)
Definition: p_block.c:87
c_block_t * c_last(cdrom_paranoia_t *p)
Definition: p_block.c:201
v_fragment_t * v_next(v_fragment_t *v)
Definition: p_block.c:242
void c_insert(c_block_t *v, long pos, int16_t *b, long size)
Definition: p_block.c:294
int16_t * v_buffer(v_fragment_t *v)
Definition: p_block.c:270
linked_list_t * new_list(void *(*new_fn)(void), void(*free)(void *))
Definition: p_block.c:24
linked_element * add_elem(linked_list_t *list, void *elem)
Definition: p_block.c:32
v_fragment_t * new_v_fragment(cdrom_paranoia_t *p, c_block_t *one, long int begin, long int end, int lastsector)
Definition: p_block.c:162
c_block_t * new_c_block(cdrom_paranoia_t *p)
Definition: p_block.c:125
struct linked_element linked_element
c_block_t * c_alloc(int16_t *vector, long begin, long size)
Definition: p_block.c:279
The top-level header for libcdda_paranoia: a device- and OS- independent library for reading CD-DA wi...
paranoia_cb_mode_t
Definition: paranoia.h:70
struct linked_element * e
Definition: p_block.h:92
cdrom_paranoia_t * p
Definition: p_block.h:91
unsigned char * flags
Definition: p_block.h:79
long lastsector
Definition: p_block.h:90
long begin
Definition: p_block.h:75
long size
Definition: p_block.h:76
int16_t * vector
Definition: p_block.h:74
Structure for cdparanoia's CD-ROM access.
Definition: cdda.h:80
Definition: p_block.h:153
long dyndrift
Definition: p_block.h:178
struct offsets stage1
Definition: p_block.h:174
int cdcache_size
Definition: p_block.h:163
long int current_firstsector
Definition: p_block.h:171
long dynoverlap
Definition: p_block.h:177
long int cursor
Definition: p_block.h:169
linked_list_t * fragments
Definition: p_block.h:159
sort_info_t * sortcache
Definition: p_block.h:160
cdrom_drive_t * d
Definition: p_block.h:154
long int current_lastsector
Definition: p_block.h:170
int cdcache_end
Definition: p_block.h:165
int cdcache_begin
Definition: p_block.h:164
long int cache_limit
Definition: p_block.h:158
int jitter
Definition: p_block.h:166
paranoia_cb_mode_t enable
Definition: p_block.h:168
struct offsets stage2
Definition: p_block.h:175
root_block root
Definition: p_block.h:156
linked_list_t * cache
Definition: p_block.h:157
struct linked_element * next
Definition: p_block.h:56
struct linked_element * prev
Definition: p_block.h:55
int stamp
Definition: p_block.h:59
linked_list_t * list
Definition: p_block.h:58
void * ptr
Definition: p_block.h:54
struct linked_element * tail
Definition: p_block.h:44
struct linked_element * head
Definition: p_block.h:43
long active
Definition: p_block.h:49
long current
Definition: p_block.h:48
Definition: p_block.h:142
long offpoints
Definition: p_block.h:144
long offmax
Definition: p_block.h:149
long offaccum
Definition: p_block.h:146
long offmin
Definition: p_block.h:148
long newpoints
Definition: p_block.h:145
long offdiff
Definition: p_block.h:147
Definition: p_block.h:132
long silencebegin
Definition: p_block.h:139
long lastsector
Definition: p_block.h:134
cdrom_paranoia_t * p
Definition: p_block.h:135
c_block_t * vector
Definition: p_block.h:137
long returnedlimit
Definition: p_block.h:133
int silenceflag
Definition: p_block.h:138
Definition: p_block.h:100
long begin
Definition: p_block.h:103
int16_t * vector
Definition: p_block.h:105
struct linked_element * e
Definition: p_block.h:112
c_block_t * one
Definition: p_block.h:101
long size
Definition: p_block.h:104
cdrom_paranoia_t * p
Definition: p_block.h:111
long lastsector
Definition: p_block.h:108