harvester/common/src/harvesterexifutil.cpp
branchRCL_3
changeset 9 82c0024438c8
parent 6 646a02f170b9
child 18 63c982fb92f2
equal deleted inserted replaced
8:50de4d668bb6 9:82c0024438c8
  1815         {
  1815         {
  1816         WRITELOG( "CHarvesterExifUtil::ReadGPSLatitudeL() - GPS Altitude found" );
  1816         WRITELOG( "CHarvesterExifUtil::ReadGPSLatitudeL() - GPS Altitude found" );
  1817     
  1817     
  1818         const CExifTag* refTag = aReader->GetTagL(
  1818         const CExifTag* refTag = aReader->GetTagL(
  1819                 EIfdGps, KIdGpsAltitudeRef );
  1819                 EIfdGps, KIdGpsAltitudeRef );
  1820         TBuf8<1> altitudeRef = refTag->Data();
  1820         TBuf8<2> altitudeRef = refTag->Data();
  1821         const CExifTag* altitudeTag = aReader->GetTagL(
  1821         const CExifTag* altitudeTag = aReader->GetTagL(
  1822                 EIfdGps, KIdGpsAltitude );
  1822                 EIfdGps, KIdGpsAltitude );
  1823         TBuf8<KAltitudeBufferSize> altitudeBuf = altitudeTag->Data();
  1823         TBuf8<KAltitudeBufferSize> altitudeBuf = altitudeTag->Data();
  1824         TInt32 altitude = MdsUtils::ToUInt32L(
  1824         TInt32 altitude = MdsUtils::ToUInt32L(
  1825                 CONST_CAST( TUint8*, altitudeBuf.Left(4).Ptr() ) );
  1825                 CONST_CAST( TUint8*, altitudeBuf.Left(4).Ptr() ) );