Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: devvideoplay.h

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class MMMFDevVideoPlayObserver

class MMMFDevVideoPlayObserver;

Description

The MMMFDevVideoPlayObserver mixin class defines a set of callback functions that the client using the MSL video API needs to implement. The callbacks are called in the context of the same thread that uses the API. DevVideo API methods can be safely called from the callbacks.

Members

Defined in MMMFDevVideoPlayObserver:
MdvpoFatalError(), MdvpoInitComplete(), MdvpoNewBuffers(), MdvpoNewPictures(), MdvpoPictureLoss(), MdvpoPictureLoss(), MdvpoReferencePictureSelection(), MdvpoReturnPicture(), MdvpoSliceLoss(), MdvpoStreamEnd(), MdvpoSupplementalInformation(), MdvpoTimedSnapshotComplete()


Member functions


MdvpoNewBuffers()

virtual void MdvpoNewBuffers()=0;

Description

Notifies the client that one or more new empty input buffers are available. The client can fetch the input buffer with GetBufferL().


MdvpoReturnPicture()

virtual void MdvpoReturnPicture(TVideoPicture *aPicture)=0;

Description

Returns a used input video picture back to the caller. The picture memory can be re-used or freed.

Parameters

TVideoPicture *aPicture

"The picture to return."


MdvpoSupplementalInformation()

virtual void MdvpoSupplementalInformation(const TDesC8 &aData, const TTimeIntervalMicroSeconds &aTimestamp, const TPictureId &aPictureId)=0;

Description

Delivers supplemental information from a coded data unit. The information is codec-dependent.

Parameters

const TDesC8 &aData

"The supplemental data. The reference is only valid until the method returns, and thus the data must be processed or copied immediately."

const TTimeIntervalMicroSeconds &aTimestamp

"The presentation timestamp for the picture that the supplemental data is part of."

const TPictureId &aPictureId

"Picture identifier for the picture. If a picture ID is not available, aPictureId.iIdType is set to ENone."


MdvpoPictureLoss()

virtual void MdvpoPictureLoss()=0;

Description

Back channel information from the decoder, indicating a picture loss without specifying the lost picture.


MdvpoPictureLoss()

virtual void MdvpoPictureLoss(const TArray< TPictureId > &aPictures)=0;

Description

Back channel information from the decoder, indicating the pictures that have been lost.

Parameters

const TArray< TPictureId > &aPictures

"Picture identifiers for the lost pictures. The reference is only valid until the method returns, and thus the data must be processed or copied immediately."


MdvpoSliceLoss()

virtual void MdvpoSliceLoss(TUint aFirstMacroblock, TUint aNumMacroblocks, const TPictureId &aPicture)=0;

Description

Back channel information from the decoder, indicating the loss of consecutive macroblocks in raster scan order.

Parameters

TUint aFirstMacroblock

"The first lost macroblock. The macroblocks are numbered such that the macroblock in the upper left corner of the picture is considered macroblock number 1 and the number for each macroblock increases from left to right and then from top to bottom in raster-scan order."

TUint aNumMacroblocks

"The number of lost macroblocks that are consecutive in raster-scan order."

const TPictureId &aPicture

"The picture identifier for the picture where the macroblocks were lost. If the picture is not known, aPicture.iIdType is set to ENone. The reference is only valid until the method returns."


MdvpoReferencePictureSelection()

virtual void MdvpoReferencePictureSelection(const TDesC8 &aSelectionData)=0;

Description

Back channel information from the decoder, indicating a reference picture selection request. The request is delivered as a coding-standard specific binary message. Reference picture selection can be used to select a pervious correctly transmitted picture to use as a reference in case later pictures have been lost.

Parameters

const TDesC8 &aSelectionData

"The reference picture selection request message. The message format is coding-standard specific, and defined separately. The reference is only valid until the method returns, and thus the data must be processed or copied immediately."


MdvpoTimedSnapshotComplete()

virtual void MdvpoTimedSnapshotComplete(TInt aError, TPictureData *aPictureData, const TTimeIntervalMicroSeconds &aPresentationTimestamp, const TPictureId &aPictureId)=0;

Description

Called when a timed snapshot request has been completed. When this method is called, the snapshot has been taken, and the memory reserved for the picture can be re-used or freed.

Parameters

TInt aError

"An error code, KErrNone if no errors occurred. If an error occurred, the data in the snapshot may not be valid, but the memory can still be freed."

TPictureData *aPictureData

"The snapshot picture data."

const TTimeIntervalMicroSeconds &aPresentationTimestamp

"The presentation timestamp for the snapshot picture. "

const TPictureId &aPictureId

"Picture identifier for the picture. If a picture ID is not available, aPictureId.iIdType is set to ENone."


MdvpoNewPictures()

virtual void MdvpoNewPictures()=0;

Description

Notifies the client that one or more new output pictures are available. The client can then use GetNewPictureInfo() and NextPicture() to fetch the pictures.


MdvpoFatalError()

virtual void MdvpoFatalError(TInt aError)=0;

Description

Reports a fatal decoding or playback error to the client. When these errors occur, decoding and playback is stopped automatically. The client must destroy the CMMFDevVideoPlay object and create a new instance before attempting to continue. Note that scenarios have been identified where MdvpoFatalError may get referenced at some point during the execution of a CMMFDevVideoPlay procedure. Therefore CMMFDevVideoPlay object should be deleted outside of MdvpoFatalError context in order to avoid accidental access to de-allocated CMMFDevVideoPlay data members.

Note that running out of processing power or encountering corrupted bitstream data should not be classified as errors if the decoder and post-processor can recover automatically.

Parameters

TInt aError

"The error code."


MdvpoInitComplete()

virtual void MdvpoInitComplete(TInt aError)=0;

Description

Reports that DevVideoPlay initialization has completed. The interface can now be used for video playback.

Parameters

TInt aError

"Initialization error code, KErrNone if no error occurred."


MdvpoStreamEnd()

virtual void MdvpoStreamEnd()=0;

Description

Reports that the input video stream end has been reached and all pictures have been processed. This method is only called after the client has called InputEnd(). No more output pictures will be available.