search for: frame_length

Displaying 15 results from an estimated 15 matches for "frame_length".

2016 Aug 26
2
[PATCH 9/9] Optimize silk_inner_prod_aligned_scale() for ARM NEON
...psEnc->sStereo.mid_only_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ], MStargetRates_bps, TargetRate_bps, psEnc->state_Fxx[ 0 ].sCmn.speech_activity_Q8, encControl->toMono, - psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, psEnc->state_Fxx[ 0 ].sCmn.frame_length ); + psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, psEnc->state_Fxx[ 0 ].sCmn.frame_length, psEnc->state_Fxx[ 0 ].sCmn.arch ); if( psEnc->sStereo.mid_only_flags[ psEnc->state_Fxx[ 0 ].sCmn.nFramesEncoded ] == 0 ) { /* Reset side channel e...
2017 Nov 20
4
Reg an issue with smoothing factor in VAD implementation
...tep1: Calculate speech probability : comment > by me > > /* Power scaling */ > if( speech_nrg <= 0 ) { // step2: update speech probability based on > speech energy : comment by me > SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); > } else if( speech_nrg < 32768 ) { > if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { > speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled > here : comment by me > } else { > speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 ); > } > > /* square-root */ > speech_nrg = silk_SQRT_APPROX( speech_nrg ); > SA_Q15 =...
2012 Feb 25
0
Speex-with-header-byte and Google ASR
...ate_); } void SpeexRecorder::WriteToFile(int16 * buf, int count) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; count -= (count % samples_per_frame_); for (int i = 0; i < count; i += samples_per_frame_) { speex_encode_int(encoder_state_, (spx_int16_t*)buf, &bits_); int frame_length = speex_bits_write(&bits_, encoded_frame_data_ + 1, kMaxSpeexFrameLength); encoded_frame_data_[0] = static_cast<char>(frame_length); speex_bits_reset(&bits_); NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; NSData *dataToSend = [NSData dataWithBytes:encoded_frame...
2012 Feb 25
0
Speex-with-header-byte and Google ASR
...ate_); } void SpeexRecorder::WriteToFile(int16 * buf, int count) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; count -= (count % samples_per_frame_); for (int i = 0; i < count; i += samples_per_frame_) { speex_encode_int(encoder_state_, (spx_int16_t*)buf, &bits_); int frame_length = speex_bits_write(&bits_, encoded_frame_data_ + 1, kMaxSpeexFrameLength); encoded_frame_data_[0] = static_cast<char>(frame_length); speex_bits_reset(&bits_); NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; NSData *dataToSend = [NSData dataWithBytes:encoded_frame...
2017 Nov 27
3
Reg an issue with smoothing factor in VAD implementation
...) - VAD_NEGATIVE_OFFSET_Q5 ); // step1: Calculate speech probability : comment by me /* Power scaling */ if( speech_nrg <= 0 ) { // step2: update speech probability based on speech energy : comment by me SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); } else if( speech_nrg < 32768 ) { if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled here : comment by me } else { speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 ); } /* square-root */ speech_nrg = silk_SQRT_APPROX( speech_nrg ); SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_...
2017 Nov 20
0
Reg an issue with smoothing factor in VAD implementation
...) - VAD_NEGATIVE_OFFSET_Q5 ); // step1: Calculate speech probability : comment by me /* Power scaling */ if( speech_nrg <= 0 ) { // step2: update speech probability based on speech energy : comment by me SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); } else if( speech_nrg < 32768 ) { if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled here : comment by me } else { speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 ); } /* square-root */ speech_nrg = silk_SQRT_APPROX( speech_nrg ); SA_Q15 = silk_SMULWB( 32768 + speech_nrg, SA_...
2018 Feb 16
1
Reg an issue with smoothing factor in VAD implementation
.../* Power scaling */ > if( speech_nrg <= 0 ) { // step2: update speech probability > based on speech energy : comment by me > SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); > } else if( speech_nrg < 32768 ) { > if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { > speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy > is doubled here : comment by me > } else { > speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 ); > } > > /* squar...
2017 Nov 22
0
Reg an issue with smoothing factor in VAD implementation
...ty : comment >> by me >> >> /* Power scaling */ >> if( speech_nrg <= 0 ) { // step2: update speech probability based on >> speech energy : comment by me >> SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); >> } else if( speech_nrg < 32768 ) { >> if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { >> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled >> here : comment by me >> } else { >> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 ); >> } >> >> /* square-root */ >> speech_nrg = silk_SQRT_APP...
2017 Nov 27
0
Reg an issue with smoothing factor in VAD implementation
...>>> >>> /* Power scaling */ >>> if( speech_nrg <= 0 ) { // step2: update speech probability based on >>> speech energy : comment by me >>> SA_Q15 = silk_RSHIFT( SA_Q15, 1 ); >>> } else if( speech_nrg < 32768 ) { >>> if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { >>> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 16 ); // Energy is doubled >>> here : comment by me >>> } else { >>> speech_nrg = silk_LSHIFT_SAT32( speech_nrg, 15 ); >>> } >>> >>> /* square-root */ >&gt...
2016 Aug 23
0
[PATCH 8/8] Optimize silk_NSQ_del_dec() for ARM NEON
...F THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <arm_neon.h> +#include "main.h" +#include "stack_alloc.h" + +typedef struct { + opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ][ MAX_DEL_DEC_STATES ]; + opus_int32 RandState[ DECISION_DELAY ][ MAX_DEL_DEC_STATES ]; + opus_int32 Q_Q10[ DECISION_DELAY ][ MAX_DEL_DEC_STATES ]; + opus_int32 Xq_Q14[ DECISION_DELAY ][ MAX_DEL_DEC_STATES ]; + opus_int32 Pred_Q15[ DECISION_DELAY ][ MAX_DEL...
2016 Aug 23
2
[PATCH 7/8] Update NSQ_LPC_BUF_LENGTH macro.
NSQ_LPC_BUF_LENGTH is independent of DECISION_DELAY. --- silk/define.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/silk/define.h b/silk/define.h index 781cfdc..1286048 100644 --- a/silk/define.h +++ b/silk/define.h @@ -173,11 +173,7 @@ extern "C" #define MAX_MATRIX_SIZE MAX_LPC_ORDER /* Max of LPC Order and LTP order */ -#if( MAX_LPC_ORDER >
2000 May 11
1
Header
...udiophilez.com). To be able to do this, I need some simple information. I would greatly appreciate it if you could help me out here: 1. Will a standard MP3 decoder find 'sync' in an .OGG file? My spider searches for sync (11 bits on) and then another sync header at byte [first_sync_header+frame_length]. I just want to make sure my spider can easily determine the difference between an MP3 file and an OGG file. 2. Is there a simple header with bitrate information etc. encoded in the header? If someone could let me know of a doc with info on the header, I'd really appreciate it. I need info li...
2007 Apr 18
2
libswfdec/jpeg
libswfdec/jpeg/jpeg_rgb_decoder.c | 1 - 1 files changed, 1 deletion(-) New commits: diff-tree 15ed4a69b4ffc265fe103ba79a0b60af7e42a9fa (from 2073f39bc0b0aa90f1f67def9bb3f0c6b68018ae) Author: Benjamin Otte <otte@gnome.org> Date: Wed Apr 18 10:47:06 2007 +0200 remove leftover debugging statement diff --git a/libswfdec/jpeg/jpeg_rgb_decoder.c b/libswfdec/jpeg/jpeg_rgb_decoder.c
2007 Feb 13
0
libswfdec/jpeg libswfdec/swfdec_image.c
...+ OIL_DEBUG ("start of frame (baseline DCT)"); length = get_be_u16 (bits); bits->end = bits->ptr + length - 2; @@ -229,8 +233,9 @@ jpeg_decoder_sof_baseline_dct (JpegDecod dec->width = get_be_u16 (bits); dec->n_components = get_u8 (bits); - JPEG_DEBUG ("frame_length=%d depth=%d height=%d width=%d n_components=%d", - length, dec->depth, dec->height, dec->width, dec->n_components); + OIL_DEBUG ( + "frame_length=%d depth=%d height=%d width=%d n_components=%d", length, + dec->depth, dec->height, dec->width, dec-&...
2007 Apr 17
0
8 commits - configure.ac doc/Makefile.am libswfdec/jpeg libswfdec/swfdec_debug.h libswfdec/swfdec_image.c
...DCT */ + max_quant_table = 0; + if (dec->depth < 2 || dec->depth > 16) { + SWFDEC_ERROR("depth must be between 2 and 16 (%d)", dec->depth); + dec->error = TRUE; + } + break; + default: + break; + } - OIL_DEBUG ( - "frame_length=%d depth=%d height=%d width=%d n_components=%d", length, - dec->depth, dec->height, dec->width, dec->n_components); + if (dec->n_components < 0 || dec->n_components > 255) { + SWFDEC_ERROR("n_components must be in the range 0-255 (%d)", + dec-&...