×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    45

    C5 and CameraWrapper - EErrAutoFocusMode

    The CameraWapper example does not work with the nokia C5.

    After some experimentation I have found the problem and a crude work-around.
    Looking at the CameraEngine src https://projects.developer.nokia.com...4381424ddd62ba
    you will see on line 338 iAdvSettings->SetFocusMode( defaultAFMode );
    Code:
    320	void CCameraEnginePrivate::PowerOnComplete( TInt aError )
    321	  {
    322	  iCameraReserved = (aError == KErrNone) ? ETrue : EFalse;
    323	 
    324	  if( !iCameraReserved )
    325	    {
    326	    iObserver->MceoHandleError(EErrPowerOn, aError);
    327	    return;
    328	    }
    329	   
    330	   // Init AF
    331	#if !defined(__WINS__)
    332	  if( iAdvSettings )
    333	    {
    334	    CCamera::CCameraAdvancedSettings::TFocusMode defaultAFMode =
    335	      CCamera::CCameraAdvancedSettings::EFocusModeAuto;
    336	    if( iAdvSettings->SupportedFocusModes() & defaultAFMode )
    337	      {
    338	      iAdvSettings->SetFocusMode( defaultAFMode );
    339	      }
    340	    }
    341	  else if( iAutoFocus )
    342	    {
    343	    TRAPD( afErr, iAutoFocus->InitL( *this ) );
    344	    if( afErr )
    345	      {
    346	      delete iAutoFocus;
    347	      iAutoFocus = 0;
    348	      }
    349	    }
    350	#endif
    351	 
    352	  iEngineState = EEngineIdle;
    353	  iObserver->MceoCameraReady();
    354	  }
    This line results in the EErrAutoFocusMode event being generated. On line 353 the call to MceoCameraReady() is made...

    My work around is to move all the code from MceoCameraReady() into the EErrAutoFocusMode handler. The C5 can then take photo's.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: C5 and CameraWrapper - EErrAutoFocusMode

    You might also want to supply a bug report on this one.

Similar Threads

  1. QT App with CameraWrapper
    By hugolima in forum [Closed] Publishing to Nokia Store
    Replies: 1
    Last Post: 2011-02-04, 08:11
  2. CameraWrapper Prepare Error -5
    By chandran.biju007 in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2010-05-18, 12:08
  3. CameraWrapper burst mode
    By chandran.biju007 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2010-05-14, 17:12
  4. Using CameraWrapper on 5th edition
    By Legendus in forum Symbian
    Replies: 11
    Last Post: 2009-11-08, 00:27
  5. CameraWrapper and Viewfinder Buffering
    By NevenS in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2009-11-06, 13:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×