Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: ecam.h

Class MFrameBuffer

class MFrameBuffer;

Description

Buffer class for passing video frames between camera and client.

May contain multiple frames.

Members

Defined in MFrameBuffer:
DataL(), FrameL(), Release(), iElapsedTime, iIndexOfFirstFrameInBuffer


Member functions


DataL()

virtual TDesC8 *DataL(TInt aIndex)=0;

Description

Gets a non-bitmap frame in the buffer.

Parameters

TInt aIndex

The index of the required, non-bitmap, frame.

Return value

TDesC8 *

A pointer to the specified non-bitmap format frame of video data.

Leave codes

KErrArgument

if aIndex is out of range

KErrNotSupported

if the frame format is bitmap.


FrameL()

virtual CFbsBitmap *FrameL(TInt aIndex)=0;

Description

Gets a bitmap frame in the buffer.

Parameters

TInt aIndex

The index of the required, bitmap format, frame.

Return value

CFbsBitmap *

A pointer to the specified bitmap format frame of video data.

Leave codes

KErrArgument

if aIndex is out of range and

KErrNotSupported

if the frame format is not a bitmap.


Release()

virtual void Release()=0;

Description

Releases the buffer for re-use by the camera once the client has processed the frame data.

Signals to CCamera that the buffer data has been used and that the buffer is free for re-use.

[Top]


Member data


iIndexOfFirstFrameInBuffer

TInt iIndexOfFirstFrameInBuffer;

Description

Sequential frame number of the first frame in the buffer, counting from when CCamera::StartVideoCapture() was called and including frames dropped due to lack of buffers.


iElapsedTime

TTimeIntervalMicroSeconds iElapsedTime;

Description

Time elapsed from when CCamera::StartVideoCapture() was called until the first frame in the buffer was captured.