MMMFVideoPlayHwDeviceExtensionScanCopy Class Reference

class MMMFVideoPlayHwDeviceExtensionScanCopy

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 Functions 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()."

Parameters

TPtr8 aCodedData"A pointer to the coded data unit to scan and copy."
TVideoInputBuffer * aBuffer"The empty data buffer."
TInt & aConsumed
TFramePortion aPortion = EFramePortionUnknown"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()."

Parameters

TVideoInputBuffer * aBuffer"The coded data unit to write."
TFramePortion aPortion = EFramePortionUnknown"The portion of the frame that the data contains. Defaults to EFramePortionUnknown."