imagehandlingutilities/thumbnailmanager/plugins/image/src/thumbnailimagedecoder.cpp
branchRCL_3
changeset 16 85a88bc05e45
parent 11 dea39715fc05
child 20 ffb2d5dd62e9
equal deleted inserted replaced
13:ee674526fac5 16:85a88bc05e45
   551     else
   551     else
   552         {
   552         {
   553         reader = CExifRead::NewL( *iBuffer, CExifRead::ENoJpeg );
   553         reader = CExifRead::NewL( *iBuffer, CExifRead::ENoJpeg );
   554         }
   554         }
   555     
   555     
   556     
       
   557     CleanupStack::PushL( reader );
   556     CleanupStack::PushL( reader );
   558 
   557 
   559     iExifThumbImage = reader->GetThumbnailL();
   558     iExifThumbImage = reader->GetThumbnailL();
   560     CleanupStack::PopAndDestroy( reader );
   559     CleanupStack::PopAndDestroy( reader );
   561 
   560 
   589         {
   588         {
   590         TN_DEBUG2( "CThumbnailImageDecoder::CreateExifDecoderL() - CExtJpegDecoder err == %d", err );
   589         TN_DEBUG2( "CThumbnailImageDecoder::CreateExifDecoderL() - CExtJpegDecoder err == %d", err );
   591         User::LeaveIfError( err );
   590         User::LeaveIfError( err );
   592         }
   591         }
   593 
   592 
   594 /*
       
   595     // If the Exif thumbnail is smaller than requested it will not be used
       
   596     TFrameInfo frame = iDecoder->FrameInfo( 0 );
       
   597     
       
   598     if ( frame.iOverallSizeInPixels.iWidth < iSize.iWidth ||
       
   599         frame.iOverallSizeInPixels.iHeight < iSize.iHeight ) 
       
   600         {
       
   601         User::Leave( KErrGeneral );
       
   602         }
       
   603     */
       
   604     TN_DEBUG1( "CThumbnailImageDecoder::CreateExifDecoderL() end" );
   593     TN_DEBUG1( "CThumbnailImageDecoder::CreateExifDecoderL() end" );
   605     }
   594     }
   606 
   595 
   607 
   596 
   608 // -----------------------------------------------------------------------------
   597 // -----------------------------------------------------------------------------