Displaying 14 results from an estimated 14 matches for "flac__integer_only_library".
2016 Mar 18
2
Link errors on IA32
...SSE optimizations lpc_restore_signal_16_intrin_sse2 and lpc_restore_signal_wide_intrin_sse41. Looks like a define check is missing since the implementation of these functions is only included when not building for integer. I had to exclude them at libFLAC/stream_decoder.c:408 by adding a check for !FLAC__INTEGER_ONLY_LIBRARY.
//Joakim
----------------------------------------------------------------------
Intel Sweden AB
Registered Office: Isafjordsgatan 30B, 164 40 Kista, Stockholm, Sweden
Registration Number: 556189-6027
This e-mail and any attachments may contain confidential material for
the sole use of the intend...
2005 Apr 27
2
seek_absolute problem
--- Bernd Löhr <B.Loehr@hermstedt.de> wrote:
> Hi,
>
> I am using the FLAC encoder and decoder lib in it's integer only
> version (FLAC__INTEGER_ONLY_LIBRARY) on a PPC405 system.
>
> I encounter complete different behaviour when setting random playback
>
> positions while decoding different flac encoded files.
> If they have been encoded on a PC, repositioning within the file
> works
> flawlessly. If we do the same on files encod...
2013 Apr 19
2
Preprocessor error when trying to build integer-only
Hi,
I was wondering how much worse FLAC performance would be if it was
compiled integer-only, but while trying to do so (by adding #define
FLAC__INTEGER_ONLY_LIBRARY 1 to config.h, just on x86_64-linux) I got
this error
> ./include/private/bitmath.h:134:5: error: operator '&&' has no left
> operand
bitmath.h:134 is the following line
> #if && defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 &&
>...
2006 Oct 28
3
better seeking
..._uint64 range_samples = seek_table->points[upper_seek_point].sample_number - seek_table->points[lower_seek_point].sample_number;
- const FLAC__uint64 range_bytes = (upper_bound>lower_bound? upper_bound - lower_bound - 1 : 0);
+ needs_seek = true;
+ while(1) {
+ if(needs_seek) {
#ifndef FLAC__INTEGER_ONLY_LIBRARY
#if defined _MSC_VER || defined __MINGW32__
- /* with MSVC you have to spoon feed it the casting */
- pos = (FLAC__int64)lower_bound + (FLAC__int64)(((FLAC__double)(FLAC__int64)target_offset / (FLAC__double)(FLAC__int64)range_samples) * (FLAC__double)(FLAC__int64)(range_bytes-1)) - approx_byte...
2005 Jan 25
0
bitbuffer optimizations
...er->private_->seek_table->points[lower_seek_point].sample_number;
- const FLAC__uint64 range_bytes = (upper_bound>lower_bound? upper_bound - lower_bound - 1 : 0);
+ decoder->private_->target_sample = target_sample;
+
+ needs_seek = true;
+ while(1) {
+ if(needs_seek) {
#ifndef FLAC__INTEGER_ONLY_LIBRARY
#if defined _MSC_VER || defined __MINGW32__
/* with MSVC you have to spoon feed it the casting */
- pos = (FLAC__int64)lower_bound + (FLAC__int64)(((FLAC__double)(FLAC__int64)target_offset / (FLAC__double)(FLAC__int64)range_samples) * (FLAC__double)(FLAC__int64)(range_bytes-1)) - approx_byte...
2006 Nov 03
2
better seeking
...nd - 1 : 0);
+ while(1) {
+ /* check if the bounds are still ok */
+ if (lower_bound_sample + FLAC__MIN_BLOCK_SIZE > upper_bound_sample || lower_bound > upper_bound) {
+ decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
+ return false;
+ }
+ if(needs_seek) {
#ifndef FLAC__INTEGER_ONLY_LIBRARY
#if defined _MSC_VER || defined __MINGW32__
- /* with MSVC you have to spoon feed it the casting */
- pos = (FLAC__int64)lower_bound + (FLAC__int64)(((FLAC__double)(FLAC__int64)target_offset / (FLAC__double)(FLAC__int64)range_samples) * (FLAC__double)(FLAC__int64)(range_bytes-1)) - approx_byte...
2013 Aug 16
0
PATCH: MSVC and M_LN2
...-08-13 13:30:24.000000000 +0400
+++ b\src\libFLAC\lpc.c 2013-08-06 19:17:00.765482100 +0400
@@ -34,6 +34,9 @@
# include <config.h>
#endif
+#if defined(_MSC_VER)
+#define _USE_MATH_DEFINES
+#endif
#include <math.h>
#include "FLAC/assert.h"
@@ -52,7 +55,6 @@
#ifndef FLAC__INTEGER_ONLY_LIBRARY
#ifndef M_LN2
-/* math.h in VC++ doesn't seem to have this (how Microsoft is that?) */
#define M_LN2 0.69314718055994530942
#endif
2016 Dec 23
1
C++ - style comment
...ctions... (sigh)
but some are much older, for example:
<http://git.xiph.org/?p=flac.git;a=commitdiff;h=f299910ddb90a33b2866d0ae27e687de8bbc154e>
It seems that the oldest cpp-style comment in libFLAC is the following
line from src/libFLAC/include/protected/stream_encoder.h:
#endif // #ifndef FLAC__INTEGER_ONLY_LIBRARY
--it exists since FLAC 1.1.3 (see commit
<http://git.xiph.org/?p=flac.git;a=commitdiff;h=bf0f52c21e439aefdbcf71551621023b0bc9cef0#patch16>)
2007 Apr 08
0
FLAC 24 bit test results
...gt;raw_bits_per_partition);
+ ok = ok && FLAC__memory_alloc_aligned_unsigned_array(new_blocksize * 2, &encoder->private_->raw_bits_per_partition_unaligned, &encoder->private_->raw_bits_per_partition);
/* now adjust the windows if the blocksize has changed */
#ifndef FLAC__INTEGER_ONLY_LIBRARY
@@ -3170,6 +3169,7 @@
unsigned rice_parameter;
unsigned _candidate_bits, _best_bits;
unsigned _best_subframe;
+ FLAC__bool do_escape_coding = encoder->protected_->do_escape_coding;
FLAC__ASSERT(frame_header->blocksize > 0);
@@ -3237,6 +3237,7 @@
fprintf(stderr, "...
2004 Sep 10
2
better seeking
When I was trying to find yesterday's xmms-plugin bug, i have noticed
that seeking in stream without seek-table isn't very good. With
attached patch it is much better.
--
Miroslav Lichvar
-------------- next part --------------
--- src/libFLAC/seekable_stream_decoder.c.orig 2003-02-26 19:41:51.000000000 +0100
+++ src/libFLAC/seekable_stream_decoder.c 2003-07-09 23:49:35.000000000 +0200
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) *
2007 Apr 05
2
FLAC 24 bit test results
On Thu, 2007-04-05 at 02:27 -0700, Brian Willoughby wrote:
> Josh (Green),
>
> Seems like the longest example in your list is a 15-second file. I
> would like to see the same problem exhibited in a file that is of a
> normal length. I have been recording full performances lasting
> hours, and flac always compresses the files below 70% of the original
> size.
>
2012 May 09
1
[PATCH 2/2] bitmath: Finish up optimizations
...= 4
+ * ilog2(17) = 4
+ * ilog2(18) = 4
+ */
static inline unsigned FLAC__bitmath_ilog2(FLAC__uint32 v)
{
- if (v == 0)
- return 0;
- return sizeof(FLAC__uint32) * __CHAR_BIT__ - 1 - __builtin_clz(v);
+ return sizeof(FLAC__uint32) * CHAR_BIT - 1 - FLAC__clz_uint32(v);
}
+
+#ifdef FLAC__INTEGER_ONLY_LIBRARY /*Unused otherwise */
+
static inline unsigned FLAC__bitmath_ilog2_wide(FLAC__uint64 v)
{
if (v == 0)
return 0;
- return sizeof(FLAC__uint64) * __CHAR_BIT__ - 1 - __builtin_clzll(v);
-}
-
+#if && defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC...
2018 Jul 10
9
[PATCH 0/7] PowerPC64 performance improvements
The following series adds initial vector support for PowerPC64.
On POWER9, flac --best is about 3.3x faster.
Amitay Isaacs (2):
Add m4 macro to check for C __attribute__ features
Check if compiler supports target attribute on ppc64
Anton Blanchard (5):
configure.ac: Remove SPE detection code
configure.ac: Add VSX enable/disable
configure.ac: Fix FLAC__CPU_PPC on little endian, and add