Home | History | Annotate | Download | only in libFLAC

Lines Matching defs:upper_bound

2982 	FLAC__uint64 first_frame_offset = decoder->private_->first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample, this_frame_sample;
3027 upper_bound = stream_length;
3040 FLAC__uint64 new_upper_bound = upper_bound;
3076 upper_bound = new_upper_bound;
3098 if (lower_bound_sample >= upper_bound_sample || lower_bound > upper_bound) {
3105 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;
3107 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;
3111 if(upper_bound - lower_bound < 0xffffffff)
3112 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;
3114 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;
3116 if(pos >= (FLAC__int64)upper_bound)
3117 pos = (FLAC__int64)upper_bound - 1;
3175 if(!FLAC__stream_decoder_get_decode_position(decoder, &upper_bound)) {
3179 approx_bytes_per_frame = (unsigned)(2 * (upper_bound - pos) / 3 + 16);