Home | History | Annotate | Download | only in libFLAC

Lines Matching refs:seek_table

242 FLAC_API FLAC__bool FLAC__format_seektable_is_legal(const FLAC__StreamMetadata_SeekTable *seek_table)
248 FLAC__ASSERT(0 != seek_table);
250 for(i = 0; i < seek_table->num_points; i++) {
253 seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER &&
254 seek_table->points[i].sample_number <= prev_sample_number
258 prev_sample_number = seek_table->points[i].sample_number;
278 FLAC_API unsigned FLAC__format_seektable_sort(FLAC__StreamMetadata_SeekTable *seek_table)
283 FLAC__ASSERT(0 != seek_table);
286 qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)(const void *, const void *))seekpoint_compare_);
290 for(i = j = 0; i < seek_table->num_points; i++) {
291 if(seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER) {
293 if(seek_table->points[i].sample_number == seek_table->points[j-1].sample_number)
298 seek_table->points[j++] = seek_table->points[i];
301 for(i = j; i < seek_table->num_points; i++) {
302 seek_table->points[i].sample_number = FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER;
303 seek_table->points[i].stream_offset = 0;
304 seek_table->points[i].frame_samples = 0;