~ubuntu-branches/ubuntu/vivid/rawstudio/vivid

« back to all changes in this revision

Viewing changes to plugins/load-rawspeed/rawspeed/NefDecoder.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2011-07-28 17:36:32 UTC
  • mfrom: (2.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110728173632-5czluz9ye3c83zc5
Tags: 2.0-1
* [3750b2cf] Merge commit 'upstream/2.0'
* [63637468] Removing Patch, not necessary anymore.
* [2fb580dc] Add new build-dependencies.
* [c57d953b] Run dh_autoreconf due to patches in configure.in
* [13febe39] Add patch to remove the libssl requirement.
* [5ae773fe] Replace libjpeg62-dev by libjpeg8-dev :)
* [1969d755] Don't build static libraries.
* [7cfe0a2e] Add a patch to fix the plugin directory path.
  As plugins are shared libraries, they need to go into /usr/lib,
  not into /usr/share.
  Thanks to Andrew McMillan
* [c1d0d9dd] Don't install .la files for all plugins and libraries.

Show diffs side-by-side

added added

removed removed

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