camerauis/cameraapp/generic/src/cameracontroller/camimagedecoder.cpp
branchRCL_3
changeset 20 38fb6f7eacd5
parent 12 8c55c525d5d7
child 31 8f559c47d7fd
equal deleted inserted replaced
18:51dda465e618 20:38fb6f7eacd5
   317     case KErrNone :
   317     case KErrNone :
   318       {
   318       {
   319       // CImageDecoder has finished using the data,
   319       // CImageDecoder has finished using the data,
   320       // so we are able to free it.
   320       // so we are able to free it.
   321       SetImageData( NULL );
   321       SetImageData( NULL );
   322       iObserver.ImageDecoded( iStatus.Int(), iDecodedBitmap, iDecodedMask );
   322       iObserver.ImageDecodedL( iStatus.Int(), iDecodedBitmap, iDecodedMask );
   323       break;
   323       break;
   324       }
   324       }
   325     case KErrUnderflow :
   325     case KErrUnderflow :
   326       {
   326       {
   327       // Decoder did not have enough data to convert.
   327       // Decoder did not have enough data to convert.
   362   PRINT1( _L("Camera => CCamImageDecoder::RunError(%d)"), aError );
   362   PRINT1( _L("Camera => CCamImageDecoder::RunError(%d)"), aError );
   363 
   363 
   364   SetImageData( NULL );
   364   SetImageData( NULL );
   365   // Leave has occurred in RunL.
   365   // Leave has occurred in RunL.
   366   // Notify observer with error.
   366   // Notify observer with error.
   367   iObserver.ImageDecoded( aError, NULL, NULL );
   367   TRAP_IGNORE(iObserver.ImageDecodedL( aError, NULL, NULL ));
   368 
   368 
   369   PRINT( _L("Camera <= CCamImageDecoder::RunError") );
   369   PRINT( _L("Camera <= CCamImageDecoder::RunError") );
   370   return KErrNone;
   370   return KErrNone;
   371   }
   371   }
   372 
   372