MFrameBuffer Class Reference

class MFrameBuffer

Buffer class for passing video frames between camera and client.

May contain multiple frames.

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

Member Functions 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.

Parameters

TInt aIndexThe index of the required, non-bitmap, frame.

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.

Parameters

TInt aIndexThe index of the required, bitmap format, frame.

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.

Member Data Documentation

TTimeIntervalMicroSeconds iElapsedTime

TTimeIntervalMicroSeconds iElapsedTime

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

TInt 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.