Displaying 1 result from an estimated 1 matches for "_compressedspeexbuffersize".
2011 Jun 02
1
Any tips for speeding up encoding on iPhone?
..., &
speexFrameSize);
// set quality parameter that controls the quality vs bit-rate tradeoff
UInt8 speexEncodingQuality = 10; // values from 0 to 10 (inclusively)
speex_encoder_ctl(speexEncoderState, SPEEX_SET_QUALITY,
&speexEncodingQuality);
// alloc the buffer
_compressedSpeexBufferSize = 1024;
_compressedSpeexBuffer = malloc(_compressedSpeexBufferSize);
}
- (void)freeSpeexEncoder {
speex_bits_destroy(&speexBits);
speex_encoder_destroy(speexEncoderState);
free(_compressedSpeexBuffer);
_compressedSpeexBufferSize = 0;
}
- (void)encodeThread {...