CMMFBuffer Class Reference
class CMMFBuffer : public CBase |
Abstract representation of a buffer to contain multimedia data.
Constructor & Destructor Documentation
CMMFBuffer(TUid)
CMMFBuffer | ( | TUid | aType | ) | [protected, inline] |
~CMMFBuffer()
~CMMFBuffer | ( | ) | [inline, virtual] |
Member Functions Documentation
BufferSize()
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.
FrameNumber()
TUint
| FrameNumber | ( | ) | const [inline] |
Returns the frame number.
IsFileServerSafe(TUid)
IMPORT_C TBool | IsFileServerSafe | ( | TUid | aUid | ) | [static] |
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.
Parameters
TUid aUid | The UID of the CMMFBuffer to be checked for support. |
IsSupportedDataBuffer(TUid)
IMPORT_C TBool | IsSupportedDataBuffer | ( | TUid | aUid | ) | [static] |
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.
Parameters
TUid aUid | The UID of the CMMFBuffer to be checked for support. |
LastBuffer()
TBool
| LastBuffer | ( | ) | const [inline] |
Tests whether the buffer is the last buffer.
NextFrame()
Sets the buffer as the next frame.
Position()
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.
RequestSize()
TInt
| RequestSize | ( | ) | const [inline, virtual] |
Returns the size of data processed by sink or data needed by source.
SetFrameNumber(TUint)
void | SetFrameNumber | ( | TUint | aFrame | ) | [inline] |
Sets the frame number. This is used for repositioning.
Parameters
TUint aFrame | The frame number. |
SetLastBuffer(TBool)
void | SetLastBuffer | ( | TBool | aLastBuffer | ) | [inline] |
Sets the buffer as the last buffer.
Parameters
TBool aLastBuffer | A boolean indicating if the buffer is the last buffer. ETrue if it is the last buffer, EFalse otherwise. |
SetPosition(TUint)
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.
Parameters
TUint aPosition | The buffer's number. |
SetStatus(TBufferStatus)
Sets the buffer's status.
SetTimeToPlay(TTimeIntervalMicroSeconds)
Sets the buffer timestamp, in microseconds.
Status()
Returns the buffer's status.
TimeToPlay()
Returns the buffer timestamp, in microseconds.
Type()
TUid
| Type | ( | ) | const [inline] |
Member Data Documentation
TUint
iFrameNumber
TUint
| iFrameNumber | [protected] |
TBool
iLastBuffer
TBool
| iLastBuffer | [protected] |
Indicates if this is the last buffer. ETrue if it is.
TUint
iPosition
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
TInt
| iRequestSize | [protected] |
Stores Request size, needed for dynamic buffer length.
TTimeIntervalMicroSeconds
iTimeToPlay
The buffer timestamp, in microseconds.
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.