#include <ecam.h>
class MCameraObserver |
Public Member Functions | |
---|---|
pure virtual void | FrameBufferReady(MFrameBuffer *, TInt) |
pure virtual void | ImageReady(CFbsBitmap *, HBufC8 *, TInt) |
pure virtual void | PowerOnComplete(TInt) |
pure virtual void | ReserveComplete(TInt) |
pure virtual void | ViewFinderFrameReady(CFbsBitmap &) |
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() and MFrameBuffer::Release() to co-ordinate the mapping of any special memory objects.
void | FrameBufferReady | ( | MFrameBuffer * | aFrameBuffer, |
TInt | aError | |||
) | [pure virtual] |
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().
Parameter | Description |
---|---|
aFrameBuffer | On return, a pointer to an MFrameBuffer if successful, or NULL if not successful. |
aError | KErrNone if successful, or an error code if not successful. |
void | ImageReady | ( | CFbsBitmap * | aBitmap, |
HBufC8 * | aData, | |||
TInt | aError | |||
) | [pure virtual] |
Transfers the current image from the camera to the client.
Called asynchronously when CCamera::CaptureImage() completes.
Parameter | Description |
---|---|
aBitmap | On return, a pointer to an image held in CFbsBitmap form if this was the format specified in CCamera::PrepareImageCaptureL(). |
aData | On return, a pointer to an HBufC8 if this was the format specified in CCamera::PrepareImageCaptureL(). NULL if there was an error. |
aError | KErrNone on success or an error code on failure. |
void | ReserveComplete | ( | TInt | aError | ) | [pure virtual] |
Camera reservation is complete.
Called asynchronously when CCamera::Reserve() completes.
Parameter | Description |
---|---|
aError | An error on failure and KErrNone on success. |
void | ViewFinderFrameReady | ( | CFbsBitmap & | aFrame | ) | [pure virtual] |
Tests whether transfer of view finder data has completed.
Called periodically in response to the use of CCamera::StartViewFinderBitmapsL().
Parameter | Description |
---|---|
aFrame | The view finder frame. |