| class CMMFBuffer : public CBase |
Abstract representation of a buffer to contain multimedia data.
| Public Member Functions | |
|---|---|
| ~CMMFBuffer() | |
| TUint | BufferSize() |
| TUint | FrameNumber() |
| IMPORT_C TBool | IsFileServerSafe(TUid) |
| IMPORT_C TBool | IsSupportedDataBuffer(TUid) |
| TBool | LastBuffer() |
| void | NextFrame() |
| TUint | Position() |
| TInt | RequestSize() |
| void | SetFrameNumber(TUint) |
| void | SetLastBuffer(TBool) |
| void | SetPosition(TUint) |
| void | SetStatus(TBufferStatus) |
| void | SetTimeToPlay(TTimeIntervalMicroSeconds) |
| TBufferStatus | Status() |
| TTimeIntervalMicroSeconds | TimeToPlay() |
| TUid | Type() |
| Protected Member Functions | |
|---|---|
| CMMFBuffer(TUid) | |
| Protected Attributes | |
|---|---|
| TUint | iFrameNumber |
| TBool | iLastBuffer |
| TUint | iPosition |
| TInt | iRequestSize |
| TBufferStatus | iStatus |
| TTimeIntervalMicroSeconds | iTimeToPlay |
| TUid | iType |
| TUint | BufferSize | ( | ) | const [pure virtual] |
Returns the size of the data in the buffer.
This is a virtual function that each derived class must implement.
The buffer size.
| IMPORT_C TBool | IsSupportedDataBuffer | ( | TUid | aUid | ) | [static] |
| TUid aUid |
| TBool | LastBuffer | ( | ) | const [inline] |
Tests whether the buffer is the last buffer.
A boolean indicating if the buffer is the last one. ETrue if it is the last buffer, EFalse otherwise.
| TUint | Position | ( | ) | const [inline, virtual] |
Returns the current buffer read/write position. Used as read/write position on a buffer where a codec may need several passes on the same buffer.
The buffer's number.
| TInt | RequestSize | ( | ) | const [inline, virtual] |
Returns the size of data processed by sink or data needed by source.
The size of data
| void | SetFrameNumber | ( | TUint | aFrame | ) | [inline] |
Sets the frame number. This is used for repositioning.
| TUint aFrame | The frame number. |
| void | SetLastBuffer | ( | TBool | aLastBuffer | ) | [inline] |
Sets the buffer as the last buffer.
| TBool aLastBuffer | A boolean indicating if the buffer is the last buffer. ETrue if it is the last buffer, EFalse otherwise. |
| void | SetPosition | ( | TUint | aPosition | ) | [inline, virtual] |
Sets the current buffer read/write position. Used as read/write position on a buffer where a codec may need several passes on the same buffer.
| TUint aPosition | The buffer's number. |
| void | SetStatus | ( | TBufferStatus | aStatus | ) | [inline, virtual] |
Sets the buffer's status.
| TBufferStatus aStatus | The buffer's status. |
| void | SetTimeToPlay | ( | TTimeIntervalMicroSeconds | aTime | ) | [inline] |
Sets the buffer timestamp, in microseconds.
| TTimeIntervalMicroSeconds aTime | The buffer timestamp, in microseconds. |
| TTimeIntervalMicroSeconds | TimeToPlay | ( | ) | const [inline] |
Returns the buffer timestamp, in microseconds.
The buffer timestamp, in microseconds.
| TBool | iLastBuffer | [protected] |
Indicates if this is the last buffer. ETrue if it is.
| TUint | iPosition | [protected] |
Used to store the current read/write position. Required when the codec and data path may have to read and write the buffer in more than one pass.
| TInt | iRequestSize | [protected] |
Stores Request size, needed for dynamic buffer length.
| TBufferStatus | iStatus | [protected] |
The current buffer status.
enum TBufferStatus
| TTimeIntervalMicroSeconds | iTimeToPlay | [protected] |
The buffer timestamp, in microseconds.