Lines Matching refs:seek_table

156 	FLAC__StreamMetadata seek_table;  member
658 …if(decoder->private_->has_seek_table && 0 != decoder->private_->seek_table.data.seek_table.points)… in FLAC__stream_decoder_finish()
659 free(decoder->private_->seek_table.data.seek_table.points); in FLAC__stream_decoder_finish()
660 decoder->private_->seek_table.data.seek_table.points = 0; in FLAC__stream_decoder_finish()
990 …if(decoder->private_->has_seek_table && 0 != decoder->private_->seek_table.data.seek_table.points)… in FLAC__stream_decoder_reset()
991 free(decoder->private_->seek_table.data.seek_table.points); in FLAC__stream_decoder_reset()
992 decoder->private_->seek_table.data.seek_table.points = 0; in FLAC__stream_decoder_reset()
1442 …decoder->private_->metadata_callback(decoder, &decoder->private_->seek_table, decoder->private_->c… in read_metadata_()
1662 decoder->private_->seek_table.type = FLAC__METADATA_TYPE_SEEKTABLE; in read_metadata_seektable_()
1663 decoder->private_->seek_table.is_last = is_last; in read_metadata_seektable_()
1664 decoder->private_->seek_table.length = length; in read_metadata_seektable_()
1666 …decoder->private_->seek_table.data.seek_table.num_points = length / FLAC__STREAM_METADATA_SEEKPOIN… in read_metadata_seektable_()
1669seek_table.data.seek_table.points = safe_realloc_mul_2op_(decoder->private_->seek_table.data.seek_… in read_metadata_seektable_()
1673 for(i = 0; i < decoder->private_->seek_table.data.seek_table.num_points; i++) { in read_metadata_seektable_()
1676 decoder->private_->seek_table.data.seek_table.points[i].sample_number = xx; in read_metadata_seektable_()
1680 decoder->private_->seek_table.data.seek_table.points[i].stream_offset = xx; in read_metadata_seektable_()
1684 decoder->private_->seek_table.data.seek_table.points[i].frame_samples = x; in read_metadata_seektable_()
1686 …length -= (decoder->private_->seek_table.data.seek_table.num_points * FLAC__STREAM_METADATA_SEEKPO… in read_metadata_seektable_()
3010 …C__StreamMetadata_SeekTable *seek_table = decoder->private_->has_seek_table? &decoder->private_->s… in seek_to_absolute_sample_() local
3053 if(seek_table) { in seek_to_absolute_sample_()
3060 for(i = (int)seek_table->num_points - 1; i >= 0; i--) { in seek_to_absolute_sample_()
3062 seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER && in seek_to_absolute_sample_()
3063 seek_table->points[i].frame_samples > 0 && /* defense against bad seekpoints */ in seek_to_absolute_sample_()
3064 …(total_samples <= 0 || seek_table->points[i].sample_number < total_samples) && /* defense against … in seek_to_absolute_sample_()
3065 seek_table->points[i].sample_number <= target_sample in seek_to_absolute_sample_()
3070 new_lower_bound = first_frame_offset + seek_table->points[i].stream_offset; in seek_to_absolute_sample_()
3071 new_lower_bound_sample = seek_table->points[i].sample_number; in seek_to_absolute_sample_()
3075 for(i = 0; i < (int)seek_table->num_points; i++) { in seek_to_absolute_sample_()
3077 seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER && in seek_to_absolute_sample_()
3078 seek_table->points[i].frame_samples > 0 && /* defense against bad seekpoints */ in seek_to_absolute_sample_()
3079 …(total_samples <= 0 || seek_table->points[i].sample_number < total_samples) && /* defense against … in seek_to_absolute_sample_()
3080 seek_table->points[i].sample_number > target_sample in seek_to_absolute_sample_()
3084 if(i < (int)seek_table->num_points) { /* i.e. we found a suitable seek point... */ in seek_to_absolute_sample_()
3085 new_upper_bound = first_frame_offset + seek_table->points[i].stream_offset; in seek_to_absolute_sample_()
3086 new_upper_bound_sample = seek_table->points[i].sample_number; in seek_to_absolute_sample_()