Displaying 1 result from an estimated 1 matches for "processedbytes".
2011 Jun 02
1
Any tips for speeding up encoding on iPhone?
...;
speex_encode_int(speexEncoderState, _toCompressBuffer.data, &
speexBits); // without using extra buffer
UInt16 nbBytes = speex_bits_write(&speexBits,
_compressedSpeexBuffer, _compressedSpeexBufferSize);
NSLog(@"Ended encode");
static int processedBytes = 0;
processedBytes += speexFrameSize * sizeof(short);
NSLog(@"Processed bytes: %d", processedBytes);
if (nbBytes) {
// write to file
// first write the header (2 bytes)
// the header must contain...