camerauis/cameraapp/generic/src/cameracontroller/camcameracontroller.cpp
branchRCL_3
changeset 67 756ad29ed18e
parent 57 2c87b2808fd7
equal deleted inserted replaced
62:f0c0788c4de2 67:756ad29ed18e
  3717   // Try to get the best, still supported, snapshot format.
  3717   // Try to get the best, still supported, snapshot format.
  3718   iInfo.iSnapshotFormat         = ResolveSnapshotFormatL( params().iFormat );
  3718   iInfo.iSnapshotFormat         = ResolveSnapshotFormatL( params().iFormat );
  3719   iInfo.iSnapshotSize           = params().iSize;
  3719   iInfo.iSnapshotSize           = params().iSize;
  3720   iInfo.iSnapshotAspectMaintain = params().iMaintainAspect;
  3720   iInfo.iSnapshotAspectMaintain = params().iMaintainAspect;
  3721 
  3721 
  3722   if( iInfo.iSnapshotSize.iWidth%2 )
       
  3723     {
       
  3724     //Only even width parameter is accepted
       
  3725     iInfo.iSnapshotSize.iWidth++;
       
  3726     }
       
  3727   PRINT( _L("Camera <> Prepare snapshot..") );
  3722   PRINT( _L("Camera <> Prepare snapshot..") );
  3728   iSnapshotProvider->PrepareSnapshotL( iInfo.iSnapshotFormat,
  3723   iSnapshotProvider->PrepareSnapshotL( iInfo.iSnapshotFormat,
  3729                                        iInfo.iSnapshotSize,
  3724                                        iInfo.iSnapshotSize,
  3730                                        iInfo.iSnapshotAspectMaintain );
  3725                                        iInfo.iSnapshotAspectMaintain );
  3731 
  3726 
  4855       PRINT( _L("Camera <> CCamCameraController: event KUidECamEventCameraSettingAutoFocusType2 - first time, set iFirstAfEventReceived ") );
  4850       PRINT( _L("Camera <> CCamCameraController: event KUidECamEventCameraSettingAutoFocusType2 - first time, set iFirstAfEventReceived ") );
  4856       }
  4851       }
  4857     else
  4852     else
  4858       {
  4853       {
  4859       iFirstAfEventReceived = EFalse;
  4854       iFirstAfEventReceived = EFalse;
  4860       iAfInProgress = EFalse;
       
  4861       PRINT( _L("Camera <> CCamCameraController: event KUidECamEventCameraSettingAutoFocusType2 - second time") );
  4855       PRINT( _L("Camera <> CCamCameraController: event KUidECamEventCameraSettingAutoFocusType2 - second time") );
  4862       }
  4856       }
  4863     }
  4857     }
  4864   else
  4858   else
  4865     {
  4859     {