libopenraw
mrwfile.h
1 /*
2  * libopenraw - mrwfile.h
3  *
4  * Copyright (C) 2006-2008 Hubert Figuiere
5  * Copyright (C) 2008 Bradley Broom
6  *
7  * This library is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation, either version 3 of
10  * the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library. If not, see
19  * <http://www.gnu.org/licenses/>.
20  */
21 
22 
23 
24 
25 #ifndef __MRWFILE_H_
26 #define __MRWFILE_H_
27 
28 #include "ifdfile.h"
29 
30 namespace OpenRaw {
31 
32  class Thumbnail;
33 
34  namespace Internals {
35 
36  class MRWFile
37  : public IFDFile
38  {
39  public:
40  static RawFile *factory(IO::Stream* _filename);
41  MRWFile(IO::Stream* _filename);
42  virtual ~MRWFile();
43 
44  protected:
45  virtual IFDDir::Ref _locateCfaIfd();
46  virtual IFDDir::Ref _locateMainIfd();
47 
48  virtual void _identifyId();
49 
50  virtual ::or_error _enumThumbnailSizes(std::vector<uint32_t> &list);
51  virtual ::or_error _getThumbnail(uint32_t size, Thumbnail & thumbnail);
52  virtual ::or_error _getRawData(RawData & data, uint32_t options);
53 
54  private:
55 
56  MRWFile(const MRWFile&);
57  MRWFile & operator=(const MRWFile&);
58 
59  static const struct IFDFile::camera_ids_t s_def[];
60  };
61  }
62 
63 }
64 
65 #endif
CIFF is the container for CRW files. It is an attempt from Canon to make this a standard. I guess it failed.
Definition: arwfile.cpp:33
virtual ::or_error _getThumbnail(uint32_t size, Thumbnail &thumbnail)
Definition: mrwfile.cpp:122
RawFile(IO::Stream *s, Type _type)
Definition: rawfile.cpp:278
virtual ::or_error _enumThumbnailSizes(std::vector< uint32_t > &list)
Definition: mrwfile.cpp:113
virtual ::or_error _getRawData(RawData &data, uint32_t options)
Definition: mrwfile.cpp:190