camerauis/cameraapp/generic/src/cameracontroller/camsnapshot.cpp
branchRCL_3
changeset 13 38fb6f7eacd5
parent 10 8c55c525d5d7
equal deleted inserted replaced
12:51dda465e618 13:38fb6f7eacd5
     1 /*
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   433 
   433 
   434 // ===========================================================================
   434 // ===========================================================================
   435 // from MCamImageDecoderObserver
   435 // from MCamImageDecoderObserver
   436 
   436 
   437 // ---------------------------------------------------------------------------
   437 // ---------------------------------------------------------------------------
   438 // ImageDecoded <<virtual>>
   438 // ImageDecodedL <<virtual>>
   439 // ---------------------------------------------------------------------------
   439 // ---------------------------------------------------------------------------
   440 //
   440 //
   441 void 
   441 void 
   442 CCamSnapshot::ImageDecoded( TInt aStatus, const CFbsBitmap* aBitmap, const CFbsBitmap* /*aMask*/ )
   442 CCamSnapshot::ImageDecodedL( 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, NULL );
   593     ImageDecodedL( 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     {