// ----------------------------------------------------------------------------- // CCamcTest_5::ViewFinderReady // MCameraObserver2 call-back handler // ----------------------------------------------------------------------------- // void CCamcTest_5::ViewFinderReady( MCameraBuffer& aCameraBuffer, TInt aError) { PRINT(( _L( "CCamcTest_5::ViewFinderReady() NOT HANDLED err=%d, NumFrames=%d" ), aError, aCameraBuffer.NumFrames() )); CFbsBitmap *buffer = NULL; if ( !aError ) { aCameraBuffer.Release(); } ViewFinderFrameReady( *buffer ); }
void CDigitalCamera::ViewFinderReady(MCameraBuffer& aCameraBuffer, TInt /*aError*/) { CFbsBitmap& bitmap = aCameraBuffer.BitmapL(0); ViewFinderFrameReady(bitmap); aCameraBuffer.Release(); }