Hi Wizard,
Yes. It has been initialized as follows
iCameraWrapper->Camera()->CameraInfo(camInfo);
The format supported i get is
CCamera::EFormatFbsBitmapColor16M;
And
Code:
void CCamProfileContainer::MceoCameraReady()
{
UseCaptureBackCbaL();
if (iCameraWrapper->State() == CCameraEngine::EEngineIdle)
{
// Prepare camera
//TRAPD(err,iCameraWrapper->PrepareL(iCaptureSize));
iCameraWrapper->Camera()->CameraInfo(camInfo);
CCamera::TFormat format = ImageFormatMax(camInfo);
TRAPD(err,iCameraWrapper->PrepareL(iCaptureSize,format));
if (err)
{
SetError(_L("Camera prepare error %d"), err);
return;
}
// Start viewfinder. Viewfinder pictures starts coming into MceoViewFinderFrameReady();
TRAPD(err2,iCameraWrapper->StartViewFinderL(iViewFinderSize));
if (err2)
{
SetError(_L("Camera start viewfinder error %d"), err2);
return;
}
SetTitle(_L("Camera viewfinder"));
}
}
And err and err2 turn out to be KErrNone . But this method completes and the control enters void CCamProfileContainer::MceoHandleError( TCameraEngineError aErrorType, TInt aError )
And aErrorType is EErrAutoFocusMode.
Like the person starting this post, I have not even used the auto focus functionality. The only check i make in constructor is as follows
Code:
if(iCameraWrapper->IsAutoFocusSupported()){
autoFocusSupported = ETrue;
}else{
autoFocusSupported = EFalse;
}
And i get autoFocusSupported as ETrue