/* * MCameraObserver2: * New viewfinder frame available */ void CCameraEngine::ViewFinderReady(MCameraBuffer &aCameraBuffer, TInt aError) { iViewFinderBuffer = &aCameraBuffer; if (aError == KErrNone) { if (iViewfinderObserver) { TRAPD(err, iViewfinderObserver->MceoViewFinderFrameReady(aCameraBuffer.BitmapL(0))); if (err) iObserver->MceoHandleError(EErrViewFinderReady, err); } else { iObserver->MceoHandleError(EErrViewFinderReady, KErrNotReady); } } else { iObserver->MceoHandleError(EErrViewFinderReady, aError); } }
void CDigitalCamera::ViewFinderReady(MCameraBuffer& aCameraBuffer, TInt /*aError*/) { CFbsBitmap& bitmap = aCameraBuffer.BitmapL(0); ViewFinderFrameReady(bitmap); aCameraBuffer.Release(); }