MFrameBuffer Class Reference

#include <ecam.h>

class MFrameBuffer
Public Attributes
TTimeIntervalMicroSeconds iElapsedTime
TInt iIndexOfFirstFrameInBuffer
Public Member Functions
pure virtual TDesC8 *DataL(TInt)
pure virtual CFbsBitmap *FrameL(TInt)
pure virtual voidRelease()

Detailed Description

Buffer class for passing video frames between camera and client.

May contain multiple frames.

Member Attribute Documentation

iElapsedTime

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

iIndexOfFirstFrameInBuffer

TInt iIndexOfFirstFrameInBuffer

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.

Member Function Documentation

DataL ( TInt )

TDesC8 *DataL(TIntaIndex)[pure virtual]

Gets a non-bitmap frame in the buffer.

leave
KErrArgument if aIndex is out of range
leave
KErrNotSupported if the frame format is bitmap.
ParameterDescription
aIndexThe index of the required, non-bitmap, frame.

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

FrameL ( TInt )

CFbsBitmap *FrameL(TIntaIndex)[pure virtual]

Gets a bitmap frame in the buffer.

leave
KErrArgument if aIndex is out of range and
leave
KErrNotSupported if the frame format is not a bitmap.
ParameterDescription
aIndexThe index of the required, bitmap format, frame.

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

Release ( )

voidRelease()[pure virtual]

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.