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
Public Member Functions | |
---|---|
~CMMFDescriptor() | |
void | BufferEmptiedL(CMMFBuffer *) |
void | BufferFilledL(CMMFBuffer *) |
TInt64 | BytesFree() |
TBool | CanCreateSinkBuffer() |
TBool | CanCreateSourceBuffer() |
TBool | CanUseTransferBuffer() |
CMMFBuffer * | CreateSinkBufferL(TMediaId, TBool &) |
CMMFBuffer * | CreateSourceBufferL(TMediaId, TBool &) |
void | EmptyBufferL(CMMFBuffer *, MDataSource *, TMediaId) |
void | FillBufferL(CMMFBuffer *, MDataSink *, TMediaId) |
MDataSink * | NewSinkL() |
MDataSource * | NewSourceL() |
void | ReadBufferL(TInt, CMMFBuffer *, TInt, MDataSink *) |
void | ReadBufferL(CMMFBuffer *, TInt, MDataSink *) |
void | ReadBufferL(CMMFBuffer *, TInt) |
TInt | SetSize(TInt) |
void | SetTransferBuffer(TBool) |
TFourCC | SinkDataTypeCode(TMediaId) |
TInt | Size() |
TFourCC | SourceDataTypeCode(TMediaId) |
void | WriteBufferL(TInt, CMMFBuffer *, TInt, MDataSource *) |
void | WriteBufferL(CMMFBuffer *, TInt, MDataSource *) |
void | WriteBufferL(CMMFBuffer *, TInt) |
Protected Member Functions | |
---|---|
CMMFDescriptor() | |
void | ConstructL(const TDesC8 &) |
void | ConstructSinkL(const TDesC8 &) |
void | ConstructSourceL(const TDesC8 &) |
Private Member Functions | |
---|---|
TInt | MaxLength() |
Private Attributes | |
---|---|
TDes8 * | iDes |
RThread | iDesThread |
TInt | iOffset |
TFourCC | iSinkFourCC |
TFourCC | iSourceFourCC |
TBool | iUseTransferBuffer |
void | BufferEmptiedL | ( | CMMFBuffer * | aBuffer | ) | [virtual] |
CMMFBuffer * aBuffer |
void | BufferFilledL | ( | CMMFBuffer * | aBuffer | ) | [virtual] |
CMMFBuffer * aBuffer |
TInt64 | BytesFree | ( | ) | [virtual] |
Returns the amount of space available for the clip.
This is a virtual function that each derived class must implement.
The amount of space available.
void | ConstructL | ( | const TDesC8 & | aInitData | ) | [protected] |
const TDesC8 & aInitData |
void | ConstructSinkL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
const TDesC8 & aInitData |
void | ConstructSourceL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
const TDesC8 & aInitData |
CMMFBuffer * | CreateSinkBufferL | ( | TMediaId | aMediaId, |
TBool & | aReference | |||
) | [virtual] |
CMMFBuffer * | CreateSourceBufferL | ( | TMediaId | aMediaId, |
TBool & | aReference | |||
) | [virtual] |
void | EmptyBufferL | ( | CMMFBuffer * | aBuffer, |
MDataSource * | aSupplier, | |||
TMediaId | aMediaId | |||
) | [virtual] |
CMMFBuffer * aBuffer | |
MDataSource * aSupplier | |
TMediaId aMediaId |
void | FillBufferL | ( | CMMFBuffer * | aBuffer, |
MDataSink * | aConsumer, | |||
TMediaId | aMediaId | |||
) | [virtual] |
CMMFBuffer * aBuffer | |
MDataSink * aConsumer | |
TMediaId aMediaId |
void | ReadBufferL | ( | TInt | aLength, |
CMMFBuffer * | aBuffer, | |||
TInt | aPosition, | |||
MDataSink * | aConsumer | |||
) | [virtual] |
Reads aLength number of bytes of data from the offset, aPosition into the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
TInt aLength | The number of bytes to read. |
CMMFBuffer * aBuffer | The buffer to read the data into. |
TInt aPosition | The offset from which to start reading. |
MDataSink * aConsumer | The sink of tha data read from the clip. Will be informed of read if not NULL. |
void | ReadBufferL | ( | CMMFBuffer * | aBuffer, |
TInt | aPosition, | |||
MDataSink * | aConsumer | |||
) | [virtual] |
Reads the maximum number of bytes of data from the offset, aPosition into the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
CMMFBuffer * aBuffer | The buffer to read the data into. |
TInt aPosition | The offset from which to start reading. |
MDataSink * aConsumer | The sink of tha data read from the clip. Will be informed of read if not NULL. |
void | ReadBufferL | ( | CMMFBuffer * | aBuffer, |
TInt | aPosition | |||
) | [virtual] |
Reads the maximum number of bytes of data from the offset, aPosition into the buffer, aBuffer. Intended for synchronous usage.
This is a virtual function that each derived class must implement.
CMMFBuffer * aBuffer | The buffer to read the data into. |
TInt aPosition | The offset from which to start reading. |
TInt | SetSize | ( | TInt | aSize | ) | [virtual] |
Sets the size of the clip. This should be overriden in the derived classes, the default version returns KErrNotSupported.
An error code indicating if the function call was successful. KErrNone on success, otherwise another of the system-wide error codes.
TInt aSize | The size of the clip. |
TFourCC | SinkDataTypeCode | ( | TMediaId | aMediaId | ) | [virtual] |
TMediaId aMediaId |
TInt | Size | ( | ) | [virtual] |
Returns the size of the clip in bytes.
This is a virtual function that each derived class must implement.
The size of the clip.
TFourCC | SourceDataTypeCode | ( | TMediaId | aMediaId | ) | [virtual] |
TMediaId aMediaId |
void | WriteBufferL | ( | TInt | aLength, |
CMMFBuffer * | aBuffer, | |||
TInt | aPosition, | |||
MDataSource * | aSupplier | |||
) | [virtual] |
Writes aLength number of bytes of data from the offset, aPosition from the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
TInt aLength | The number of bytes to write. |
CMMFBuffer * aBuffer | The buffer to write the data into. |
TInt aPosition | The offset from which to start writing. |
MDataSource * aSupplier | The source of the data writen to the clip. Will be informed of write if not NULL. |
void | WriteBufferL | ( | CMMFBuffer * | aBuffer, |
TInt | aPosition, | |||
MDataSource * | aSupplier | |||
) | [virtual] |
Writes the maximum number of bytes of data from the offset, aPosition from the buffer, aBuffer. Intended for asynchronous usage.
This is a virtual function that each derived class must implement.
CMMFBuffer * aBuffer | The buffer to write the data into. |
TInt aPosition | The offset from which to start writing. |
MDataSource * aSupplier | The source of the data writen to the clip. Will be informed of write if not NULL. |
void | WriteBufferL | ( | CMMFBuffer * | aBuffer, |
TInt | aPosition | |||
) | [virtual] |
Writes the maximum number of bytes of data from the offset, aPosition from the buffer, aBuffer. Intended for synchronous usage.
This is a virtual function that each derived class must implement.
CMMFBuffer * aBuffer | The buffer to write the data into. |
TInt aPosition | The offset from which to start writing. |