Decode standard Panasonic DC-S1 and DC-S1R files (pixelshift files are not supported yet), #5204

This commit is contained in:
Ingo Weyrich
2019-11-06 14:40:05 +01:00
parent a2d5ef356c
commit e12b58cfcf
3 changed files with 191 additions and 0 deletions

View File

@@ -411,6 +411,21 @@ private:
unsigned encoding;
};
class pana_cs6_page_decoder
{
unsigned int pixelbuffer[14], lastoffset, maxoffset;
unsigned char current, *buffer;
public:
pana_cs6_page_decoder(unsigned char *_buffer, unsigned int bsize)
: lastoffset(0), maxoffset(bsize), current(0), buffer(_buffer)
{
}
void read_page(); // will throw IO error if not enough space in buffer
unsigned int nextpixel() { return current < 14 ? pixelbuffer[current++] : 0; }
};
void panasonicC6_load_raw();
void panasonicC7_load_raw();
void canon_rmf_load_raw();
void panasonic_load_raw();
void olympus_load_raw();