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:
where OfferKeyEventL() just does the following functions:Code:switch ( aKeyEvent.iCode ) { case EKeyOK: case EStdKeyDevice3: { // Capture picture iPictures_Taken = 0; while(iPictures_Taken < KMax_Pictures) { iAppView->OfferKeyEventL(); iPictures_Taken++; } return EKeyWasConsumed;
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".Code:void CPicture_TakerAppView::OfferKeyEventL() { StartFocusing(); ReleaseBackBuffer(); CreateBackBufferL(); }
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.

Reply With Quote

