// ----------------------------------------------------------------------------- // CCMRVideoCameraSource::ImageBufferReady // MCameraObserver2 call-back handler // ----------------------------------------------------------------------------- // void CCMRVideoCameraSource::ImageBufferReady( MCameraBuffer& aCameraBuffer, TInt aError) { PRINT(( _L( "CCMRVideoCameraSource::ImageBufferReady() NOT HANDLED, err=%d, NumFrames=%d" ), aError, aCameraBuffer.NumFrames() )); if ( !aError ) { aCameraBuffer.Release(); } }
// ----------------------------------------------------------------------------- // CCamcTest_5::ImageBufferReady // MCameraObserver2 call-back handler // ----------------------------------------------------------------------------- // void CCamcTest_5::ImageBufferReady( MCameraBuffer& aCameraBuffer, TInt aError) { PRINT(( _L( "CCamcTest_5::ImageBufferReady() BUFFER NOT HANDLED, err=%d, NumFrames=%d" ), aError, aCameraBuffer.NumFrames() )); if ( !aError ) { aCameraBuffer.Release(); } ImageReady( NULL, NULL, aError ); }
// ----------------------------------------------------------------------------- // 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 ); }
// ----------------------------------------------------------------------------- // CCamcTest_5::VideoBufferReady // MCameraObserver2 call-back handler // ----------------------------------------------------------------------------- // void CCamcTest_5::VideoBufferReady( MCameraBuffer& aCameraBuffer, TInt aError) { PRINT(( _L( "CCamcTest_5::VideoBufferReady() entering, err=%d, NumFrames=%d" ), aError, aCameraBuffer.NumFrames() )); MFrameBuffer* buffer = NULL; if ( !aError ) { aCameraBuffer.Release(); } // Call old Camera-API observer handler FrameBufferReady( buffer, aError ); PRINT(( _L( "CCamcTest_5::VideoBufferReady() returning" ))); }
/* * 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); } }
// ----------------------------------------------------------------------------- // CCMRVideoCameraSource::VideoBufferReady // MCameraObserver2 call-back handler // ----------------------------------------------------------------------------- // void CCMRVideoCameraSource::VideoBufferReady( MCameraBuffer& aCameraBuffer, TInt aError) { PRINT(( _L( "CCMRVideoCameraSource::VideoBufferReady() entering, err=%d, NumFrames=%d" ), aError, aCameraBuffer.NumFrames() )); CCMRFrameBuffer* buffer = NULL; if ( !aError ) { // Create a new wrapper class to make conversion from MCameraBuffer to MFrameBuffer TRAPD( err, buffer = CCMRFrameBuffer::NewL( &aCameraBuffer )); if ( err ) { PRINT(( _L( "CCMRVideoCameraSource::VideoBufferReady() CCMRFrameBuffer::NewL failed, err=%d" ), err )); aCameraBuffer.Release(); aError = err; } } // Call old Camera-API observer handler FrameBufferReady( buffer, aError ); PRINT(( _L( "CCMRVideoCameraSource::VideoBufferReady() returning" ))); }
void CDigitalCamera::ViewFinderReady(MCameraBuffer& aCameraBuffer, TInt /*aError*/) { CFbsBitmap& bitmap = aCameraBuffer.BitmapL(0); ViewFinderFrameReady(bitmap); aCameraBuffer.Release(); }