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

« back to all changes in this revision

Viewing changes to src/external/rawspeed/RawSpeed/Rw2Decoder.cpp

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2012-07-27 06:59:38 UTC
  • mfrom: (8.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120727065938-8691rjluecif4nyy
* New upstream release
  - Update to RawSpeed r438
  - Update to LibRaw 0.14.7
  - White balance presets for Nikon Coolpix P7100 and Panasonic GF3
  - White balance preset updates for Canon EOS 7D, Canon EOS 350D
  - Standard Color Matrices for Canon EOS 650D, Canon EOS 5D Mark III,
    Canon EOS 1D X, Canon PowerShot G1 X, Canon PowerShot SX220, Nikon
    D3200, Nikon D4, Nikon D800, Olympus E-M5, Panasonic GF5, Sony
    SLT-A37/A57, Leica X1/X2, Sony DSC-RX100
* Build with libtiff5 (Closes: #682588).
* Switch to debhelper compat 9, for hardening support

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
  }
165
165
}
166
166
 
167
 
void Rw2Decoder::checkSupport(CameraMetaData *meta) {
 
167
void Rw2Decoder::checkSupportInternal(CameraMetaData *meta) {
168
168
  vector<TiffIFD*> data = mRootIFD->getIFDsWithTag(MODEL);
169
169
  if (data.empty())
170
170
    ThrowRDE("RW2 Support check: Model name found");
175
175
    this->checkCameraSupported(meta, make, model, "");
176
176
}
177
177
 
178
 
void Rw2Decoder::decodeMetaData(CameraMetaData *meta) {
 
178
void Rw2Decoder::decodeMetaDataInternal(CameraMetaData *meta) {
179
179
  mRaw->cfa.setCFA(CFA_BLUE, CFA_GREEN, CFA_GREEN2, CFA_RED);
180
180
  vector<TiffIFD*> data = mRootIFD->getIFDsWithTag(MODEL);
181
181
 
182
182
  if (data.empty())
183
 
    ThrowRDE("CR2 Meta Decoder: Model name not found");
 
183
    ThrowRDE("RW2 Meta Decoder: Model name not found");
 
184
  if (!data[0]->hasEntry(MAKE))
 
185
    ThrowRDE("RW2 Support: Make name not found");
184
186
 
185
187
  string make = data[0]->getEntry(MAKE)->getString();
186
188
  string model = data[0]->getEntry(MODEL)->getString();