|
||
class CMMFDescriptorBuffer : public CMMFDataBuffer;
This class is a wrapper class to give a descriptor the same API as a CMMFDataBuffer
.
The purpose of this class is that components such as codecs can use CMMFDataBuffers transparently without having to be concerned with whether the buffer is a descriptor buffer or a transfer buffer.
CBase
-
Base class for all classes to be instantiated on the heap.
CMMFBuffer
-
Abstract representation of a buffer to contain multimedia data.
CMMFDataBuffer
- ...
CMMFDescriptorBuffer
- ...
Defined in CMMFDescriptorBuffer
:
BufferSize()const
Returns the actual data size (ie. not the maximum length) of the data contained ...Data()
Returns a descriptor to the data contained in the CMMFDescriptorBuffer.Data()const
Returns a descriptor to the data contained in the CMMFDescriptorBuffer.NewL()
Method to instantiate a CMMFDescriptorBuffer.NewL(TInt)
Method to instantiate a CMMFDescriptorBuffer. This NewL creates a CMMFDescriptor...ReAllocBufferL(TInt)
Reallocates the max size in bytes of a CMMFDescriptorBuffer.SetPosition(TUint)
Sets the position.SetRequestSizeL(TInt)
Sets the request size.SetStatus(TBufferStatus)
Overriden method to set the status and resets the data size to 0 when the buffer...~CMMFDescriptorBuffer()
Destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from CMMFBuffer
:
CMMFBuffer(TUid)
FrameNumber()const
Returns the frame number.IsFileServerSafe(TUid)
Static method which returns ETrue if the buffer UID is a buffer that is safe to ...IsSupportedDataBuffer(TUid)
Static method which returns ETrue if the buffer UID is a supported CMMFDataBuffe...LastBuffer()const
Tests whether the buffer is the last buffer.NextFrame()
Sets the buffer as the next frame. Position()const
Returns the current buffer read/write position. Used as read/write position on a...RequestSize()const
Returns the size of data processed by sink or data needed by source.SetFrameNumber(TUint)
Sets the frame number. This is used for repositioning.SetLastBuffer(TBool)
Sets the buffer as the last buffer.SetTimeToPlay(TTimeIntervalMicroSeconds)
Sets the buffer timestamp, in microseconds.Status()
Returns the buffer's status.TimeToPlay()const
Returns the buffer timestamp, in microseconds.Type()const
Returns the buffer type.iFrameNumber
The frame number.iLastBuffer
Indicates if this is the last buffer. ETrue if it is.iPosition
Used to store the current read/write position. Required when the codec and data ...iRequestSize
Stores Request size, needed for dynamic buffer length.iStatus
The current buffer status.iTimeToPlay
The buffer timestamp, in microseconds.iType
The buffer type.Inherited from CMMFDataBuffer
:
CMMFDataBuffer(TUid)
Protected constructor.IMPORT_C static CMMFDescriptorBuffer* NewL();
Method to instantiate a CMMFDescriptorBuffer.
Defaults to a CMMFDescriptorBuffer automatically. This NewL creates a CMMFDescriptorBuffer with a default size of 32 bytes.
|
IMPORT_C static CMMFDescriptorBuffer* NewL(TInt aMaxBufferSize);
Method to instantiate a CMMFDescriptorBuffer. This NewL creates a CMMFDescriptorBuffer with a size of aMaxBufferSize bytes.
|
|
IMPORT_C ~CMMFDescriptorBuffer();
Destructor.
Destructor also deletes the buffer contained in the CMMFDescriptorBuffer.
IMPORT_C void ReAllocBufferL(TInt aMaxBufferSize);
Reallocates the max size in bytes of a CMMFDescriptorBuffer.
|
virtual TDes8& Data();
Returns a descriptor to the data contained in the CMMFDescriptorBuffer.
|
virtual const TDesC8& Data() const;
Returns a descriptor to the data contained in the CMMFDescriptorBuffer.
|
virtual void SetStatus(TBufferStatus aStatus);
Overriden method to set the status and resets the data size to 0 when the buffer becomes available.
|
virtual void SetRequestSizeL(TInt aSize);
Sets the request size.
This function is used in cases where a component (eg a data source) may not be able or be desirable to write to the entire
max length of the buffer (eg variable bit rate codecs). In which case the CMMFDescriptorBuffer::SetRequestSizeL(TInt)
can be set which can be read by the CMMFBuffer::RequestSize()const
function in the component so that it knows to only write data upto the request size and not fill the buffer up to its max
length.
|
virtual TUint BufferSize() const;
Returns the actual data size (ie. not the maximum length) of the data contained in the CMMFDescriptorBuffer.
|
virtual void SetPosition(TUint aPosition);
Sets the position.
This method is used by components (eg codecs) which read data from a buffer and wish to store a read position marker for further reads. Note: The position cannot exceed the size of the actual data not the max length.
|