imagehandlingutilities/thumbnailmanager/plugins/audio/src/thumbnailimagedecoderv3.cpp
branchRCL_3
changeset 20 ffb2d5dd62e9
parent 11 dea39715fc05
child 24 f0aa341a25bf
equal deleted inserted replaced
16:85a88bc05e45 20:ffb2d5dd62e9
    91 // Decode the thumbnail image
    91 // Decode the thumbnail image
    92 // -----------------------------------------------------------------------------
    92 // -----------------------------------------------------------------------------
    93 //
    93 //
    94 void CThumbnailImageDecoderv3::DecodeL( const TDisplayMode aDisplayMode )
    94 void CThumbnailImageDecoderv3::DecodeL( const TDisplayMode aDisplayMode )
    95     {
    95     {
       
    96     TN_DEBUG1( "CThumbnailImageDecoderv3::DecodeL() start" );
       
    97     
    96     // Create the bitmap
    98     // Create the bitmap
    97     if ( !iBitmap )
    99     if ( !iBitmap )
    98         {
   100         {
    99         iBitmap = new( ELeave )CFbsBitmap();
   101         iBitmap = new( ELeave )CFbsBitmap();
   100         }
   102         }
   139         iBitmap = NULL;
   141         iBitmap = NULL;
   140         User::Leave(err);
   142         User::Leave(err);
   141         }
   143         }
   142     
   144     
   143     iDecoder->Convert( &iStatus, * iBitmap );
   145     iDecoder->Convert( &iStatus, * iBitmap );
   144     while ( iStatus == KErrUnderflow )
   146 
   145         {
       
   146         iDecoder->ContinueConvert( &iStatus );
       
   147         }
       
   148     SetActive();
   147     SetActive();
       
   148     
       
   149     TN_DEBUG1( "CThumbnailImageDecoderv3::DecodeL() end" );
   149     }
   150     }
   150 
   151 
   151 
   152 
   152 // -----------------------------------------------------------------------------
   153 // -----------------------------------------------------------------------------
   153 // CThumbnailImageDecoderv3::Release()
   154 // CThumbnailImageDecoderv3::Release()