Add decoding through LibRaw

Decode raw files with LibRaw and fall back to dcraw if LibRaw is unable
to read the file.
This commit is contained in:
Lawrence Lee
2023-11-18 21:23:55 -08:00
parent 3f5c3988e5
commit 20d3311931
11 changed files with 669 additions and 101 deletions

View File

@@ -58,6 +58,9 @@ unsigned DCraw::pana_bits_t::operator() (int nbits, unsigned *bytes)
}
}
namespace
{
class pana_cs6_page_decoder
{
unsigned int pixelbuffer[14], lastoffset, maxoffset;
@@ -99,6 +102,8 @@ void pana_cs6_page_decoder::read_page()
}
#undef wbuffer
}
void DCraw::panasonic_load_raw()
{
int enc_blck_size = RT_pana_info.bpp == 12 ? 10 : 9;