Another option that occurred to me when I was looking at the RLE bug last night was that the RLE concept could be extended to the X co-ordinate the same way it is applied to Y.The top three bits of the X co-ordinate would hold the number of Y values following -1 - so 0 means 1 Y value, etc.This would be backwards compatible with existing badpixel.bin files and fairly easy to implement.
It may not save as much space as your method though.
This patch adds additional RLE compression on the X co-ordinate - up to 8 entries using the same co-ordinate can be compressed, with the length in the top 3 bits.
On my G12, with 2,486 bad pixels, it reduces the badpixel.bin file size from 9,868 to 8,500 bytes.On my IXUS310 (68,498 bad pixels), the file size drops from 153,180 to 89,686 bytes.
The code should be compatible with existing badpixel.bin files for patching bad pixels during image capture.
QuoteThe code should be compatible with existing badpixel.bin files for patching bad pixels during image capture.If testing proves that, I see no reason not to add this to trunk. edit: Actually, I do see one. A CHDK downgrade to 1.2 on the card would made the badpixel file fail to work - unless the changes get backported.
I'll add this to SVN for both 1.2 & 1.3 soon.You're v5 results are looking very good - nicely done.
Started by matc General Discussion and Assistance
Started by wj906 Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by Gigi Treosei General Help and Assistance on using CHDK stable releases
Started by pickler General Help and Assistance on using CHDK stable releases
Started by reyalp General Discussion and Assistance