Recent Samsung models started putting out the "less" normal DNGs - the ljpeg compression is not a single stream, but has restart markers, don't know if LibRaw supports that...
"Only Bayer-pattern RAW files supported, sorry...."
Recent Samsung DNGs are not CFA, but "enhanced" 3-channel LinerRaw (like recent Apple iPhone ProRAW), and w/ ljpeg compression using restart markers...
Also: the message you quoted is from unprocessed_raw sample code. This sample, yes, supports bayer only (we're open to patches if someone want to complete this sample)
AFAIK, Samsung phones records
AFAIK, Samsung phones records more-or-less (*) normal DNG, so already supported
(*) some DNG files from latest Samsung devices contains incorrect thumnail data (while RAW data is OK)
-- Alex Tutubalin @LibRaw LLC
Recent Samsung models started
Recent Samsung models started putting out the "less" normal DNGs - the ljpeg compression is not a single stream, but has restart markers, don't know if LibRaw supports that...
The discussion will only make
The discussion will only make sense if specific problematic files are included.
At the moment, we do not have a single example of a file from Samsung on which RAW data would not be unpacked by LibRaw.
-- Alex Tutubalin @LibRaw LLC
See https://raw.pixls.us for
See https://raw.pixls.us for samples. LibRaw stops w/
"Only Bayer-pattern RAW files supported, sorry...."
Recent Samsung DNGs are not CFA, but "enhanced" 3-channel LinerRaw (like recent Apple iPhone ProRAW), and w/ ljpeg compression using restart markers...
Could you please provide
Could you please provide specific file link, not entire archive?
-- Alex Tutubalin @LibRaw LLC
Followup: I do not see any
Followup: I do not see any decoding problems with this file: https://raw.pixls.us/getfile.php/6433/nice/Samsung%20-%20Galaxy%20S23%20...
(as expected: we have several samples from latest Samsungs and no known problems w/ raw decoding)
Checked with dcraw_emu [filename]
-- Alex Tutubalin @LibRaw LLC
Also: the message you quoted
Also: the message you quoted is from unprocessed_raw sample code. This sample, yes, supports bayer only (we're open to patches if someone want to complete this sample)
-- Alex Tutubalin @LibRaw LLC
Thanks, so unpacking works,
Thanks, so unpacking works, it's writing out to TIFF/PPM that doesn't.
dcraw_emu records tiff/ppm
dcraw_emu records tiff/ppm without problems.
unprocessed_raw sample code (not the library itself, but sample!) supports bayer only.
-- Alex Tutubalin @LibRaw LLC
Good to know, thanks.
Good to know, thanks.