search for: subfram

Displaying 20 results from an estimated 139 matches for "subfram".

Did you mean: subframe
2004 Sep 10
3
Altivec, automake
I think I've gotten FLAC__lpc_restore_signal() about as good as I'm going to get it. Here's what I have: -a new file, lpc_asm.s, which has the assembly routines -changes to cpu.h, cpu.c, and stream_decoder.c to enable them -changes to configure.in to support the new cpu stuff -a preliminary Makefile.am -maybe something else I'm forgetting Now automake complains that configure.in
2004 Sep 10
2
Altivec, automake
...C__int32*)malloc(sizeof(FLAC__int32)*size+15U); if(tmp == 0) { decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR; return false; *************** *** 1809,1818 **** FLAC__int32 i32; FLAC__uint32 u32; unsigned u; decoder->private_->frame.subframes[channel].type = FLAC__SUBFRAME_TYPE_FIXED; ! subframe->residual = decoder->private_->residual[channel]; subframe->order = order; /* read warm-up samples */ --- 1821,1831 ---- FLAC__int32 i32; FLAC__uint32 u32; unsigned u; + FLAC__int32 *residual = (FLAC__int32 *...
2004 Sep 10
1
lpc slowdown
...C/assert.h" #include "protected/stream_decoder.h" #include "private/bitbuffer.h" +#include "private/bitmath.h" #include "private/cpu.h" #include "private/crc.h" #include "private/fixed.h" @@ -1738,10 +1739,11 @@ /* decode the subframe */ memcpy(decoder->private_->output[channel], subframe->warmup, sizeof(FLAC__int32) * order); - if(bps <= 16 && subframe->qlp_coeff_precision <= 16) - decoder->private_->local_lpc_restore_signal_16bit(decoder->private_->residual[channel], decoder->privat...
2017 Jun 11
3
[PATCH] doc: Add notes about subframe sample size
...mented a FLAC decoder by only looking at the spec, and I have a few >> notes that would have saved me a lot of time if the spec had mentioned >> them. They are obvious in hindsight, of course. >> >> * If the channel assignment includes a difference channel, then the >> subframe for that channel has one extra bit per sample in order to >> encode the difference. >> >> * The number of bits per sample for a subframe, is the number of bits >> per sample of the frame, minus the number of wasted bits per sample of >> the subframe (and possibly plus...
2014 Jun 19
5
[PATCH] stream_encoder : Improve selection of residual accumulator width
On Thu, Jun 19, 2014 at 03:30:22PM +0400, lvqcl wrote: > BTW, what can you say about the following place in stream_decoder.c > in read_subframe_lpc_() function: > > /*@@@@@@ technically not pessimistic enough, should be more like > if( (FLAC__uint64)order * ((((FLAC__uint64)1)<<bps)-1) * ((1<<subframe->qlp_coeff_precision)-1) < (((FLAC__uint64)-1) << 32) ) > */ > if(bps + subfram...
2004 Sep 10
1
AW: AW: Incomplete format description?
...have a few questions. - I am right, that the FLAC__bitbuffer_read_rice_signed_block method is doing the same as I would have achieved by filling the array in a loop by calling FLAC__bitbuffer_read_symmetric_rice_signed? - Should I allign the bitstream to the beginning of the next byte between the subframes, or only after reading the last subframe. I'm having some synchronization problems which might be caused by this. - My implementation seems to decode fixed subframes now, but the lpc subframes contains nothing but noise, and the bitstream is out of sync after reading one. The source code I...
2017 Jun 11
0
[PATCH] doc: Add notes about subframe sample size
...by only looking at the spec, and I have a few >>> notes that would have saved me a lot of time if the spec had mentioned >>> them. They are obvious in hindsight, of course. >>> >>> * If the channel assignment includes a difference channel, then the >>> subframe for that channel has one extra bit per sample in order to >>> encode the difference. >>> >>> * The number of bits per sample for a subframe, is the number of bits >>> per sample of the frame, minus the number of wasted bits per sample of >>> the subfra...
2014 Jun 19
0
[PATCH] stream_encoder : Improve selection of residual accumulator width
...ature mismatch Thanks, -- Miroslav Lichvar -------------- next part -------------- diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index ddd8979..82318ae 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -99,7 +99,7 @@ static FLAC__bool read_subframe_constant_(FLAC__StreamDecoder *decoder, unsigned static FLAC__bool read_subframe_fixed_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bps, const unsigned order, FLAC__bool do_full_decode); static FLAC__bool read_subframe_lpc_(FLAC__StreamDecoder *decoder, unsigned channel, unsigned bp...
2010 Oct 28
0
PLC in Speex-
...d like to do, and I think both will require some modification to nb_decode() and nb_decode_lost(). - I'd like to have my frames overlap by some number of samples. This is intended to reduce the amount of fill/stretch that has to happen when a packet is missing. This can probably be an entire subframe. - I'd like to have nb_decode_lost() use information about future packets that may be waiting, if they are available (so that the signal blends into, and stretches out, the next packet's signal to fill the gap, rather than just extending the last packet and then transitioning to the next p...
2010 Oct 28
0
PLC in Speex
...d like to do, and I think both will require some modification to nb_decode() and nb_decode_lost(). - I'd like to have my frames overlap by some number of samples. This is intended to reduce the amount of fill/stretch that has to happen when a packet is missing. This can probably be an entire subframe. - I'd like to have nb_decode_lost() use information about future packets that may be waiting, if they are available (so that the signal blends into, and stretches out, the next packet's signal to fill the gap, rather than just extending the last packet and then transitioning to the next p...
2007 May 20
1
Speex bit allocation
I would like to know if my vision of things is correct about frame structure. -------------------------------------------------------- Frame header -------------------------------------------------------- Subframe1 header|Subframe1 content| -------------------------------------------------------- Subframe2 header|Subframe2 content| -------------------------------------------------------- Subframe3 header|Subframe3 content| -------------------------------------------------------- Subframe4 header|Subframe...
2004 Sep 10
1
AW: AW: AW: Incomplete format description?
...Josh Coalson > > Miroslav's suggestion is the best right now. I probably should > hand-craft a stream that exercises a decoder as much as possible. I've already tested my decoder with the options -0 to -8 and it works, but the streams doesn't contain any verbatim or constant subframes. I guess this depends heavily on the input file. Unpredictable noise will be coded as verbatim frames and periods of complete silence as constant frames? I'll see if I get to run the test-script mentioned, but I am not sure if my Linux installation is working very well. I've made the cur...
2019 Mar 05
2
FLAC frame boundaries and protocol
Hello, I've set up and have been reading through the FLAC reference implementation source code on Windows and stepping through it in the debugger.   I've been trying to understand how the protocol knows where the subframe and frame boundaries are. Is there a good tutorial that discusses the ins and outs of the flac protocol? Also, is there a piece of the reference code that shows how frame and subframe boundaries are calculated? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL...
2006 Sep 06
0
Getting subframe type=verbatim on 16 bit files
...ut every monoe or stereo file that > I send > thru I get files that are the same sze as the orginal wave files. > > Doing a flac -a on the flac files I see that I get: > > frame=9 blocksize=4608 sample_rate=8000 channels=1 > channel_assignment=INDEPENDENT > subframe=0 wasted_bits=0 type=VERBATIM > ....... > > Any idea why/ where I have goofed? > > Thanks, > > James > > > Code snippet: > =================================================== > FlacEncoder flacCompressor; > bool setValue =...
2015 Apr 20
2
About a comment in stream_decoder.c
I don't understand the comment in src/libFLAC/stream_decoder.c: /*@@@@@@ technically not pessimistic enough, should be more like if( (FLAC__uint64)order * ((((FLAC__uint64)1)<<bps)-1) * ((1<<subframe->qlp_coeff_precision)-1) < (((FLAC__uint64)-1) << 32) ) */ if(bps + subframe->qlp_coeff_precision + FLAC__bitmath_ilog2(order) <= 32) see http://git.xiph.org/?p=flac.git;a=commitdiff;h=8534bbe4e92300609fd6dc289d882130b69d48cd First, I suspect that there's a typo and...
2017 Jun 06
1
[Cellar] FLAC Markdown
...o make a few remarks about the spec. I implemented a FLAC decoder by only looking at the spec, and I have a few notes that would have saved me a lot of time if the spec had mentioned them. They are obvious in hindsight, of course. * If the channel assignment includes a difference channel, then the subframe for that channel has one extra bit per sample in order to encode the difference. * The number of bits per sample for a subframe, is the number of bits per sample of the frame, minus the number of wasted bits per sample of the subframe (and possibly plus one for a difference channel). I hope this...
2014 Dec 15
1
[PATCH] src/libFLAC/stream_decoder.c : Rework fix for seeking bug.
To avoid crash caused by an unbound LPC decoding when predictor order is larger than blocksize, the sanity check needs to be moved to the subframe decoding functions. --- src/libFLAC/stream_decoder.c | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index d13b23b..211b4db 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/...
2004 Sep 10
2
AW: Incomplete format description?
> -----Ursprungliche Nachricht----- > Von: Josh Coalson > > --- Tor-Einar Jarnbjo <Tor-Einar_Jarnbjo@grosch-link.de> wrote: > > Hi, > > > > have I just overseen a link, or is the format description on > > http://flac.sourceforge.net/format.html lacking information on how to > > actually decode the residual partitions to PCM sample data? > > you
2006 Aug 10
1
Historical question
...is this implementation of the DoD, nobody would voluntarily re-implement CELP. If I read the manual, I guess you just took the idea names CELP, did some conceptual work (resulting in NB, WB und UWB mode as well as all these bitrates Speex supports, as well as stuff like frame-length and number of subframes) and then actually made a new implementation (DoD CELP is far less than Speex). So the Question is: did you take any code from DoD CELP? What would happen, if I took a 8kHz-Wav file and did speexenc -n -.bitrate 4800 file.wav file.spx Would the result of this be comparable to a DoD-CELP encoded...
2004 Sep 10
0
AW: AW: Incomplete format description?
Torsdag, 23 januar 2003, skrev "Tor-Einar Jarnbjo" <Tor-Einar_Jarnbjo@grosch- link.de>: >- My implementation seems to decode fixed subframes now, but the lpc >subframes contains nothing but noise, and the bitstream is out of sync after >reading one. The source code I'm using for decoding the lpc subframe is >available here: http://user.cs.tu-berlin.de/~bjote/Subframe.java and the >relevant part starts on line 218. I...