camerauis/cameraapp/generic/src/cameracontroller/camsnapshot.cpp
branchRCL_3
changeset 12 8c55c525d5d7
parent 0 1ddebce53859
child 20 38fb6f7eacd5
equal deleted inserted replaced
11:792dfc98fb3b 12:8c55c525d5d7
   437 // ---------------------------------------------------------------------------
   437 // ---------------------------------------------------------------------------
   438 // ImageDecoded <<virtual>>
   438 // ImageDecoded <<virtual>>
   439 // ---------------------------------------------------------------------------
   439 // ---------------------------------------------------------------------------
   440 //
   440 //
   441 void 
   441 void 
   442 CCamSnapshot::ImageDecoded( TInt aStatus, const CFbsBitmap* aBitmap )
   442 CCamSnapshot::ImageDecoded( TInt aStatus, const CFbsBitmap* aBitmap, const CFbsBitmap* /*aMask*/ )
   443   {
   443   {
   444   PRINT1( _L("Camera => CCamSnapshot::ImageDecoded, status in: %d"), aStatus );
   444   PRINT1( _L("Camera => CCamSnapshot::ImageDecoded, status in: %d"), aStatus );
   445   if( iSnapshotOn )
   445   if( iSnapshotOn )
   446     {
   446     {
   447     iStatus = aStatus;
   447     iStatus = aStatus;
   588   TRAP( aError, 
   588   TRAP( aError, 
   589     {
   589     {
   590     CFbsBitmap& bitmap = buffer->BitmapL( 0 );
   590     CFbsBitmap& bitmap = buffer->BitmapL( 0 );
   591     PRINT( _L("Camera <> Using bitmap data, just scale..") );
   591     PRINT( _L("Camera <> Using bitmap data, just scale..") );
   592     // Simulate that the bitmap has been decoded now.
   592     // Simulate that the bitmap has been decoded now.
   593     ImageDecoded( aError, &bitmap );
   593     ImageDecoded( aError, &bitmap, NULL );
   594     });
   594     });
   595 
   595 
   596   // If problems with bitmap data, try encoded data.
   596   // If problems with bitmap data, try encoded data.
   597   if( KErrNone != aError )
   597   if( KErrNone != aError )
   598     {    
   598     {