search for: offset_end

Displaying 2 results from an estimated 2 matches for "offset_end".

Did you mean: offset_den
2009 May 15
0
[PATCH] oggz: limit seeking to specified range
...usly opened for reading * \param offset The offset of the start of data * \returns 0 on success, -1 on failure. */ int oggz_set_data_start (OGGZ * oggz, oggz_off_t offset); /** \} */ +/** + * Seeks Oggz to time unit_target, but with the bounds of the offset range + * [offset_begin, offset_end]. This is useful when seeking in network streams + * where only parts of a media are buffered, and retrieving unbuffered + * parts is expensive. + * \param oggz An OGGZ handle previously opened for reading + * \param unit_target The seek target, in milliseconds, or custom units + * \param offset_be...
2009 May 04
1
[PATCH] oggz: inefficient seeking
...rt_page (oggz, og, &granulepos, &serialno) >= 0) { + unit_end = oggz_get_unit (oggz, serialno, granulepos); + } + } og = &oggz->current_page; @@ -682,6 +697,10 @@ oggz_seek_set (OGGZ * oggz, ogg_int64_t unit_target) break; } + if (offset_guess > offset_end) { + offset_guess = offset_end; + } + offset_at = oggz_seek_raw (oggz, offset_guess, SEEK_SET); if (offset_at == -1) { goto notfound; diff --git a/src/tools/oggz-dump.c b/src/tools/oggz-dump.c index fc7e3ba..56c5eb6 100644 --- a/src/tools/oggz-dump.c +++ b/src/tools/oggz-du...