search for: lookahead

Displaying 20 results from an estimated 115 matches for "lookahead".

2006 Oct 30
2
2 questions, frame size and SPEEX_GET_LOOKAHEAD
...ing, the last frame is often smaller than the required frame size. In the sample code, proper number of zeros are padded at the end. So if I don't want those padded zero after decoding, I assume that it is up to me to keep track of the number of zeros. Is it right? 2. What does SPEEX_GET_LOOKAHEAD do? How to use it? In speexenc.c, there is following code: ... speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead); ... nb_encoded = -lookahead; Can someone explain what this means? Thanks. j.p.
2012 Apr 11
0
Speex Codec Delay Problem
I believe if you add the *decoder* lookahead time to the encoder lookahead time you are already referencing, you will get the numbers that you have calculated. --John On 4/11/2012 1:00 PM, speex-dev-request at xiph.org wrote: > Message: 1 > Date: 10 Apr 2012 22:07:20 +0200 > From: Thilo K?hler<koehlerthilo at gmx.de> > S...
2013 Apr 18
2
[Bug 9812] New: Lookahead file-list loading and comparison
https://bugzilla.samba.org/show_bug.cgi?id=9812 Summary: Lookahead file-list loading and comparison Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: me...
2006 Dec 24
1
Algorithmic Delay
Hi, I was hoping to get some clarification on the meaning of algorithmic latency in Speex. For wideband signals, algorithmic delay is specified to be 34 ms (20 ms is the frame size and 14 ms is the lookahead). Does this number (34 ms) account for the double-buffering on the input? Assuming that the computation time and sound wave propagation time are negligible, should I expect compressed audio to be ready for network transmission 34 ms after the sound is created or 54 ms (the algorithmic delay of 34...
2012 Jan 04
0
Non Negative Least Squares Regression with nnls
...? I'm not a statistician; any links to references are highly appreciated as are any relevant workarounds or alternative approaches. Code: library(nnls) #data avgprice <- c(116.0666667,145.1034483,145.75,131.6666667,113.8163265,122.7142857,120.5882353) stars <- c(2.5,2.5,2.5,2.5,3,3,3) lookahead <- c(2,30,60,15,2,30,60) #regular regression reg1 <- lm(avgprice ~ stars + lookahead + stars*lookahead) summary(reg1) #Non-negative s<-cbind(stars,lookahead) reg2<-nnls(s, avgprice) print(reg2) Thanks and Regards, Prasad Joglekar MBA Candidate, Class of 2012 | Tuck School of Busin...
2012 Apr 10
0
Speex Codec Delay Problem
Hello All! SPEEX introduces an additional delay to the audio data, I found out by reverse enginiering (it is NOT the lookahead time): narrow band : delay = 200 - framesize + lookahead = 200 - 160 + 40 = 80 samples wide band : delay = 400 - framesize + lookahead = 400 - 320 + 143 = 223 samples uwide band : delay = 800 - framesize + lookahead = 800 - 640 + 349 = 509 samples To get the timing right, you must skip thos...
2005 Jun 17
2
Speex granulepos definition
Jean-Marc, What exactly does the speex code do to calculate the granulepos? With vorbis it's the 'count of decodable samples including this packet'. So if you had a packet that allowed you to decode 1024 samples since the beginning of playback, the granulepos is 1024, not for example 1023 which would be the *index* of the last sample assuming C-style array indicies starting at
2009 Jun 30
3
Delays estimation in Speex algorithms
...625 ms for UWB. Is there an extra frame of delay in the encoder that isn't otherwise accounted for? John Ridges Jean-Marc Valin wrote: > Quoting John Ridges <jridges at masque.com>: > >> I also need to know the precise delays from Speex but I used the >> SPEEX_GET_LOOKAHEAD control requests to determine them (plus the >> "speex_resampler_get_output_latency" function from the resampler). The >> returned values from the Speex lookahead request don't seem to match >> with the values you gave Alexander. Am I doing this wrong? Thanks, >&g...
2015 Dec 18
1
Assistance much appreciated
...3.2.3.dist/src/library/tools/src/gramLatex.c R-3.2.3/src/library/tools/src/gramLatex.c --- R-3.2.3.dist/src/library/tools/src/gramLatex.c 2015-12-09 23:20:01.000000000 +0000 +++ R-3.2.3/src/library/tools/src/gramLatex.c 2015-12-17 14:50:14.000000000 +0000 @@ -1358,7 +1358,7 @@ /* The lookahead symbol. */ - int yychar; + extern int yychar; #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN @@ -1370,7 +1370,7 @@ #endif /* The semantic value of the lookahead symbol. */ - YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); + extern YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); /* Lo...
2023 Apr 12
3
Split String in regex while Keeping Delimiter
...aven ++? ?leucocyten ? grampositieve coccen +? ? I want to split the strings such that I get the following result: c(?leucocyten +?, ??gramnegatieve staven +++?, ??grampositieve staven ++?) c(?leucocyten ??, ?grampositieve coccen +?) ? I have tried strsplit with a regular expression with a positive lookahead, but I am not able to achieve the results that I want. ? I have tried: as.list(strsplit(x, split = ?(?=[\\+-]{1,3}\\s)+, perl=TRUE) ? Which results in: c(?leucocyten ?, ?+?, ??gramnegatieve staven ?, ?+?, ?+?, ?+?, ??grampositieve staven ++?) c(?leucocyten ?, ???, ?grampositieve coccen +?) ? ? Is t...
2005 Jun 20
1
Speex granulepos definition
On Sun, Jun 19, 2005 at 08:07:50PM -0400, Jean-Marc Valin wrote: > Hi Ralph, > > What speexenc does (Speex itself does not know about Ogg) is that it gives > packet N the granulepos "N*frame_size - lookahead". In the case of narrowband, > the first frame would have granulepos "1*160 - 80", so 80. I can't say about > your example because Speex cannot encode a frame of one sample, which is a good > thing becuse otherwise, the granulepos would be -79. BTW, the reason for the &q...
2006 Oct 31
0
2 questions, frame size and SPEEX_GET_LOOKAHEAD
...often smaller than the required frame > size. In the sample code, proper number of zeros are padded at the end. > So if I don't want those padded zero after decoding, I assume that it is > up to me to keep track of the number of zeros. Is it right? Right. > 2. What does SPEEX_GET_LOOKAHEAD do? How to use it? > In speexenc.c, there is following code: > > ... > speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead); > ... > nb_encoded = -lookahead; > > Can someone explain what this means? The lookahead is the number of samples you need to discard at the s...
2012 Apr 04
0
First frame is fading in (?)
...peex use information from the previous frame to encode the next frame, or are they totally independent? I know that I can decode the frames independently, but what about the encoder? 3. I noticed that when I encode+decode, SPEEX inserts about ~16ms of silence at the beginning, this is probably the lookahead time. I am chopping this manually off right now, but the codec should do this transparently. First because your audio data is time shifted, and second you need to store more audio data than the original audio has, to not clip the end. There is another effect: because the lookahead is not equal to t...
2015 Feb 04
2
Multithread support
Am 04.02.2015 um 12:31 schrieb Timothy B. Terriberry: > M. Pabis wrote: >> 1. Each thread deals with frames from intra frame up to next intra frame >> - 1; > > This works if you know where the intra frames are. Could this information be gathered by having one thread encode a downsampled version of the input video sequence, or would this be a bad predictor? Who knows,
2006 Oct 31
2
2 questions, frame size and SPEEX_GET_LOOKAHEAD
> >> 2. What does SPEEX_GET_LOOKAHEAD do? How to use it? >> In speexenc.c, there is following code: >> >> ... >> speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead); >> ... >> nb_encoded = -lookahead; >> >> Can someone explain what this means? > > The lookahead is the number...
2006 Apr 01
3
Syncpeople Plugin Scope Never Active
...If I change the scope to just "source.ruby" it will work fine. But I cannot see why their scope selectors do not work in my file. Their scopes are pretty simple too, here is an example for the controller: { name = ''meta.rails.controller''; comment = ''Uses lookahead to match classes with the Controller suffix; includes ''''source.ruby'''' to avoid infinite recursion''; begin = ''(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)'';...
2009 Jun 30
3
Delays estimation in Speex algorithms
JM, I also need to know the precise delays from Speex but I used the SPEEX_GET_LOOKAHEAD control requests to determine them (plus the "speex_resampler_get_output_latency" function from the resampler). The returned values from the Speex lookahead request don't seem to match with the values you gave Alexander. Am I doing this wrong? Thanks, John Ridges speex-dev-reque...
2007 Aug 24
0
speex DTX chore
...| MB_ICONERROR); } int enc_frame; speex_encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &enc_frame); frame_size = enc_frame; // Set the quality speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &qlty); // Set DTX speex_encoder_ctl(enc_state, SPEEX_SET_DTX, &dtx); //load lookahead speex_encoder_ctl(enc_state, SPEEX_GET_LOOKAHEAD, &lookahead); if (denoise || agc || vad) { preprocess = speex_preprocess_state_init(frame_size, fs); // Set VAD speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_VAD, &vad); speex_preprocess_ctl(preprocess, SPEEX_PREPROCE...
2007 Aug 06
2
11kbps narrowband on a 24bit DSP
Hi, I am using speex 1.2beta2 on a 24bit DSP that has a severe program and data space limitations. I am only interested in the speex decoder for 11kbps narrowband implementation. I am using the following parameters and structures 160, /*frameSize*/ 40, /*subframeSize*/ 10, /*lpcSize*/ 17, /*pitchStart*/ 144, /*pitchEnd*/ /* 11 kbps medium bit-rate
2005 Jun 19
0
Speex granulepos definition
Hi Ralph, What speexenc does (Speex itself does not know about Ogg) is that it gives packet N the granulepos "N*frame_size - lookahead". In the case of narrowband, the first frame would have granulepos "1*160 - 80", so 80. I can't say about your example because Speex cannot encode a frame of one sample, which is a good thing becuse otherwise, the granulepos would be -79. BTW, the reason for the "- lookahead...