CCMRMediaBuffer Class Reference

class CCMRMediaBuffer : public CBase

Buffer class used in MCMRMediaSink

CAMCMEDIARECORDER.LIB
Since
2.1

Inherits from

Constructor & Destructor Documentation

CCMRMediaBuffer()

CCMRMediaBuffer ( ) [inline]

C++ constructors. The 1st creates a buffer to be initialized later with Set, and the 2nd one initializes it already here

CCMRMediaBuffer(const TPtrC8 &, const TBufferType, const TInt, const TBool, const TTimeIntervalMicroSeconds &)

CCMRMediaBuffer ( const TPtrC8 & aBuffer,
const TBufferType aType,
const TInt aSize,
const TBool aRandomAccessPoint,
const TTimeIntervalMicroSeconds & aTimeStamp
) [inline]

Parameters

const TPtrC8 & aBuffer
const TBufferType aType
const TInt aSize
const TBool aRandomAccessPoint
const TTimeIntervalMicroSeconds & aTimeStamp

~CCMRMediaBuffer()

~CCMRMediaBuffer ( ) [inline]

Destructor.

Member Functions Documentation

BufferSize()

TInt BufferSize ( ) const [inline]
Write Return buffer size
Since
2.1

Data()

TPtrC8 Data ( ) const [inline]
Return the data pointer
Since
2.1

RandomAccessPoint()

TBool RandomAccessPoint ( ) const [inline]
Query whether this buffer contains a frame that can be used as a random-access point
Since
2.1

Set(const TPtrC8 &, const TBufferType, const TInt, const TBool, const TTimeIntervalMicroSeconds &)

void Set ( const TPtrC8 & aBuffer,
const TBufferType aType,
const TInt aSize,
const TBool aRandomAccessPoint,
const TTimeIntervalMicroSeconds & aTimeStamp
) [inline]
Set the buffer parameters. This enables reusing the buffer
Since
2.1

Parameters

const TPtrC8 & aBuffer
const TBufferType aType
const TInt aSize
const TBool aRandomAccessPoint
const TTimeIntervalMicroSeconds & aTimeStamp

TimeStamp()

TTimeIntervalMicroSeconds TimeStamp ( ) const [inline]
Write a buffer to sink
Since
2.1

Type()

TBufferType Type ( ) const [inline]
Return buffer type
Since
2.1

Member Enumerations Documentation

Enum TBufferType

Enumerators

EAudioAMRNB = 0
EAudioAMRWB
EVideoH263
EVideoMPEG4
EVideoMPEG4DecSpecInfo
EAudioDecSpecInfo = 6
EAudioMPEG4AAC
EVideoH264NAL
EVideoH264Bytestream
EVideoH264NALDecSpecInfo
EVideoH264BytestreamDecSpecInfo

Member Data Documentation

TPtrC8 iPtr

TPtrC8 iPtr [private]

TBool iRandomAccessPoint

TBool iRandomAccessPoint [private]

TInt iSize

TInt iSize [private]

TTimeIntervalMicroSeconds iTimeStamp

TTimeIntervalMicroSeconds iTimeStamp [private]

TBufferType iType

TBufferType iType [private]