~ubuntu-branches/ubuntu/saucy/darktable/saucy

« back to all changes in this revision

Viewing changes to src/external/rawspeed/RawSpeed/OrfDecoder.h

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2011-08-02 21:32:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110802213231-r9v63trgyk1e822j
Tags: 0.9.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ORF_DECODER_H
 
2
#define ORF_DECODER_H
 
3
 
 
4
#include "RawDecoder.h"
 
5
#include "LJpegPlain.h"
 
6
#include "TiffIFD.h"
 
7
#include "BitPumpPlain.h"
 
8
 
 
9
/* 
 
10
    RawSpeed - RAW file decoder.
 
11
 
 
12
    Copyright (C) 2009 Klaus Post
 
13
 
 
14
    This library is free software; you can redistribute it and/or
 
15
    modify it under the terms of the GNU Lesser General Public
 
16
    License as published by the Free Software Foundation; either
 
17
    version 2 of the License, or (at your option) any later version.
 
18
 
 
19
    This library is distributed in the hope that it will be useful,
 
20
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
22
    Lesser General Public License for more details.
 
23
 
 
24
    You should have received a copy of the GNU Lesser General Public
 
25
    License along with this library; if not, write to the Free Software
 
26
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
27
 
 
28
    http://www.klauspost.com
 
29
*/
 
30
 
 
31
namespace RawSpeed {
 
32
 
 
33
class OrfDecoder :
 
34
  public RawDecoder
 
35
{
 
36
public:
 
37
  OrfDecoder(TiffIFD *rootIFD, FileMap* file);
 
38
  virtual ~OrfDecoder(void);
 
39
  virtual RawImage decodeRaw();
 
40
  virtual void decodeMetaData(CameraMetaData *meta);
 
41
  virtual void checkSupport(CameraMetaData *meta);
 
42
private:
 
43
  void decodeCompressed(ByteStream& s,uint32 w, uint32 h);
 
44
  TiffIFD *mRootIFD;
 
45
};
 
46
 
 
47
} // namespace RawSpeed
 
48
 
 
49
#endif