|
||
class MCameraObserver;
Mixin base class for camera clients.
An application must implement an MCameraObserver or MCameraObserver2
(recommended) in order to use the camera API. This derived class is called when the camera is ready for use, an image has
been captured or a buffer of video data is ready, including when errors occur.
Implementations of the camera API should use MCameraObserver::FrameBufferReady(MFrameBuffer *,TInt)
and MFrameBuffer::Release()
to co-ordinate the mapping of any special memory objects.
Defined in MCameraObserver
:
FrameBufferReady(MFrameBuffer *,TInt)
Passes a filled frame buffer to the client.ImageReady(CFbsBitmap *,HBufC8 *,TInt)
Transfers the current image from the camera to the client.PowerOnComplete(TInt)
Indicates camera power on is complete.ReserveComplete(TInt)
Camera reservation is complete.ViewFinderFrameReady(CFbsBitmap &)
Tests whether transfer of view finder data has completed.virtual void ReserveComplete(TInt aError)=0;
Camera reservation is complete.
Called asynchronously when CCamera::Reserve()
completes.
|
virtual void PowerOnComplete(TInt aError)=0;
Indicates camera power on is complete.
Called on completion of CCamera
:PowerOn().
|
virtual void ViewFinderFrameReady(CFbsBitmap &aFrame)=0;
Tests whether transfer of view finder data has completed.
Called periodically in response to the use of CCamera::StartViewFinderBitmapsL(TSize &)
.
|
virtual void ImageReady(CFbsBitmap *aBitmap, HBufC8 *aData, TInt aError)=0;
Transfers the current image from the camera to the client.
Called asynchronously when CCamera::CaptureImage()
completes.
|
virtual void FrameBufferReady(MFrameBuffer *aFrameBuffer, TInt aError)=0;
Passes a filled frame buffer to the client.
Called asynchronously, when a buffer has been filled with the required number of video frames by CCamera::StartVideoCapture()
.
|