Lines Matching refs:target_sample
105 …lute_sample_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample);
107 …_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample);
167 FLAC__uint64 target_sample; member
2938 FLAC__uint64 target_sample = decoder->private_->target_sample; in write_audio_frame_to_client_() local
2946 …if(this_frame_sample <= target_sample && target_sample < next_frame_sample) { /* we hit our target… in write_audio_frame_to_client_()
2947 unsigned delta = (unsigned)(target_sample - this_frame_sample); in write_audio_frame_to_client_()
2993 …olute_sample_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample) in seek_to_absolute_sample_() argument
3041 upper_bound_sample = total_samples > 0 ? total_samples : target_sample /*estimate it*/; in seek_to_absolute_sample_()
3063 seek_table->points[i].sample_number <= target_sample in seek_to_absolute_sample_()
3078 seek_table->points[i].sample_number > target_sample in seek_to_absolute_sample_()
3108 decoder->private_->target_sample = target_sample; in seek_to_absolute_sample_()
3116 …pos = (FLAC__int64)lower_bound + (FLAC__int64)((double)(target_sample - lower_bound_sample) / (dou… in seek_to_absolute_sample_()
3120 …pos = (FLAC__int64)lower_bound + (FLAC__int64)(((target_sample - lower_bound_sample) * (upper_boun… in seek_to_absolute_sample_()
3122 …pos = (FLAC__int64)lower_bound + (FLAC__int64)((((target_sample - lower_bound_sample)>>8) * ((uppe… in seek_to_absolute_sample_()
3181 if(target_sample < this_frame_sample) { in seek_to_absolute_sample_()
3204 …e_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample) in seek_to_absolute_sample_ogg_() argument
3233 decoder->private_->target_sample = target_sample; in seek_to_absolute_sample_ogg_()
3235 …if (iteration == 0 || this_frame_sample > target_sample || target_sample - this_frame_sample > LIN… in seek_to_absolute_sample_ogg_()
3241 …pos = (FLAC__uint64)((double)(target_sample - left_sample) / (double)(right_sample - left_sample) … in seek_to_absolute_sample_ogg_()
3244 if ((target_sample-left_sample <= 0xffffffff) && (right_pos-left_pos <= 0xffffffff)) in seek_to_absolute_sample_ogg_()
3245 …pos = (FLAC__int64)(((target_sample-left_sample) * (right_pos-left_pos)) / (right_sample-left_samp… in seek_to_absolute_sample_ogg_()
3247 …pos = (FLAC__int64)((((target_sample-left_sample)>>8) * ((right_pos-left_pos)>>8)) / ((right_sampl… in seek_to_absolute_sample_ogg_()
3302 if (this_frame_sample <= target_sample) { in seek_to_absolute_sample_ogg_()
3309 FLAC__ASSERT(this_frame_sample != target_sample); in seek_to_absolute_sample_ogg_()
3319 else if(this_frame_sample > target_sample) { in seek_to_absolute_sample_ogg_()