search for: first_seek

Displaying 3 results from an estimated 3 matches for "first_seek".

2006 Nov 03
2
better seeking
...gt;first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample, this_frame_sample; + FLAC__int64 pos = -1; + int i; unsigned approx_bytes_per_frame; - FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff); - FLAC__bool needs_seek; + FLAC__bool needs_seek = true, first_seek = true; const FLAC__uint64 total_samples = FLAC__stream_decoder_get_total_samples(decoder); const unsigned min_blocksize = decoder->private_->stream_info.data.stream_info.min_blocksize; const unsigned max_blocksize = decoder->private_->stream_info.data.stream_info.max_blocksize;...
2006 Oct 28
3
better seeking
Ok, the patch from 2003 about improving seeking still didn't make it to CVS, so here is another try. I made some benchmarking with the test_seeking utility from flac sources to show how bad the current seeking is, especially without seektable. Track used for the experiment had about 50 minutes. In the following table is average number of seeks and number of decoded frames required for one
2015 Jun 16
0
Low-level seek routines in libFLAC
...e. It saves the local variables needed for seek functions. */ typedef struct seek_t { int state; FLAC__uint64 lower_bound; FLAC__uint64 upper_bound; FLAC__uint64 lower_bound_sample; FLAC__uint64 upper_bound_sample; FLAC__uint64 this_frame_sample; unsigned approx_bytes_per_frame; FLAC__bool first_seek; } seek_t; /* This function initializes an object of type "struct seek_t" and sets initial lower/upper bounds. */ FLAC_API int FLAC__stream_decoder_seek_prepare(FLAC__StreamDecoder *decoder, FLAC__uint64 target_sample, FLAC__uint64 stream_length); /* This function is called in a loop...