equal
deleted
inserted
replaced
566 CleanupStack::PopAndDestroy( data ); |
566 CleanupStack::PopAndDestroy( data ); |
567 CleanupStack::PopAndDestroy( content ); |
567 CleanupStack::PopAndDestroy( content ); |
568 CleanupStack::PopAndDestroy( &file ); |
568 CleanupStack::PopAndDestroy( &file ); |
569 |
569 |
570 CleanupStack::PushL( readBuffer ); |
570 CleanupStack::PushL( readBuffer ); |
571 |
571 TRACE_FUNC_EXIT; |
572 return readBuffer; |
572 return readBuffer; |
573 } |
573 } |
574 |
574 |
575 // ----------------------------------------------------------------------------- |
575 // ----------------------------------------------------------------------------- |
576 // SConMetadata::ReadExifDataL() |
576 // SConMetadata::ReadExifDataL() |
1021 { |
1021 { |
1022 numer = 0; |
1022 numer = 0; |
1023 denom = 0; |
1023 denom = 0; |
1024 Mem::Copy(&numer, ratData + ((y * 2) * sizeof(numer)), sizeof(numer)); |
1024 Mem::Copy(&numer, ratData + ((y * 2) * sizeof(numer)), sizeof(numer)); |
1025 Mem::Copy(&denom, ratData + (((y * 2) + 1) * sizeof(numer)), sizeof(denom)); |
1025 Mem::Copy(&denom, ratData + (((y * 2) + 1) * sizeof(numer)), sizeof(denom)); |
1026 |
1026 if (denom != 0) |
1027 if ( y == 0 )// degrees |
1027 { |
1028 { |
1028 if ( y == 0 )// degrees |
1029 degrees = numer/denom; |
1029 { |
1030 } |
1030 degrees = numer/denom; |
1031 else if ( y == 1 )// minutes |
1031 } |
1032 { |
1032 else if ( y == 1 )// minutes |
1033 minutes = numer/denom; |
1033 { |
1034 } |
1034 minutes = numer/denom; |
1035 else if ( y == 2 )// seconds |
1035 } |
1036 { |
1036 else if ( y == 2 )// seconds |
1037 seconds = numer/denom; |
1037 { |
1038 } |
1038 seconds = numer/denom; |
|
1039 } |
|
1040 } |
1039 } |
1041 } |
1040 _LIT(KFormat, "%.0f°%.0f'%.2f\"" ); |
1042 _LIT(KFormat, "%.0f°%.0f'%.2f\"" ); |
1041 aPosDegrees.Format( KFormat, degrees, minutes, seconds ); |
1043 aPosDegrees.Format( KFormat, degrees, minutes, seconds ); |
1042 TRACE_FUNC_EXIT; |
1044 TRACE_FUNC_EXIT; |
1043 return KErrNone; |
1045 return KErrNone; |