~kubuntu-members/libkdcraw/4.11

« back to all changes in this revision

Viewing changes to libraw/internal/dcraw_common.cpp

  • Committer: Pino Toscano
  • Date: 2013-06-11 11:31:37 UTC
  • Revision ID: git-v1:e4d483ca78a2161ffefe7c0c6a0734166db47099
Tags: v4.10.80, v4.10.90
change the libraw include headers to be more like the external library

Show diffs side-by-side

added added

removed removed

Lines of Context:
5690
5690
#ifndef LIBRAW_LIBRARY_BUILD
5691
5691
  FILE *save=ifp;
5692
5692
#else
5693
 
#ifdef WIN32
 
5693
#if defined (WIN32) && !defined(__MINGW32__)
5694
5694
  if(ifp->wfname())
5695
5695
  {
5696
5696
          std::wstring rawfile(ifp->wfname());
5849
5849
      thumb_length = len;
5850
5850
    }
5851
5851
    if (type == 0x1818) {
5852
 
      shutter = pow (2, -int_to_float((get4(),get4())));
5853
 
      aperture = pow (2, int_to_float(get4())/2);
 
5852
      shutter = pow (2, (double)(-int_to_float((get4(),get4()))));
 
5853
      aperture = pow (2, (double)(int_to_float(get4())/2));
5854
5854
    }
5855
5855
    if (type == 0x102a) {
5856
5856
      iso_speed = pow (2, (get4(),get2())/32.0 - 4) * 50;