Lines Matching refs:seek_table
234 …AC_API FLAC__bool FLAC__format_seektable_is_legal(const FLAC__StreamMetadata_SeekTable *seek_table) in FLAC__format_seektable_is_legal() argument
240 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_is_legal()
242 for(i = 0; i < seek_table->num_points; i++) { in FLAC__format_seektable_is_legal()
245 seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER && in FLAC__format_seektable_is_legal()
246 seek_table->points[i].sample_number <= prev_sample_number in FLAC__format_seektable_is_legal()
250 prev_sample_number = seek_table->points[i].sample_number; in FLAC__format_seektable_is_legal()
270 FLAC_API unsigned FLAC__format_seektable_sort(FLAC__StreamMetadata_SeekTable *seek_table) in FLAC__format_seektable_sort() argument
275 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_sort()
278 …qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)… in FLAC__format_seektable_sort()
282 for(i = j = 0; i < seek_table->num_points; i++) { in FLAC__format_seektable_sort()
283 if(seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER) { in FLAC__format_seektable_sort()
285 if(seek_table->points[i].sample_number == seek_table->points[j-1].sample_number) in FLAC__format_seektable_sort()
290 seek_table->points[j++] = seek_table->points[i]; in FLAC__format_seektable_sort()
293 for(i = j; i < seek_table->num_points; i++) { in FLAC__format_seektable_sort()
294 seek_table->points[i].sample_number = FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER; in FLAC__format_seektable_sort()
295 seek_table->points[i].stream_offset = 0; in FLAC__format_seektable_sort()
296 seek_table->points[i].frame_samples = 0; in FLAC__format_seektable_sort()