libcdio-paranoia 10.2+2.0.2
|
#include <stdio.h>
#include <limits.h>
#include "p_block.h"
#include <cdio/paranoia/cdda.h>
#include <cdio/paranoia/paranoia.h>
linked_element * add_elem | ( | linked_list_t * | l, |
void * | elem | ||
) |
References linked_list_t::active, linked_list_t::current, linked_list_t::head, linked_element::list, linked_element::next, NULL, linked_element::prev, linked_element::ptr, linked_element::stamp, and linked_list_t::tail.
Referenced by copy_list(), and new_elem().
c_block_t * c_alloc | ( | int16_t * | vector, |
long | begin, | ||
long | size | ||
) |
References c_block::begin, c_block::size, and c_block::vector.
void c_append | ( | c_block_t * | v, |
int16_t * | vector, | ||
long | size | ||
) |
References cs, c_block::size, and c_block::vector.
c_block_t * c_first | ( | cdrom_paranoia_t * | p | ) |
void c_insert | ( | c_block_t * | v, |
long | pos, | ||
int16_t * | b, | ||
long | size | ||
) |
References cs, c_block::size, and c_block::vector.
c_block_t * c_last | ( | cdrom_paranoia_t * | p | ) |
References c_block::e, linked_element::next, NULL, and linked_element::ptr.
void c_overwrite | ( | c_block_t * | v, |
long | pos, | ||
int16_t * | b, | ||
long | size | ||
) |
References cs, and c_block::vector.
References c_block::e, NULL, linked_element::prev, and linked_element::ptr.
void c_remove | ( | c_block_t * | v, |
long | cutpos, | ||
long | cutsize | ||
) |
References cs, c_block::size, and c_block::vector.
Referenced by c_removef().
void c_removef | ( | c_block_t * | v, |
long | cut | ||
) |
References c_block::begin, and c_remove().
void c_set | ( | c_block_t * | v, |
long | begin | ||
) |
References c_block::begin.
linked_list_t * copy_list | ( | linked_list_t * | list | ) |
void free_c_block | ( | c_block_t * | c | ) |
References c_block::e, free_elem(), free_v_fragment(), v_fragment_s::one, c_block::p, v_first(), and v_next().
void free_elem | ( | linked_element * | e, |
int | free_ptr | ||
) |
References linked_list_t::active, linked_list_t::free_poly, linked_list_t::head, linked_element::list, linked_element::next, linked_element::prev, linked_element::ptr, and linked_list_t::tail.
Referenced by free_c_block(), free_list(), and free_v_fragment().
void free_list | ( | linked_list_t * | list, |
int | free_ptr | ||
) |
References free_elem(), and linked_list_t::head.
void free_v_fragment | ( | v_fragment_t * | v | ) |
References v_fragment_s::e, and free_elem().
Referenced by free_c_block().
void * get_elem | ( | linked_element * | e | ) |
References linked_element::ptr.
void i_cblock_destructor | ( | c_block_t * | c | ) |
References c_block::e, c_block::flags, NULL, and c_block::vector.
void i_paranoia_firstlast | ( | cdrom_paranoia_t * | p | ) |
Get the beginning and ending sector bounds given cursor position.
There are a couple of subtle differences between this and the cdda_firsttrack_sector and cdda_lasttrack_sector. If the cursor is an a sector later than cdda_firsttrack_sector, that sectur will be used. As for the difference between cdda_lasttrack_sector, if the CD is mixed and there is a data track after the cursor but before the last audio track, the end of the audio sector before that is used.
c_block_t * new_c_block | ( | cdrom_paranoia_t * | p | ) |
linked_element * new_elem | ( | linked_list_t * | p_list | ) |
References add_elem(), and linked_list_t::new_poly.
linked_list_t * new_list | ( | void *(*)(void) | newp, |
void(*)(void *) | freep | ||
) |
References linked_list_t::free_poly, and linked_list_t::new_poly.
Referenced by copy_list().
v_fragment_t * new_v_fragment | ( | cdrom_paranoia_t * | p, |
c_block_t * | one, | ||
long int | begin, | ||
long int | end, | ||
int | last | ||
) |
int paranoia_cachemodel_size | ( | cdrom_paranoia_t * | p, |
int | sectors | ||
) |
cdrom_paranoia_t * paranoia_init | ( | cdrom_drive_t * | d | ) |
void paranoia_set_range | ( | cdrom_paranoia_t * | p, |
long | start, | ||
long | end | ||
) |
void recover_cache | ( | cdrom_paranoia_t * | p | ) |
int16_t * v_buffer | ( | v_fragment_t * | v | ) |
References cv, NULL, v_fragment_s::one, and v_fragment_s::vector.
v_fragment_t * v_first | ( | cdrom_paranoia_t * | p | ) |
Referenced by free_c_block().
v_fragment_t * v_last | ( | cdrom_paranoia_t * | p | ) |
v_fragment_t * v_next | ( | v_fragment_t * | v | ) |
References v_fragment_s::e, linked_element::next, NULL, and linked_element::ptr.
Referenced by free_c_block().
v_fragment_t * v_prev | ( | v_fragment_t * | v | ) |
References v_fragment_s::e, NULL, linked_element::prev, and linked_element::ptr.