CMMFDescriptor Class Reference
| 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) |
Constructor & Destructor Documentation
CMMFDescriptor()
| CMMFDescriptor | ( | ) | [protected] |
~CMMFDescriptor()
| ~CMMFDescriptor | ( | ) | [virtual] |
Member Functions Documentation
BufferEmptiedL(CMMFBuffer *)
BufferFilledL(CMMFBuffer *)
BytesFree()
Returns the amount of space available for the clip.
This is a virtual function that each derived class must implement.
CanCreateSinkBuffer()
|
TBool
| CanCreateSinkBuffer | ( | ) | [virtual] |
CanCreateSourceBuffer()
|
TBool
| CanCreateSourceBuffer | ( | ) | [virtual] |
CanUseTransferBuffer()
|
TBool
| CanUseTransferBuffer | ( | ) | |
ConstructL(const TDesC8 &)
| void | ConstructL | ( | const TDesC8 & | aInitData | ) | [protected] |
ConstructSinkL(const TDesC8 &)
| void | ConstructSinkL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
ConstructSourceL(const TDesC8 &)
| void | ConstructSourceL | ( | const TDesC8 & | aInitData | ) | [protected, virtual] |
CreateSinkBufferL(TMediaId, TBool &)
CreateSourceBufferL(TMediaId, TBool &)
EmptyBufferL(CMMFBuffer *, MDataSource *, TMediaId)
FillBufferL(CMMFBuffer *, MDataSink *, TMediaId)
MaxLength()
|
TInt
| MaxLength | ( | ) | [private, inline] |
ReadBufferL(TInt, CMMFBuffer *, TInt, MDataSink *)
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.
Parameters
| 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. |
ReadBufferL(CMMFBuffer *, TInt, MDataSink *)
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.
Parameters
| 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. |
ReadBufferL(CMMFBuffer *, TInt)
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.
Parameters
| CMMFBuffer * aBuffer | The buffer to read the data into. |
| TInt aPosition | The offset from which to start reading. |
SetSize(TInt)
Sets the size of the clip. This should be overriden in the derived classes, the default version returns KErrNotSupported.
Parameters
| TInt aSize | The size of the clip. |
SetTransferBuffer(TBool)
| void | SetTransferBuffer | ( | TBool | aTBuffer | ) | |
SinkDataTypeCode(TMediaId)
Size()
Returns the size of the clip in bytes.
This is a virtual function that each derived class must implement.
SourceDataTypeCode(TMediaId)
WriteBufferL(TInt, CMMFBuffer *, TInt, MDataSource *)
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.
Parameters
| 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. |
WriteBufferL(CMMFBuffer *, TInt, MDataSource *)
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.
Parameters
| 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. |
WriteBufferL(CMMFBuffer *, TInt)
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.
Parameters
| CMMFBuffer * aBuffer | The buffer to write the data into. |
| TInt aPosition | The offset from which to start writing. |
Member Data Documentation
TBool
iUseTransferBuffer
|
TBool
| iUseTransferBuffer | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.