MMMFVideoPlayHwDeviceExtensionScanCopy Class Reference

#include "videoplayhwdevice.h"

class MMMFVideoPlayHwDeviceExtensionScanCopy
Public Member Functions
pure virtual voidScanAndCopyCodedDataL(TPtr8, TVideoInputBuffer *, TInt &, TFramePortion)
pure virtual voidWriteCodedDataL(TVideoInputBuffer *, TFramePortion)

Detailed Description

A custom interface extending the functionality of CMMFVideoPlayHwDevice, adding support for the decoder to handle the copying of the bitstream data into the buffers, combining this with a scan of the data and support for the passing of information from the client to the decoder describing what part of a frame the data contains.

Member Function Documentation

ScanAndCopyCodedDataL ( TPtr8, TVideoInputBuffer *, TInt &, TFramePortion )

voidScanAndCopyCodedDataL(TPtr8aCodedData,
TVideoInputBuffer *aBuffer,
TInt &aConsumed,
TFramePortionaPortion = EFramePortionUnknown
)[pure virtual]

Passes a pointer to a piece of coded video data to the decoder. The data buffer, which is left empty by the client, must be retrieved from the decoder with GetBufferL().

leave
"This method may leave with one of the system-wide error codes."
Pre-condition
"This method can only be called after the hwdevice has been initialized with Initialize()."
ParameterDescription
aCodedData"A pointer to the coded data unit to scan and copy."
aBuffer"The empty data buffer."
aPortion"The portion of the frame that the data contains. Defaults to EFramePortionUnknown."

WriteCodedDataL ( TVideoInputBuffer *, TFramePortion )

voidWriteCodedDataL(TVideoInputBuffer *aBuffer,
TFramePortionaPortion = EFramePortionUnknown
)[pure virtual]

Writes a piece of coded video data to the decoder. The data buffer must be retrieved from the decoder with GetBufferL().

leave
"This method may leave with one of the system-wide error codes."
Pre-condition
"This method can only be called after the hwdevice has been initialized with Initialize()."
ParameterDescription
aBuffer"The coded data unit to write."
aPortion"The portion of the frame that the data contains. Defaults to EFramePortionUnknown."