search for: inputsize

Displaying 9 results from an estimated 9 matches for "inputsize".

Did you mean: input_size
2011 Nov 16
2
Just getting noise
...me code so that the state is created in the constructor and destroyed in the destructor of the object. However I'm still getting the same issue although I'm sure that would have bit me sooner or later. The new code is as follows. virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize, size_t& outputSize) { short *in=(short*)inputBuffer; float *input = new float[(inputSize/2)](); int nbBytes; int i; for (i=0;i<(inputSize/2);i++) { input[i]=in[i]; } /*Flush all the bits in the struct so we can encode a new frame*/ speex_bits_reset(&am...
2011 Nov 16
2
Just getting noise
...are the functions I'm using. The audio data is from OpenAL and is 16000 frequency, 16bits, and the frames being passed to the included functions are 640 bytes which if my math is right (very well may not be) that is 20ms. ? ? ? ? ? ? ? ?virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize, size_t& outputSize) ? ? ? ? ? ? ? ?{ ? ? ? ? ? ? ? ? ? ? ? ?short *in=(short*)inputBuffer; ? ? ? ? ? ? ? ? ? ? ? ?float *input = new float[(inputSize/2)](); ? ? ? ? ? ? ? ? ? ? ? ?int nbBytes; ? ? ? ? ? ? ? ? ? ? ? ?/*Holds the state of the encoder*/ ? ? ? ? ? ? ? ? ? ? ? ?void *state; ? ? ? ?...
2011 Nov 17
1
Just getting noise
...eatly simplifies my code I'm not sure why the sample I was working off of was converting the shorts to floats then calling the other encode/decode methods. Based off of your suggestions I tried the following but I get the same result. virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize, size_t& outputSize) { speex_bits_reset(&mBits); speex_encode_int(mState, (Enigma::s16*)inputBuffer, &mBits); speex_bits_insert_terminator(&mBits); outputSize = speex_bits_nbytes(&mBits); /*Copy the bits to an array of char that can be written*/ Enigma::u8*...
2011 Nov 16
0
Just getting noise
...created in the > constructor and destroyed in the destructor of the object. However I'm > still getting the same issue although I'm sure that would have bit me > sooner or later. > The new code is as follows. > > virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize, > size_t& outputSize) > { > short *in=(short*)inputBuffer; > float *input = new float[(inputSize/2)](); > int nbBytes; > int i; > > for (i=0;i<(inputSize/2);i++) > { > input[i]=in[i]; > } > > /*Flush all the bits in t...
2011 Nov 16
0
Just getting noise
...ng. The audio data is from OpenAL and is > 16000 frequency, 16bits, and the frames being passed to the included > functions are 640 bytes which if my math is right (very well may not > be) that is 20ms. > > virtual Enigma::u8* Encode(Enigma::u8* > inputBuffer,size_t inputSize, > size_t& outputSize) > { > short *in=(short*)inputBuffer; > float *input = new float[(inputSize/2)](); > int nbBytes; > /*Holds the state of the encoder*/ >...
2004 Nov 22
1
Layout Issue ...
...d. # CODE STARTS HERE .... require ''wxruby'' class TestApp < Wx::App def on_init @frame = Wx::Frame.new( nil, -1, "Test", Wx::DEFAULT_POSITION ) @panel = Wx::Panel.new( @frame ) @topSizer = Wx::FlexGridSizer.new( 1, 3 ) @topSizer.add( createInputSizer(), 1, Wx::GROW|Wx::ALL, 2 ) @topSizer.add( createGridSizer(), 1, Wx::GROW|Wx::ALL, 2 ) @topSizer.add( createButtonSizer(), 1, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALL, 2 ) @panel.set_sizer( @topSizer ) @topSizer.fit( @frame ) @frame.show self.main_loop end de...
2015 Jul 06
5
[LLVMdev] Why can't comparisons with negative zero be simplified?
...nstCombineCompares.cpp, routine InstCombiner::FoldFCmp_IntToFP_Cst, there are these lines: // Comparisons with zero are a special case where we know we won't lose // information. bool IsCmpZero = RHS.isPosZero(); // If the conversion would lose info, don't hack on this. if ((int)InputSize > MantissaWidth && !IsCmpZero) return nullptr; Why check for positive zero instead of checking for any kind of zero? My reading of IEEE 754-2008 is that floating-point comparison operations cannot distinguish a negative zero from a positive zero. Further supporting this is that fa...
2005 Jul 20
1
Speex Windows from 1.1.6 source
...tputSize); return iEncBytes; /**************** Decode ******************/ /* Flush all the bits in the struct so we can code a new frame */ speex_bits_reset(&Decbits); /* Copy the data into the bit-stream struct */ speex_bits_read_from(&Decbits, InputBuf, InputSize); /* Get the Size of the Decoded Frame */ speex_decoder_ctl(decState, SPEEX_GET_FRAME_SIZE, &iDecBytes); if(iIndex > outputSize) return -1; iIndex = iDecBytes/sizeof(short); /* Allocate the Decode Frame */ memset(pfDecBuf,0,sizeof(200 * sizeof(float))); /* D...
2012 Feb 13
10
[RFB] add LZ4 compression method to btrfs
Hi, so here it is, LZ4 compression method inside btrfs. The patchset is based on top of current Chris'' for-linus + Andi''s snappy implementation + the fixes from Li Zefan. Passes xfstests and stresstests. I haven''t measured performance on wide range of hardware or workloads, rather wanted to publish the patches before I get distracted again. I''d like to ask