First of all, I'm a noob when it comes to modifying a phone but I managed to get my first phone done with no sweat. I was looking around like 3 forums and I saw something about how in the Camdriver0.dat it has something about a buffer for the picture and like percentage of the pic to degrade by to make it fit inside the buffer.
Code:// JPEG compression (Q scaling factor) tables for JPEG retry // // NOTE: OV provided "Normal" (08), "High" (10), "Fine" (04) // NOTE: Reserved Internal Registers for JPEG retry // REG_B: 1st Qs, REG_C: 2nd Qs, // REG_D: 3rd Qs, REG_E: last Qs, // REG_F: retry counter JPEG_Q_SCALE_NORMAL= $z0 $c0 01 $sb 06 $sc 0C $sd 14 $se 28 // VGA Q: 81, 62, 40, 20 $cl $c0 02 $sb 06 $sc 0C $sd 14 $se 28 // SXGA Q: 81, 62, 40, 20 $cl $c0 03 $sb 06 $sc 0C $sd 14 $se 28 // UXGA Q: 81, 62, 40, 20 $cl // not JPEG $cx $cx $cx; JPEG_Q_SCALE_FINE= $z0 $c0 01 $sb 01 $sc 02 $sd 04 $se 06 // VGA Q: 77, 64, 57, 21 $cl $c0 02 $sb 01 $sc 02 $sd 04 $se 06 // SXGA Q: 77, 64, 57, 21 $cl $c0 03 $sb 01 $sc 02 $sd 04 $se 06 // UXGA Q: 77, 64, 57, 21 $cl // not JPEG $cx $cx $cx; JPEG_Q_SCALE_NORMAL_XENON= $z0 $c0 01 $sb 0C $sc 10 $sd 28 $se 28 // VGA Q: 62, 50, 20, 20 $cl $c0 02 $sb 0C $sc 10 $sd 28 $se 28 // SXGA Q: 62, 50, 20, 20 $cl $c0 03 $sb 0C $sc 10 $sd 28 $se 28 // UXGA Q: 62, 50, 20, 20 $cl // not JPEG $cx $cx $cx; JPEG_Q_SCALE_FINE_XENON= $z0 $c0 01 $sb 0A $sc 10 $sd 28 $se 28 // VGA Q: 69, 50, 20, 20 $cl $c0 02 $sb 0A $sc 10 $sd 28 $se 28 // SXGA Q: 69, 50, 20, 20 $cl $c0 03 $sb 0A $sc 10 $sd 28 $se 28 // UXGA Q: 69, 50, 20, 20 $cl // not JPEG $cx $cx $cx;
Couldn't we beef up the buffer and change the percentage of degrading to make better pictures? I'm not totally sure but this was just an idea.Code:// all viewfinder (and video record) // modes are YUV422, Y1, U, Y2, V: cam_vf_format=E400; // Most capture modes are JPEG cam_ss_format=0001; cam_ss_format_4=E400; // this one is YUV422, Y1, U, Y2, V //-- JPEG buffer sizes (only used for ITP) // NOTE!!! these values were copied from Clara camera driver // TODO: get realistic values for OmniVision sensor cam_ss_jpeg_buf_size_1=249f0; // 250 KB buffer for 640x480 JPEG snap cam_ss_jpeg_buf_size_2=61A80; // 400 KB buffer for 1280x960 JPEG snap cam_ss_jpeg_buf_size_3=927C0; // 650 KB buffer for 1600x1200 JPEG snap
Thanks,
Buckley.


