El tama está quí:
if (mMsgEnabled & CAMERA_MSG_COMPRESSED_IMAGE) {
// mJpegSize = mRawWidth * mRawHeight * 3 / 2;
mJpegSize = 1718592;
if (LINK_jpeg_encoder_init()) {
if(native_jpeg_encode()) {
iLog("receiveRawPicture: X (success)");
return;
}
mjpegsize tiene que tener el tamaño exacto del jpeg capturado y procesado por la camara ( yo he puesto un valor al azar 1718592) mientras no ponga el real, no tendremos un fichero real.