// ----------------------------------------------------------------------------- // 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" ))); }
// ----------------------------------------------------------------------------- // 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(); }