• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/flac-1.2.1/src/libFLAC/

Lines Matching refs:target_sample

134 static FLAC__bool seek_to_absolute_sample_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample);
136 static FLAC__bool seek_to_absolute_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample);
201 FLAC__uint64 target_sample;
2917 FLAC__uint64 target_sample = decoder->private_->target_sample;
2925 if(this_frame_sample <= target_sample && target_sample < next_frame_sample) { /* we hit our target frame */
2926 unsigned delta = (unsigned)(target_sample - this_frame_sample);
2929 /* shift out the samples before target_sample */
2972 FLAC__bool seek_to_absolute_sample_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample)
3020 upper_bound_sample = total_samples > 0 ? total_samples : target_sample /*estimate it*/;
3036 /* find the closest seek point <= target_sample, if it exists */
3042 seek_table->points[i].sample_number <= target_sample
3051 /* find the closest seek point > target_sample, if it exists */
3057 seek_table->points[i].sample_number > target_sample
3077 * 1) total_samples is 0 (unknown) and target_sample is 0
3078 * 2) total_samples is 0 (unknown) and target_sample happens to be
3087 decoder->private_->target_sample = target_sample;
3097 pos = (FLAC__int64)lower_bound + (FLAC__int64)((FLAC__double)(FLAC__int64)(target_sample - lower_bound_sample) / (FLAC__double)(FLAC__int64)(upper_bound_sample - lower_bound_sample) * (FLAC__double)(FLAC__int64)(upper_bound - lower_bound)) - approx_bytes_per_frame;
3099 pos = (FLAC__int64)lower_bound + (FLAC__int64)((FLAC__double)(target_sample - lower_bound_sample) / (FLAC__double)(upper_bound_sample - lower_bound_sample) * (FLAC__double)(upper_bound - lower_bound)) - approx_bytes_per_frame;
3104 pos = (FLAC__int64)lower_bound + (FLAC__int64)(((target_sample - lower_bound_sample) * (upper_bound - lower_bound)) / (upper_bound_sample - lower_bound_sample)) - approx_bytes_per_frame;
3106 pos = (FLAC__int64)lower_bound + (FLAC__int64)((((target_sample - lower_bound_sample)>>8) * ((upper_bound - lower_bound)>>8)) / ((upper_bound_sample - lower_bound_sample)>>16)) - approx_bytes_per_frame;
3164 if(target_sample < this_frame_sample) {
3173 else { /* target_sample >= this_frame_sample + this frame's blocksize */
3187 FLAC__bool seek_to_absolute_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample)
3216 decoder->private_->target_sample = target_sample;
3218 if (iteration == 0 || this_frame_sample > target_sample || target_sample - this_frame_sample > LINEAR_SEARCH_WITHIN_SAMPLES) {
3226 pos = (FLAC__uint64)((FLAC__double)(FLAC__int64)(target_sample - left_sample) / (FLAC__double)(FLAC__int64)(right_sample - left_sample) * (FLAC__double)(FLAC__int64)(right_pos - left_pos));
3228 pos = (FLAC__uint64)((FLAC__double)(target_sample - left_sample) / (FLAC__double)(right_sample - left_sample) * (FLAC__double)(right_pos - left_pos));
3232 if ((target_sample-left_sample <= 0xffffffff) && (right_pos-left_pos <= 0xffffffff))
3233 pos = (FLAC__int64)(((target_sample-left_sample) * (right_pos-left_pos)) / (right_sample-left_sample));
3235 pos = (FLAC__int64)((((target_sample-left_sample)>>8) * ((right_pos-left_pos)>>8)) / ((right_sample-left_sample)>>16));
3274 * target_sample is past the end of the stream
3289 if (this_frame_sample <= target_sample) {
3296 FLAC__ASSERT(this_frame_sample != target_sample);
3306 else if(this_frame_sample > target_sample) {