Location:
MmfDes.h
Link against: mmfstdsourceandsinkplugin.lib
class CMMFDescriptor : public CMMFClip;
MultiMedia framework class. Represents a client side descriptor. May be source descriptor from which data is read or destination to which data is written
MDataSink
- Abstract class representing a data sink
MDataSource
- Abstract class representing a data source
CBase
- Base class for all classes to be instantiated on the heap
CMMFClip
- Abstract class to represent a source or sink that contains a multimedia clip (i.e
CMMFDescriptor
- MultiMedia framework class
Defined in CMMFDescriptor
:
BufferEmptiedL()
, BufferFilledL()
, BytesFree()
, CanCreateSinkBuffer()
, CanCreateSourceBuffer()
, ConstructSinkL()
, ConstructSourceL()
, CreateSinkBufferL()
, CreateSourceBufferL()
, EmptyBufferL()
, FillBufferL()
, ReadBufferL()
, ReadBufferL()
, ReadBufferL()
, SetSize()
, SinkDataTypeCode()
, Size()
, SourceDataTypeCode()
, WriteBufferL()
, WriteBufferL()
, WriteBufferL()
, ~CMMFDescriptor()
Inherited from CBase
:
Extension_()
,
operator new()
Inherited from CMMFClip
:
Delete()
Inherited from MDataSink
:
DataSinkType()
,
NegotiateL()
,
NewSinkL()
,
SetSinkDataTypeCode()
,
SetSinkPrioritySettings()
,
SinkCustomCommand()
,
SinkPauseL()
,
SinkPlayL()
,
SinkPrimeL()
,
SinkStopL()
,
SinkThreadLogoff()
,
SinkThreadLogon()
Inherited from MDataSource
:
DataSourceType()
,
NegotiateSourceL()
,
NewSourceL()
,
SetSourceDataTypeCode()
,
SetSourcePrioritySettings()
,
SourceCustomCommand()
,
SourcePauseL()
,
SourcePlayL()
,
SourcePrimeL()
,
SourceSampleConvert()
,
SourceStopL()
,
SourceThreadLogoff()
,
SourceThreadLogon()
virtual ~CMMFDescriptor();
Destructor.
The default implementation closes the descriptor thread.
virtual TFourCC SourceDataTypeCode(TMediaId aMediaId);
Returns the data type as a fourCC code for the CMMFDescriptor data source.
|
|
virtual void FillBufferL(CMMFBuffer *aBuffer, MDataSink *aConsumer, TMediaId aMediaId);
Loads aBuffer from iDes.
File read is asynchronous. CReadRequest
is created to respond to completion.
|
virtual void BufferEmptiedL(CMMFBuffer *aBuffer);
CMMFDescriptor as a source is always passive so this function is not supported.
|
virtual TBool CanCreateSourceBuffer();
Tests whether a source buffer can be created.
|
virtual CMMFBuffer *CreateSourceBufferL(TMediaId aMediaId, TBool &aReference);
Creates a source buffer.
|
|
virtual TFourCC SinkDataTypeCode(TMediaId aMediaId);
Returns the data type as a fourCC code of the CMMFDescriptor data sink.
Used by MDataSource
and MDataSink
.
|
|
virtual void EmptyBufferL(CMMFBuffer *aBuffer, MDataSource *aSupplier, TMediaId aMediaId);
Empties aBuffer into iDes.
|
virtual void BufferFilledL(CMMFBuffer *aBuffer);
CMMFDescriptor as a sink is always passive so this function is not supported.
|
virtual TBool CanCreateSinkBuffer();
Tests whether a sink buffer can be created.
|
virtual CMMFBuffer *CreateSinkBufferL(TMediaId aMediaId, TBool &aReference);
Creates a sink buffer.
|
|
virtual void ReadBufferL(TInt aLength, CMMFBuffer *aBuffer, TInt aPosition, MDataSink *aConsumer);
Loads aLength number of bytes into aBuffer from specified point in iDes.
|
virtual void WriteBufferL(TInt aLength, CMMFBuffer *aBuffer, TInt aPosition, MDataSource *aSupplier);
Empties aLength bytes from aBuffer into iDes at specified location.
|
|
virtual void ReadBufferL(CMMFBuffer *aBuffer, TInt aPosition, MDataSink *aConsumer);
Loads aBuffer from specified point in iDes
|
virtual void WriteBufferL(CMMFBuffer *aBuffer, TInt aPosition, MDataSource *aSupplier);
Empties aBuffer into iDes at specified location.
|
virtual void ReadBufferL(CMMFBuffer *aBuffer, TInt aPosition);
Loads aBuffer from specified point in iDes. Note that this is a synchronous read.
|
virtual void WriteBufferL(CMMFBuffer *aBuffer, TInt aPosition);
Empties aBuffer into iFile at specified location. Note that this is a synchronous write
|
virtual TInt64 BytesFree();
Returns the amount of space available for the clip.
|
virtual TInt Size();
Returns the length of the clip.
|
virtual TInt SetSize(TInt aSize);
Sets the size of the clip. This should be overriden in the derived classes, the default version returns KErrNotSupported.
|
|
protected: virtual void ConstructSinkL(const TDesC8 &aInitData);
Performs sink construction dependant on the sink construction initialisation data aInitData.
|
protected: virtual void ConstructSourceL(const TDesC8 &aInitData);
Performs source construction dependant on the source construction initialisation data aInitData.
|