22 #include <libopenraw/cameraids.h>
25 #include "rawfile_private.hpp"
26 #include "erffile.hpp"
28 using namespace Debug;
37 static const BuiltinColourMatrix s_matrices[] = {
38 { OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_EPSON, OR_TYPEID_EPSON_RD1), 0, 0,
39 { 6827,-1878,-732,-8429,16012,2564,-704,592,7145 } },
40 { OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_EPSON, OR_TYPEID_EPSON_RD1S), 0, 0,
41 { 6827,-1878,-732,-8429,16012,2564,-704,592,7145 } },
42 { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
45 const IfdFile::camera_ids_t ERFFile::s_def[] = {
46 {
"R-D1", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_EPSON,
47 OR_TYPEID_EPSON_RD1) },
48 {
"R-D1s", OR_MAKE_FILE_TYPEID(OR_TYPEID_VENDOR_EPSON,
49 OR_TYPEID_EPSON_RD1S) }, { 0, 0 }
52 RawFile *ERFFile::factory(
const IO::Stream::Ptr &s)
54 return new ERFFile(s);
57 ERFFile::ERFFile(
const IO::Stream::Ptr &s)
58 : TiffEpFile(s, OR_RAWFILE_TYPE_ERF)
61 _setMatrices(s_matrices);
71 const IfdDir::Ref & _cfaIfd =
cfaIfd();
76 err = OR_ERROR_NOT_FOUND;