Displaying 20 results from an estimated 21 matches for "seek_table".
2006 Oct 28
3
better seeking
...- const unsigned bps = FLAC__stream_decoder_get_bits_per_sample(decoder);
+ const unsigned channels = decoder->private_->stream_info.data.stream_info.channels;
+ const unsigned bps = decoder->private_->stream_info.data.stream_info.bits_per_sample;
const FLAC__StreamMetadata_SeekTable *seek_table = decoder->private_->has_seek_table? &decoder->private_->seek_table.data.seek_table : 0;
/* we are just guessing here, but we want to guess high, not low */
@@ -2961,12 +2961,14 @@
* the first and last frames.
*/
lower_bound = first_frame_offset;
+ lower_bound_sample = 0...
2004 Sep 10
2
better seeking
...bps * FLAC__MAX_BLOCK_SIZE) / 8 + 128 + 2);
+ upper_bound_sample = total_samples;
/*
* Now we refine the bounds if we have a seektable with
@@ -882,7 +884,7 @@
}
if(i >= 0) { /* i.e. we found a suitable seek point... */
lower_bound = first_frame_offset + decoder->private_->seek_table->points[i].stream_offset;
- lower_seek_point = i;
+ lower_bound_sample = decoder->private_->seek_table->points[i].sample_number;
}
/* find the closest seek point > target_sample, if it exists */
@@ -892,76 +894,25 @@
}
if(i < (int)decoder->private_->seek_ta...
2006 Nov 03
2
better seeking
...ze = decoder->private_->stream_info.data.stream_info.min_framesize;
+ const unsigned channels = decoder->private_->stream_info.data.stream_info.channels;
+ const unsigned bps = decoder->private_->stream_info.data.stream_info.bits_per_sample;
const FLAC__StreamMetadata_SeekTable *seek_table = decoder->private_->has_seek_table? &decoder->private_->seek_table.data.seek_table : 0;
- /* we are just guessing here, but we want to guess high, not low */
+ /* we are just guessing here */
if(max_framesize > 0)
- approx_bytes_per_frame = max_framesize;
+ approx_bytes_pe...
2005 Jan 25
0
bitbuffer optimizations
...2);
+ upper_bound_sample = total_samples > 0 ? total_samples : target_sample;
/*
* Now we refine the bounds if we have a seektable with
@@ -923,7 +925,7 @@
}
if(i >= 0) { /* i.e. we found a suitable seek point... */
lower_bound = first_frame_offset + decoder->private_->seek_table->points[i].stream_offset;
- lower_seek_point = i;
+ lower_bound_sample = decoder->private_->seek_table->points[i].sample_number;
}
/* find the closest seek point > target_sample, if it exists */
@@ -933,98 +935,33 @@
}
if(i < (int)decoder->private_->seek_ta...
2004 Sep 10
0
new checkins
...the framing and hence the stream format, so DON'T! */
#define FLAC__MIN_BLOCK_SIZE (16u)
#define FLAC__MAX_BLOCK_SIZE (65535u)
@@ -503,5 +507,9 @@
* encapsulated here:
*/
FLAC__bool FLAC__format_is_valid_sample_rate(unsigned sample_rate);
+
+#ifdef __cplusplus
+}
+#endif
#endif
Index: seek_table.h
===================================================================
RCS file: /cvsroot/flac/flac/include/FLAC/seek_table.h,v
retrieving revision 1.3
diff -u -r1.3 seek_table.h
--- seek_table.h 26 Jan 2002 18:05:12 -0000 1.3
+++ seek_table.h 6 May 2002 15:07:22 -0000
@@ -22,6 +22,15 @@
#include...
2004 Sep 10
3
new checkins
FYI, I have checked in a few interesting things. One is a
speedup to the decoder (about 15% improvement in overall
decode time). Another is a new interface to FLAC file
metadata. If you're curious look at include/FLAC/metadata.h.
It is basically a collection of object manipulation routines
and iterators that make it pretty easy to add/edit/delete
FLAC metadata in files efficiently. The
2004 Sep 10
4
bitbuffer optimizations
Ok, here is a patch waiting for new CVS :). It works fine for me, but
please check it before commiting...
--
Miroslav Lichvar
-------------- next part --------------
--- src/libFLAC/bitbuffer.c.orig 2003-01-30 17:36:01.000000000 +0100
+++ src/libFLAC/bitbuffer.c 2003-01-30 21:53:18.000000000 +0100
@@ -51,6 +51,25 @@
*/
static const unsigned FLAC__BITBUFFER_DEFAULT_CAPACITY = ((65536 - 64) *
2006 Nov 07
0
better seeking
...nnels = FLAC__stream_decoder_get_channels(decoder);
- const unsigned bps = FLAC__stream_decoder_get_bits_per_sample(decoder);
+ unsigned channels = FLAC__stream_decoder_get_channels(decoder);
+ unsigned bps = FLAC__stream_decoder_get_bits_per_sample(decoder);
const FLAC__StreamMetadata_SeekTable *seek_table = decoder->private_->has_seek_table? &decoder->private_->seek_table.data.seek_table : 0;
+ /* use values from stream info if we didn't decode a frame */
+ if (channels == 0)
+ channels = decoder->private_->stream_info.data.stream_info.channels;
+ if (bps == 0)
+ bps =...
2004 Sep 10
0
Re: detecting host machine in configure.in?
...AGS@ -DFLAC__PRECOMPUTE_PARTITION_SUMS -DFLAC__OVERFLOW_DETECT
@@ -15,40 +11,11 @@
if FLaC__CPU_IA32
if FLaC__HAS_NASM
-libFLAC_la_SOURCES = \
- bitbuffer.c \
- bitmath.c \
- crc.c \
- cpu.c \
- encoder.c \
- encoder_framing.c \
- file_decoder.c \
- fixed.c \
- format.c \
- lpc.c \
- md5.c \
- seek_table.c \
- stream_decoder.c \
- i386/cpu_asm.nasm \
- i386/fixed_asm.nasm \
- i386/lpc_asm.nasm
-else
-libFLAC_la_SOURCES = \
- bitbuffer.c \
- bitmath.c \
- crc.c \
- cpu.c \
- encoder.c \
- encoder_framing.c \
- file_decoder.c \
- fixed.c \
- format.c \
- lpc.c \
- md5.c \
- seek_table.c \
- stream_de...
2006 Nov 06
2
better seeking
ok, tried it out... passes test/test_seeking.sh and my
"xmms twitch" test, checked in to CVS. thanks!
Josh
--- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> On Fri, Nov 03, 2006 at 10:01:42AM +0100, Miroslav Lichvar wrote:
> > Thanks. Sending latest version of the patch. Now it can seek in
> files
> > that have large id3 tag (or any random data) at
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...+ md5_failed = (EVP_DigestFinal_ex(&decoder->private_->md5context, decoder->private_->computed_md5sum, NULL) == 0);
+ }
+#else
FLAC__MD5Final(decoder->private_->computed_md5sum, &decoder->private_->md5context);
-
+#endif
if(decoder->private_->has_seek_table && 0 != decoder->private_->seek_table.data.seek_table.points) {
free(decoder->private_->seek_table.data.seek_table.points);
decoder->private_->seek_table.data.seek_table.points = 0;
@@ -1018,11 +1030,15 @@ FLAC_API FLAC__bool FLAC__stream_decoder_reset(FLAC__StreamDe...
2004 Sep 10
2
1.0 candidate checked in
On Fri, Jul 20, 2001 at 03:01:54PM -0700, Josh Coalson wrote:
> --- Matt Zimmerman <mdz@debian.org> wrote:
> >
> > automake will include ltmain.sh in the source distribution, so it
> > should be
> > used even if it isn't installed on the build system. In fact, it
> > seems to
> > always use the distributed version, and not the installed one
2004 Sep 10
2
1.0 candidate checked in
...-DFLAC__CPU_IA32=1 -DFLAC__ALIGN_MALLOC_DATA=1 -DFLAC__HAS_NASM=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -I. -I. -I./include -I ../../include -Wall -W -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops -finline-functions -Winline -DFLaC__INLINE=__inline__ -g -O2 -c seek_table.c
gcc -DPACKAGE=\"flac\" -DVERSION=\"1.0\" -DFLAC__CPU_IA32=1 -DFLAC__ALIGN_MALLOC_DATA=1 -DFLAC__HAS_NASM=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -I. -I. -I./include -I ../../include -Wall -W -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops -finli...
2004 Sep 10
2
Re: detecting host machine in configure.in?
--- Christian Weisgerber <naddy@mips.inka.de> wrote:
> Josh Coalson <xflac@yahoo.com> wrote:
>
> > Basically what I want is configure.in determination of
> > basic machine type (intel/compatible, alpha, ppc), then within
> > that (say intel) the code will detect variants like MMX, SSE,
> > and use the right routines.
>
> Please include a way to
2004 Sep 10
2
stat() and Windows
...Source File
SOURCE=.\fixed.c
# End Source File
# Begin Source File
SOURCE=.\format.c
# End Source File
# Begin Source File
SOURCE=.\lpc.c
# End Source File
# Begin Source File
SOURCE=.\md5.c
# End Source File
# Begin Source File
SOURCE=.\memory.c
# End Source File
# Begin Source File
SOURCE=.\seek_table.c
# End Source File
# Begin Source File
SOURCE=.\seekable_stream_decoder.c
# End Source File
# Begin Source File
SOURCE=.\stream_decoder.c
# End Source File
# Begin Source File
SOURCE=.\stream_encoder.c
# End Source File
# Begin Source File
SOURCE=.\stream_encoder_framing.c
# End Source File
#...
2014 Sep 25
2
Patch to improve malformed vorbiscomment handling
...e, FLAC__IOCallback_Read read_cb, FLAC__StreamMetadata_Picture *block);
@@ -2091,7 +2091,7 @@ FLAC__Metadata_SimpleIteratorStatus read_metadata_block_data_cb_(FLAC__IOHandle
case FLAC__METADATA_TYPE_SEEKTABLE:
return read_metadata_block_data_seektable_cb_(handle, read_cb, &block->data.seek_table, block->length);
case FLAC__METADATA_TYPE_VORBIS_COMMENT:
- return read_metadata_block_data_vorbis_comment_cb_(handle, read_cb, &block->data.vorbis_comment);
+ return read_metadata_block_data_vorbis_comment_cb_(handle, read_cb, seek_cb, &block->data.vorbis_comment, block->...
2014 Sep 26
0
Patch to improve malformed vorbiscomment handling
...e, FLAC__IOCallback_Read read_cb, FLAC__StreamMetadata_Picture *block);
@@ -2091,7 +2091,7 @@ FLAC__Metadata_SimpleIteratorStatus read_metadata_block_data_cb_(FLAC__IOHandle
case FLAC__METADATA_TYPE_SEEKTABLE:
return read_metadata_block_data_seektable_cb_(handle, read_cb, &block->data.seek_table, block->length);
case FLAC__METADATA_TYPE_VORBIS_COMMENT:
- return read_metadata_block_data_vorbis_comment_cb_(handle, read_cb, &block->data.vorbis_comment);
+ return read_metadata_block_data_vorbis_comment_cb_(handle, read_cb, seek_cb, &block->data.vorbis_comment, block->...
2004 Sep 10
2
Re: beta 10 candidate checked in
...lac+mdz/include/FLAC/Makefile.am
--- flac/include/FLAC/Makefile.am Wed Dec 31 19:00:00 1969
+++ flac+mdz/include/FLAC/Makefile.am Thu May 31 04:49:08 2001
@@ -0,0 +1,9 @@
+includedir = ${prefix}/include/FLAC
+
+include_HEADERS = all.h \
+ encoder.h \
+ file_decoder.h \
+ format.h \
+ ordinals.h \
+ seek_table.h \
+ stream_decoder.h
diff -ruN flac/include/Makefile.am flac+mdz/include/Makefile.am
--- flac/include/Makefile.am Wed Dec 31 19:00:00 1969
+++ flac+mdz/include/Makefile.am Thu May 31 04:49:08 2001
@@ -0,0 +1 @@
+SUBDIRS = FLAC
diff -ruN flac/man/Makefile.am flac+mdz/man/Makefile.am
--- flac/man/M...
2004 Sep 10
2
Re: beta 10 candidate checked in
--- Christian Weisgerber <naddy@mips.inka.de> wrote:
> Josh Coalson <xflac@yahoo.com> wrote:
>
> > I have checked in all the latest into CVS and am going to start the
> > test suite again. if all goes well I will probably release this as
> > beta 10.
>
> What's the sequence of steps required to turn this into a buildable
> distribution?
>
2014 Sep 26
2
Patch to improve malformed vorbiscomment handling
Janne Hyv?rinen wrote:
> Patch v2, now handles more malformed cases. Original patch was for a
> file for which I had a sample from a user but this allows handling some
> manually broken test cases.
Err, I'm getting warning messages on that patch:
CC metadata_iterators.lo
metadata_iterators.c: In function ?read_metadata_block_data_vorbis_comment_cb_?: