21 #include <libopenraw/debug.h> 24 #include "orfcontainer.hpp" 26 using namespace Debug;
32 OrfContainer::OrfContainer(
const IO::Stream::Ptr &_file, off_t _offset)
33 : IfdFileContainer(_file, _offset), subtype_(0)
37 OrfContainer::~OrfContainer()
47 if ((p[0] ==
'I') && (p[1] ==
'I')) {
48 if ((p[2] ==
'R') && ((p[3] ==
'O') || (p[3] ==
'S'))) {
50 LOGDBG1(
"Identified EL ORF file. Subtype = %c\n", p[3]);
54 }
else if ((p[0] ==
'M') && (p[1] ==
'M')) {
55 if ((p[3] ==
'R') && ((p[2] ==
'O') || (p[2] ==
'S'))) {
57 LOGDBG1(
"Identified BE ORF file. Subtype = %c\n", p[2]);
63 LOGERR(
"Unidentified ORF file\n");
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.