#include <mmf/server/mmfbuffer.h>
class CMMFBuffer : public CBase |
Protected Attributes | |
---|---|
TUint | iFrameNumber |
TBool | iLastBuffer |
TUint | iPosition |
TInt | iRequestSize |
TBufferStatus | iStatus |
TTimeIntervalMicroSeconds | iTimeToPlay |
TUid | iType |
Public Member Functions | |
---|---|
virtual | ~CMMFBuffer() |
pure virtual TUint | BufferSize() |
TUint | FrameNumber() |
IMPORT_C TBool | IsFileServerSafe(TUid) |
IMPORT_C TBool | IsSupportedDataBuffer(TUid) |
TBool | LastBuffer() |
void | NextFrame() |
virtual TUint | Position() |
virtual TInt | RequestSize() |
void | SetFrameNumber(TUint) |
void | SetLastBuffer(TBool) |
virtual void | SetPosition(TUint) |
virtual void | SetStatus(TBufferStatus) |
void | SetTimeToPlay(TTimeIntervalMicroSeconds) |
TBufferStatus | Status() |
TTimeIntervalMicroSeconds | TimeToPlay() |
TUid | Type() |
Protected Member Functions | |
---|---|
CMMFBuffer(TUid) |
Abstract representation of a buffer to contain multimedia data.
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.
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.
Returns: The buffer size.
Static method which returns ETrue if the buffer UID is a buffer that is safe to be used with the file server. If the buffer type is not safe to be used with the file server, then the client would need to copy the contents of the buffer, prior to passing it onto the file server.
This implementation assumes the CMMFPtrBuffer is safe for file server copy. If this is not the case then remove the PtrBuffer set to ETrue.
Parameter | Description |
---|---|
aUid | The UID of the CMMFBuffer to be checked for support. |
Returns: The buffer size.
Static method which returns ETrue if the buffer UID is a supported CMMFDataBuffer type.
Note: If the buffer is not a CMMFDataBuffer this method should return EFalse.
Parameter | Description |
---|---|
aUid | The UID of the CMMFBuffer to be checked for support. |
Returns: The buffer size.
TBool | LastBuffer | ( | ) | const [inline] |
Tests whether the buffer is the last buffer.
Returns: 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.
Returns: The buffer's number.
TInt | RequestSize | ( | ) | const [inline, virtual] |
Returns the size of data processed by sink or data needed by source.
Returns: The size of data
void | SetFrameNumber | ( | TUint | aFrame | ) | [inline] |
Sets the frame number. This is used for repositioning.
Parameter | Description |
---|---|
aFrame | The frame number. |
void | SetLastBuffer | ( | TBool | aLastBuffer | ) | [inline] |
Sets the buffer as the last buffer.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aPosition | The buffer's number. |
void | SetStatus | ( | TBufferStatus | aStatus | ) | [inline, virtual] |
Sets the buffer's status.
Parameter | Description |
---|---|
aStatus | The buffer's status. |
void | SetTimeToPlay | ( | TTimeIntervalMicroSeconds | aTime | ) | [inline] |
Sets the buffer timestamp, in microseconds.
Parameter | Description |
---|---|
aTime | The buffer timestamp, in microseconds. |
TTimeIntervalMicroSeconds | TimeToPlay | ( | ) | const [inline] |
Returns the buffer timestamp, in microseconds.
Returns: The buffer timestamp, in microseconds.