Displaying 20 results from an estimated 300 matches similar to: "[PATCH] Optimize FLAC__bitreader_read_rice_signed"
2008 Mar 17
0
bitreader optimizations
On Fri, Mar 14, 2008 at 07:36:31PM +0100, Miroslav Lichvar wrote:
> attached are patches that improve decoding speed a bit. The first
> patch improves the bit scan macro used for decoding unary values, the
> second one adds a GCC inline assembly for bswap and the third patch
> replaces the read_rice_block function.
The third patch has a bug causing reading past input buffer, attaching
2008 Mar 14
2
bitreader optimizations
Hi,
attached are patches that improve decoding speed a bit. The first
patch improves the bit scan macro used for decoding unary values, the
second one adds a GCC inline assembly for bswap and the third patch
replaces the read_rice_block function.
In my testing it turned out to be even faster than the _ia32_bswap
function. If the code produced by MSVC is faster as well, I'd suggest
to remove
2012 May 09
1
[PATCH 2/2] bitmath: Finish up optimizations
This patch adds support for other compilers and systems
including MSVC, Intel C compiler etc..
---
src/libFLAC/bitmath.c | 48 -------------
src/libFLAC/bitreader.c | 54 ++-------------
src/libFLAC/include/private/bitmath.h | 120 ++++++++++++++++++++++++++++++---
3 files changed, 116 insertions(+), 106 deletions(-)
diff --git a/src/libFLAC/bitmath.c
2012 Aug 28
3
[PATCH 1/3] Make FLAC__clz_soft_uint32 static.
---
src/libFLAC/include/private/bitmath.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libFLAC/include/private/bitmath.h b/src/libFLAC/include/private/bitmath.h
index 61b0e03..d32b1a7 100644
--- a/src/libFLAC/include/private/bitmath.h
+++ b/src/libFLAC/include/private/bitmath.h
@@ -42,7 +42,7 @@
#endif
/* Will never be emitted for MSVC, GCC, Intel compilers */
2005 Jan 01
2
libFLAC bitbuffer optimizations
Josh Coalson <xflac@yahoo.com> wrote:
> thanks for the patch.
No prob :)
> also, if you have miroslav's patch again a more updated version
> of bitbuffer.c that would be great. I have been meaning to get
> around to applying it for a long time.
This is Miroslav's patch, from the mailing list post I dug up in the archives:
--- orig/src/libFLAC/bitbuffer.c
+++
2017 Jan 19
4
[PATCH] Fix cppcheck warnings
---
src/libFLAC/bitreader.c | 4 ++--
src/libFLAC/bitwriter.c | 4 ++--
src/plugin_xmms/plugin.c | 2 +-
src/share/utf8/charset.c | 1 +
src/test_libFLAC++/encoders.cpp | 8 ++++----
src/test_libFLAC/decoders.c | 4 ++--
src/test_libFLAC/encoders.c | 8 ++++----
7 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/src/libFLAC/bitreader.c
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) *
2012 Apr 05
1
[PATCH] remove unnecesary typedef in bitwriter.c
---
src/libFLAC/bitwriter.c | 31 +++++++++++++++----------------
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/src/libFLAC/bitwriter.c b/src/libFLAC/bitwriter.c
index 651440d..7da4b15 100644
--- a/src/libFLAC/bitwriter.c
+++ b/src/libFLAC/bitwriter.c
@@ -43,12 +43,11 @@
/* Things should be fastest when this matches the machine word size */
/* WATCHOUT: if you change this
2012 Apr 07
1
[PATCH 2/2] Update and improve autotools build
- INCLUDES is deprecated, and CPPFLAGS is an user-defined
variable, use the proper AM_CPPFLAGS instead
- Remove FLAC__INLINE definition, providing proper
replacement for MSVC compilers.
- Detect if we have C99 's lround and provide a replacement
for windows...
---
configure.ac | 32 ++++++++--------------------
examples/c/decode/file/Makefile.am
2013 Mar 03
3
Fwd: flac 1.3.0pre1 prelease
Ben Allison wrote:
> There's a more few issues for compiling on MSVC. I put together a patch.
>
> Here's a quick rundown:
> * must use __inline keyword with static inline functions (bitmath.h)
If you include "share/compath.h" you will get a inline #defined as __inline
when _MSC_VER is defined. I'd prefer a single diffinition of that in one
place and one place
2008 Jun 14
0
[Flac] Ogg Codecs 0.80.15035
Cristian Adam wrote:
> Hi all,
>
> I've made a test release for Ogg DirectShow Codecs.
> You can find it here:
> http://www.xiph.org/dshow/uploads/Main/oggcodecs_0.80.15035.exe
>
> The problem is that I get a HEAP Corruption detected at:
>
> void FLAC__bitreader_free(FLAC__BitReader *br)
> {
> FLAC__ASSERT(0 != br);
>
> if(0 != br->buffer)
2005 Feb 02
0
two small-ish optimizations (death by a thousand cuts)
This lpc_restore_order was partially inspired by Miroslav's affd, though
my (not very great) ARM asm version resembled this, as well.
The other two reduce CPU array indexing overhead in loops a little.
Additionally, a request for help:
My not very optimized lpc_restore_signal is at the below URL, I
couldn't get the ldm* instructions to work as advertised, even though
I've talked
2024 Oct 08
0
Question: Is CAREFUL_ALIGNMENT=1 needed for rsync on RISC-V
Hello,
I'm using rsync on RISC-V machines. I notice that the developers of
rsync seem to assume that only x86 CPUs can handle memory misalignments:
```c
/* We know that the x86 can handle misalignment and has the same
?* byte order (LSB-first) as the 32-bit numbers we transmit. */
#if defined __i386__ || defined __i486__ || defined __i586__ || defined
__i686__ || __amd64
#define
2004 Dec 28
2
libFLAC bitbuffer optimizations
Pulled from my Arch archive, this following patch seems to have made
quite a difference in getting my ARM7TDMI chip to play FLAC (compression
levels 0-2) on my ipod. I don't have benchmarks with hard numbers, but
playing with skips vs playing without skips is a fairly noticeable
difference.
memcpy and memset on uClibc are optimized in asm for the ARM7TDMI in
uClibc. Other hardware/libc
2004 Sep 30
1
[don@donarmstrong.com: Bug#274301: libflac4 segfaults on corrupt flac files]
----- Forwarded message from Don Armstrong <don@donarmstrong.com> -----
Date: Thu, 30 Sep 2004 16:19:41 -0700
From: Don Armstrong <don@donarmstrong.com>
Resent-From: Don Armstrong <don@donarmstrong.com>
To: submit@bugs.debian.org
Subject: Bug#274301: libflac4 segfaults on corrupt flac files
Severity: normal
Package: libflac4
Version: 1.1.0-11
Running ogg123 on
2007 May 19
2
Crash in blur.c (SIGSEGV)
Hello.
System info:
OS: FC6 x86_64
video: Nvidia GF 7900 GT, driver version 97.55
compiz version: git
config backend used: ccp
I can reproduce this crash every time on my system. When blur plugin is active and I try to access any right-click menu, regular application menu or drop-down list, compiz crashes. Backtrace produced by crashhandler plugin shows crash in blur.c in function
2012 Nov 06
2
[LLVMdev] [PATCH] basic reading reloc visitor for x86_64 ELF
For llvm-dwarfdump we need to handle relocations inside the debug info
sections in order to successfully dump the dwarf info including strings.
Nick sent out a partial patch that did this not too long ago and I've taken
it and gone in a bit of a different direction, but kept the same basic
architecture.
In place of applying the relocations to the data we've read from disk I'm
keeping
2013 Mar 03
5
Fwd: flac 1.3.0pre1 prelease
Johnny Rosenberg wrote:
> Maybe a stupid question, but I was born stupid and I have walked that
> path ever since, so: Is there a changelog?
The only changelog is the git changelog. I will be writing a real
changelog to go in the actual release tarball before the official
release.
The git changelog is available here:
https://git.xiph.org/?p=flac.git;a=summary
or in any git clone of
2012 Apr 05
2
[PATCH 2/2] V2: Use a single definition of MIN and MAX in sources
---
configure.ac | 7 +++++
src/libFLAC/bitreader.c | 12 ++-------
src/libFLAC/bitwriter.c | 8 ++----
src/libFLAC/fixed.c | 18 +++++--------
src/libFLAC/format.c | 8 ++----
src/libFLAC/include/private/macros.h | 29 ++++++++++++++++++++
src/libFLAC/metadata_iterators.c | 17 +++---------
2008 Jun 14
1
[Flac] Ogg Codecs 0.80.15035
Hi all,
I've made a test release for Ogg DirectShow Codecs.
You can find it here:
http://www.xiph.org/dshow/uploads/Main/oggcodecs_0.80.15035.exe
The problem is that I get a HEAP Corruption detected at:
void FLAC__bitreader_free(FLAC__BitReader *br)
{
FLAC__ASSERT(0 != br);
if(0 != br->buffer)
free(br->buffer);
The call stack is:
>