--- a/imagehandlingutilities/thumbnailmanager/plugins/image/src/thumbnailimageprovider.cpp Tue Aug 31 15:30:59 2010 +0300
+++ b/imagehandlingutilities/thumbnailmanager/plugins/image/src/thumbnailimageprovider.cpp Wed Sep 01 12:20:35 2010 +0100
@@ -25,11 +25,6 @@
#include "thumbnailmanageruids.hrh"
#include "thumbnaillog.h"
#include "thumbnailmanagerconstants.h"
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "thumbnailimageproviderTraces.h"
-#endif
-
#ifndef IMPLEMENTATION_PROXY_ENTRY
typedef TAny* TProxyNewLPtr;
@@ -60,7 +55,6 @@
CThumbnailImageProvider::CThumbnailImageProvider()
{
TN_DEBUG1( "CThumbnailImageProvider::CThumbnailImageProvider()" );
- OstTrace0( TRACE_NORMAL, CTHUMBNAILIMAGEPROVIDER_CTHUMBNAILIMAGEPROVIDER, "CThumbnailImageProvider::CThumbnailImageProvider" );
}
@@ -72,7 +66,6 @@
CThumbnailImageProvider::~CThumbnailImageProvider()
{
TN_DEBUG1( "CThumbnailImageProvider::~CThumbnailImageProvider()" );
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILIMAGEPROVIDER_CTHUMBNAILIMAGEPROVIDER, "CThumbnailImageProvider::~CThumbnailImageProvider" );
delete iImageDecoder;
iImageDecoder = NULL;
delete iImageDecoderv2;
@@ -91,7 +84,6 @@
const TDisplayMode /*aDisplayMode*/, const CThumbnailManager::TThumbnailQualityPreference aQualityPreference )
{
TN_DEBUG1( "CThumbnailImageProvider::GetThumbnailL() start" );
- OstTrace0( TRACE_NORMAL, CTHUMBNAILIMAGEPROVIDER_GETTHUMBNAILL, "CThumbnailImageProvider::GetThumbnailL - start" );
if ( !iImageDecoder )
{
@@ -103,24 +95,12 @@
iQualityPreference = aQualityPreference;
//set default mode displaymode from global constants
iDisplayMode = KStoreDisplayMode;
-
-//Symbian^4 specific
- if ( KJpegMime() != iMimeType.Des8() )
- {
- iDisplayMode = EColor16M;
- }
-
-//TODO currently only ARM platforms supports MAP mode
-#if !(defined(__CC_ARM) || defined(__ARMCC__))
- iDisplayMode = EColor16M;
-#endif
-
+
iImageDecoder->CreateL( aFile, *iObserver, iQualityPreference, iMimeType, iTargetSize );
iOriginalSize = iImageDecoder->OriginalSize();
iImageDecoder->DecodeL( iDisplayMode, iFlags );
TN_DEBUG1( "CThumbnailImageProvider::GetThumbnailL() end" );
- OstTrace0( TRACE_NORMAL, DUP1_CTHUMBNAILIMAGEPROVIDER_GETTHUMBNAILL, "CThumbnailImageProvider::GetThumbnailL - end" );
}
// ---------------------------------------------------------------------------
@@ -133,7 +113,6 @@
const TDisplayMode /*aDisplayMode*/, const CThumbnailManager::TThumbnailQualityPreference aQualityPreference )
{
TN_DEBUG1( "CThumbnailImageProvider::GetThumbnailL() start" );
- OstTrace0( TRACE_NORMAL, DUP2_CTHUMBNAILIMAGEPROVIDER_GETTHUMBNAILL, "CThumbnailImageProvider::GetThumbnailL - start" );
if ( !iImageDecoder )
{
@@ -145,24 +124,12 @@
iQualityPreference = aQualityPreference;
//set default mode displaymode from global constants
iDisplayMode = KStoreDisplayMode;
-
-//Symbian^4 specific
- if ( KJpegMime() != iMimeType.Des8() )
- {
- iDisplayMode = EColor16M;
- }
-
-//TODO currently only ARM platforms supports MAP mode
-#if !(defined(__CC_ARM) || defined(__ARMCC__))
- iDisplayMode = EColor16M;
-#endif
-
+
iImageDecoder->CreateL( aBuffer, *iObserver, iQualityPreference, iMimeType, iTargetSize );
iOriginalSize = iImageDecoder->OriginalSize();
iImageDecoder->DecodeL( iDisplayMode, iFlags );
TN_DEBUG1( "CThumbnailImageProvider::GetThumbnailL() end" );
- OstTrace0( TRACE_NORMAL, DUP3_CTHUMBNAILIMAGEPROVIDER_GETTHUMBNAILL, "CThumbnailImageProvider::GetThumbnailL - end" );
}
// ---------------------------------------------------------------------------
@@ -173,7 +140,6 @@
void CThumbnailImageProvider::GetThumbnailL( RFs& aFs, TDesC8& aBuffer)
{
TN_DEBUG1( "CThumbnailImageProvider::GetThumbnailL() start" );
- OstTrace0( TRACE_NORMAL, DUP4_CTHUMBNAILIMAGEPROVIDER_GETTHUMBNAILL, "CThumbnailImageProvider::GetThumbnailL - start" );
if ( !iImageDecoderv2 )
{
@@ -185,7 +151,6 @@
iImageDecoderv2->DecodeL();
TN_DEBUG1( "CThumbnailImageProvider::GetThumbnailL() end" );
- OstTrace0( TRACE_NORMAL, DUP5_CTHUMBNAILIMAGEPROVIDER_GETTHUMBNAILL, "CThumbnailImageProvider::GetThumbnailL - end" );
}
// ---------------------------------------------------------------------------