Lines Matching refs:pos
2983 FLAC__int64 pos = -1;
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;
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;
3118 if(pos < (FLAC__int64)lower_bound)
3119 pos = (FLAC__int64)lower_bound;
3120 if(decoder->private_->seek_callback(decoder, (FLAC__uint64)pos, decoder->private_->client_data) != FLAC__STREAM_DECODER_SEEK_STATUS_OK) {
3153 if (pos == (FLAC__int64)lower_bound) {
3179 approx_bytes_per_frame = (unsigned)(2 * (upper_bound - pos) / 3 + 16);
3187 approx_bytes_per_frame = (unsigned)(2 * (lower_bound - pos) / 3 + 16);
3200 FLAC__uint64 pos = 0; /* only initialized to avoid compiler warning */
3228 pos = (right_pos + left_pos) / 2;
3234 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));
3236 pos = (FLAC__uint64)((FLAC__double)(target_sample - left_sample) / (FLAC__double)(right_sample - left_sample) * (FLAC__double)(right_pos - left_pos));
3241 pos = (FLAC__int64)(((target_sample-left_sample) * (right_pos-left_pos)) / (right_sample-left_sample));
3243 pos = (FLAC__int64)((((target_sample-left_sample)>>8) * ((right_pos-left_pos)>>8)) / ((right_sample-left_sample)>>16));
3245 /* @@@ TODO: might want to limit pos to some distance
3253 if(decoder->private_->seek_callback((FLAC__StreamDecoder*)decoder, (FLAC__uint64)pos, decoder->private_->client_data) != FLAC__STREAM_DECODER_SEEK_STATUS_OK) {
3277 right_pos = pos;
3308 if (left_pos == pos) {
3312 left_pos = pos;
3317 if (right_pos == pos) {
3321 right_pos = pos;
3362 off_t pos;
3367 else if((pos = ftello(decoder->private_->file)) < 0)
3370 *absolute_byte_offset = (FLAC__uint64)pos;