class CMediaBuffer

This is a class that represents a Media buffer and contains pointers to the next and previous Media Buffers.

Public Fields

[more]int bufferCount
[more]CMediaBuffer* ObjNextBuffer
pointer to next Media Buffer
[more]CMediaBuffer* ObjPrevBuffer
pointer to previous Media Buffer

Public Methods

[more] CMediaBuffer(int x)
constructor of Media Buffer, it takes as input an integer which is the count of the buffer
[more] ~CMediaBuffer()
destructor
[more]char* getBuffer(int* size, int* timestampInc)
returns the pointer to the media buffer data and sets the size and time stamp incremenet associated with the media buffer
[more]void freeBuffer()
free the media bufffer data
[more]int setBuffer(int size, char* buf, int i_frame, int ts_msec)
allocates the media buffer data and copies the data to media buffer data and the time stamp increment; returns 0 on SUCCESS, -1 on FAILURE
[more]void setNextBuffer(CMediaBuffer* nxtbuf)
sets the next Media Buffer
[more]void setPrevBuffer(CMediaBuffer* prevbuf)
sets the previous Media Buffer


Documentation

This is a class that represents a Media buffer and contains pointers to the next and previous Media Buffers.
oint bufferCount

oCMediaBuffer* ObjNextBuffer
pointer to next Media Buffer

oCMediaBuffer* ObjPrevBuffer
pointer to previous Media Buffer

o CMediaBuffer(int x)
constructor of Media Buffer, it takes as input an integer which is the count of the buffer

o ~CMediaBuffer()
destructor

ochar* getBuffer(int* size, int* timestampInc)
returns the pointer to the media buffer data and sets the size and time stamp incremenet associated with the media buffer

ovoid freeBuffer()
free the media bufffer data

oint setBuffer(int size, char* buf, int i_frame, int ts_msec)
allocates the media buffer data and copies the data to media buffer data and the time stamp increment; returns 0 on SUCCESS, -1 on FAILURE

ovoid setNextBuffer(CMediaBuffer* nxtbuf)
sets the next Media Buffer

ovoid setPrevBuffer(CMediaBuffer* prevbuf)
sets the previous Media Buffer


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.