22#include <libopenraw/cameraids.h>
25#include "rawfile_private.hpp"
37static 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 } }
45const 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 }
52RawFile *ERFFile::factory(
const IO::Stream::Ptr &s)
54 return new ERFFile(s);
57ERFFile::ERFFile(
const IO::Stream::Ptr &s)
58 : TiffEpFile(s, OR_RAWFILE_TYPE_ERF)
61 _setMatrices(s_matrices);
68::or_error ERFFile::_getRawData(
RawData & data, uint32_t )
71 const IfdDir::Ref & _cfaIfd = cfaIfd();
73 err = _getRawDataFromDir(data, _cfaIfd);
76 err = OR_ERROR_NOT_FOUND;
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard....