Displaying 17 results from an estimated 17 matches for "init_stream_internal_".
2014 Oct 03
2
[PATCH 5/5]
This patch adds two AVX2 files and adds AVX2 support code into
init_stream_internal_() in stream_encoder.c.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05_avx2.zip
Type: application/zip
Size: 7279 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20141003/1471b3d6/attachment-0001.zip
2014 Oct 05
1
[PATCH 5/5]
On 5.10.2014 10:22, Erik de Castro Lopo wrote:
> lvqcl wrote:
>
>> This patch adds two AVX2 files and adds AVX2 support code into
>> init_stream_internal_() in stream_encoder.c.
> Ste of 5 patches all applied. Thanks
>
> I did run this on my machine with 4 i5-4440 cores wich accoring to /proc/cpu
> has svx2 support. However I'm not sure if flac was actually using the AVX2
> code.
>
I see 18.6% speed boost with my 16-bit multi-g...
2018 Feb 01
3
libFLAC optimizations request
...; should keep all current settings, generate a new stream header
and clear everything for encoding a new signal.
It' clear that current settings, re-creating windows, cpu-dependent
functions, etc could be kept around.
I was not quickly able to extract all the necessary initialization from
"init_stream_internal_" into a new "FLAC__stream_encoder_restart" function.
Regards,
Gabriel Corneanu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/flac-dev/attachments/20180201/b4579a19/attachment.html>
2011 Aug 11
1
Memory leak
...275,712 bytes allocated
==30495==
==30495== 6,772 (8 direct, 6,764 indirect) bytes in 1 blocks are definitely lost in loss record 5 of 5
==30495== at 0x400522F: calloc (vg_replace_malloc.c:418)
==30495== by 0x4068847: FLAC__stream_decoder_new (stream_decoder.c:284)
==30495== by 0x4074911: init_stream_internal_ (stream_encoder.c:1007)
==30495== by 0x4075A98: init_FILE_internal_ (stream_encoder.c:1221)
==30495== by 0x401EE65: FLAC::Encoder::File::init(char const*) (stream_encoder.cpp:459)
==30495== by 0x401E9FC: FLAC::Encoder::File::init(std::string const&) (stream_encoder.cpp:464)
==30495==...
2018 Mar 22
2
Crash when writing 32bit flac files, am I doing something wrong ?
Hello,
I manage to successfully write 8, 16 and 24 bit, all stereo, FLAC files.
But when I try to write 32 bit FLACs my program crashes.
*FLAC__stream_encoder_set_bits_per_sample *is called to match the desired
bit depth (8, 16, 24, 32)
It's the same code for all bit depths, i provide a fixed-size signed int
buffer to the lib (size=16384), with values with appropriate ranges for
each bit
2018 Feb 04
1
libFLAC optimizations request
..., generate a new stream header and clear everything for encoding a new signal.
>>>> It' clear that current settings, re-creating windows, cpu-dependent functions, etc could be kept around.
>>>> I was not quickly able to extract all the necessary initialization from "init_stream_internal_" into a new "FLAC__stream_encoder_restart" function.
>>>>
>>>> Regards,
>>>> Gabriel Corneanu
>>
>
2018 Feb 04
2
libFLAC optimizations request
...urrent settings, generate a new stream header and clear everything for encoding a new signal.
>> It' clear that current settings, re-creating windows, cpu-dependent functions, etc could be kept around.
>> I was not quickly able to extract all the necessary initialization from "init_stream_internal_" into a new "FLAC__stream_encoder_restart" function.
>>
>> Regards,
>> Gabriel Corneanu
2013 Jun 05
1
[PATCH] Disable FLAC__bitreader_read_rice_signed_block_asm_ia32_bswap.
...ream_decoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c
index f987c27..37934de 100644
--- a/src/libFLAC/stream_decoder.c
+++ b/src/libFLAC/stream_decoder.c
@@ -400,7 +400,7 @@ static FLAC__StreamDecoderInitStatus init_stream_internal_(
#ifdef FLAC__CPU_IA32
FLAC__ASSERT(decoder->private_->cpuinfo.type == FLAC__CPUINFO_TYPE_IA32);
#ifdef FLAC__HAS_NASM
-#if 1 /*@@@@@@ OPT: not clearly faster, needs more testing */
+#if 0 /*@@@@@@ OPT: seems to be slower than FLAC__bitreader_read_rice_signed_block */
if(decoder->p...
2014 Oct 05
0
[PATCH 5/5]
lvqcl wrote:
> This patch adds two AVX2 files and adds AVX2 support code into
> init_stream_internal_() in stream_encoder.c.
Ste of 5 patches all applied. Thanks
I did run this on my machine with 4 i5-4440 cores wich accoring to /proc/cpu
has svx2 support. However I'm not sure if flac was actually using the AVX2
code.
Cheers,
Erik
--
---------------------------------------------------------...
2018 Mar 24
0
Crash when writing 32bit flac files, am I doing something wrong ?
...rning
* FLAC__MAX_BITS_PER_SAMPLE is the limit of the FLAC format. However,
* the reference encoder/decoder is currently limited to 24 bits because
* of prevalent 32-bit math, so make sure and use this value when
* appropriate.
*/
#define FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE (24u)
also, init_stream_internal_() function already checks bit depth:
if(encoder->protected_->bits_per_sample <
FLAC__MIN_BITS_PER_SAMPLE || encoder->protected_->bits_per_sample >
FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE)
return FLAC__STREAM_ENCODER_INIT_STATUS_INVALID_BITS_PER_SAMPLE;
so, maybe y...
2018 Feb 04
0
libFLAC optimizations request
...ep all current settings, generate a new stream header and clear everything for encoding a new signal.
> It' clear that current settings, re-creating windows, cpu-dependent functions, etc could be kept around.
> I was not quickly able to extract all the necessary initialization from "init_stream_internal_" into a new "FLAC__stream_encoder_restart" function.
>
> Regards,
> Gabriel Corneanu
2013 May 15
0
FLAC currently won't compile for Android [bisected]
...n function 'read_residual_partitioned_rice_':
stream_decoder.c:2716:2: warning: implicit declaration of function 'MAX'
[-Wimplicit-function-declaration]
stream_decoder.c:2716:2: warning: nested extern declaration of 'MAX'
[-Wnested-externs]
stream_encoder.c: In function 'init_stream_internal_':
stream_encoder.c:677:4: warning: implicit declaration of function 'MAX'
[-Wimplicit-function-declaration]
stream_encoder.c:677:4: warning: nested extern declaration of 'MAX'
[-Wnested-externs]
stream_encoder.c: In function 'FLAC__stream_encoder_process':
stream_encoder...
2018 Feb 04
0
libFLAC optimizations request
...settings, generate a new stream header and clear everything for encoding a new signal.
>>> It' clear that current settings, re-creating windows, cpu-dependent functions, etc could be kept around.
>>> I was not quickly able to extract all the necessary initialization from "init_stream_internal_" into a new "FLAC__stream_encoder_restart" function.
>>>
>>> Regards,
>>> Gabriel Corneanu
>
2013 May 15
2
FLAC currently won't compile for Android [bisected]
2013/5/15 Ulrich Klauer <ulrich at chirlu.de>
> Felix Homann wrote:
>
> > Yes, HAVE_SYS_PARAM_H is set in config.h:
>
> OK ... Yet still I don't see how a change in
> src/libFLAC/include/private/macros.h could affect src/flac/utils.c in
> any way.
>
> Anyone got an idea?
I haven't spend too much attention to the errors when bisecting, sorry!
The
2012 Apr 05
2
[PATCH 2/2] V2: Use a single definition of MIN and MAX in sources
...(x,y) ((x)>(y)?(x):(y))
-
/* Exact Rice codeword length calculation is off by default. The simple
* (and fast) estimation (of how many bits a residual value will be
* encoded with) in this encoder is very good, almost always yielding
@@ -691,7 +682,7 @@ static FLAC__StreamEncoderInitStatus init_stream_internal_(
if(encoder->protected_->bits_per_sample < 16) {
/* @@@ need some data about how to set this here w.r.t. blocksize and sample rate */
/* @@@ until then we'll make a guess */
- encoder->protected_->qlp_coeff_precision = max(FLAC__MIN_QLP_COEFF_PRECISION, 2 + encoder-&...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...);
+#if defined(HAVE_OPENSSL)
+ if(encoder->protected_->do_md5) {
+ EVP_MD_CTX_cleanup(&encoder->private_->md5context);
+ }
+#endif
free(encoder->private_);
free(encoder->protected_);
free(encoder);
@@ -1035,8 +1042,15 @@ static FLAC__StreamEncoderInitStatus init_stream_internal_(
encoder->private_->streaminfo.data.stream_info.bits_per_sample = encoder->protected_->bits_per_sample;
encoder->private_->streaminfo.data.stream_info.total_samples = encoder->protected_->total_samples_estimate; /* we will replace this later with the real total */
mems...
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