×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Taking consecutive pictures with camera

    Hi,

    I've downloaded the sample Camera Example version 3 program and have been reading through the code to understand how it works.

    I've made a few modifications, such as removing autofocus (which I don't need) and am trying to get the program to take consecutive pictures (kind of like burst mode, which isn't supported in S60 3rd Edition FP1).

    I've modified the HandleKeyEventL function in the AppUI.cpp file as shown below:

    Code:
        
    switch ( aKeyEvent.iCode )
            {
            case EKeyOK:
            case EStdKeyDevice3:
                {  
                // Capture picture
                iPictures_Taken = 0;
                while(iPictures_Taken < KMax_Pictures)
                	{
                	iAppView->OfferKeyEventL();       	
                	iPictures_Taken++;
                	}
                return EKeyWasConsumed;
    where OfferKeyEventL() just does the following functions:

    Code:
    void CPicture_TakerAppView::OfferKeyEventL()
        { 
        StartFocusing();
        ReleaseBackBuffer();
        CreateBackBufferL();
        }
    The problem I'm experiencing is that the camera isn't in an IDLE state after the first picture is taken and when it tries to take subsequent pictures, I just get the error "Camera image ready error 18".

    Is there any method I can use to get the camera back into an IDLE mode or something similar to take subsequent pictures?

    If anyone can make any suggestions, it would be greatly appreciated.

    Quoc

    Edit: I'm using a Nokia N95 8GB phone as well.
    Last edited by QuocT; 2009-08-31 at 04:32. Reason: Extra comments

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

    Re: Taking consecutive pictures with camera

    you can not use it in a while loop. You should actually take a image, wait untill it has been taken and then take another one.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Re: Taking consecutive pictures with camera

    Thanks symbianyucca. I take it I'll just have to wait until it saves the image and call OfferKeyEventL() again to take more pictures. Or is there another method?

    Quoc

Similar Threads

  1. Replies: 1
    Last Post: 2008-12-12, 07:16
  2. Replies: 2
    Last Post: 2008-09-26, 18:40
  3. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  4. Replies: 0
    Last Post: 2004-03-10, 22:28
  5. pictures taken by the camera in 7650
    By ddhungry in forum Mobile Java General
    Replies: 2
    Last Post: 2003-03-24, 14:33

Posting Permissions

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