Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <videorecordhwdevice.h>
Link against: devvideo.lib
This item is not part of the S60 5th Edition SDK

Class CMMFVideoPreProcHwDevice

class CMMFVideoPreProcHwDevice : public CMMFVideoRecordHwDevice;

Description

CMMFVideoPreProcHwDevice is the MSL video pre-processor plug-in interface. All MSL video pre-processors must implement this interface.

Derivation

Members

Defined in CMMFVideoPreProcHwDevice:

Inherited from CBase:

Inherited from CMMFVideoHwDevice:

Inherited from CMMFVideoRecordHwDevice:


Construction and destruction


NewL(TUid,MMMFDevVideoRecordProxy &)

IMPORT_C static CMMFVideoPreProcHwDevice* NewL(TUid aUid, MMMFDevVideoRecordProxy &aProxy);

Description

Creates a new video pre-processor hardware device object, based on the implementation UID.

Parameters

TUid aUid

"Pre-processor implementation UID."

MMMFDevVideoRecordProxy &aProxy

"The proxy implementation to use."

Return value

CMMFVideoPreProcHwDevice *

"A new CMMFVideoPreProcHwDevice object."

Leave codes

"This

method will leave if an error occurs."


~CMMFVideoPreProcHwDevice()

IMPORT_C virtual ~CMMFVideoPreProcHwDevice();

Description

Destructor.


CMMFVideoPreProcHwDevice()

protected: IMPORT_C CMMFVideoPreProcHwDevice();

Description

Constructor.

[Top]


Member functions


SetOutputFormatL(const TUncompressedVideoFormat &)

virtual void SetOutputFormatL(const TUncompressedVideoFormat &aFormat)=0;

Pre-Condition

"This method can only be called before the hwdevice has been initialized with Initialize()."

Description

Sets the device output format. The picture size depends on the input data format and possible scaling performed.

Parameters

const TUncompressedVideoFormat &aFormat

"The video format to use."

Leave codes

"

The method will leave if an error occurs. Typical error codes used: KErrNotSupported - The format specified is not supported."


SetOutputDevice(CMMFVideoEncodeHwDevice *)

virtual void SetOutputDevice(CMMFVideoEncodeHwDevice *aDevice)=0;

Pre-Condition

"This method can only be called before the hwdevice has been initialized with Initialize()."

Description

Sets the video encoder device that will receive data from this pre-processor. Pre-processed pictures will be written with CMMFVideoRecordHwDevice::WritePictureL(TVideoPicture *) or through a custom interface, and the encoder will return used pictures using CMMFVideoPreProcHwDevice::ReturnPicture(TVideoPicture *).

Parameters

CMMFVideoEncodeHwDevice *aDevice

"The output encoder device to use."


ReturnPicture(TVideoPicture *)

virtual void ReturnPicture(TVideoPicture *aPicture)=0;

Pre-Condition

"This method can only be called after the hwdevice has been initialized with Initialize()."

Description

Returns a used picture back to the pre-processor. Called by an encoder device when used as output device from a pre-processor.

Parameters

TVideoPicture *aPicture

"The picture to return."


SetProxy(MMMFDevVideoRecordProxy &)

protected: virtual void SetProxy(MMMFDevVideoRecordProxy &aProxy)=0;

Description

Set the proxy implementation to be used. Called just after the object is constructed.

Parameters

MMMFDevVideoRecordProxy &aProxy

"The proxy to use."