vdr  2.2.0
Public Member Functions | Private Attributes | Friends | List of all members
cFrame Class Reference

#include <ringbuffer.h>

Public Member Functions

 cFrame (const uchar *Data, int Count, eFrameType=ftUnknown, int Index=-1, uint32_t Pts=0)
 
 ~cFrame ()
 
ucharData (void) const
 
int Count (void) const
 
eFrameType Type (void) const
 
int Index (void) const
 
uint32_t Pts (void) const
 

Private Attributes

cFramenext
 
uchardata
 
int count
 
eFrameType type
 
int index
 
uint32_t pts
 

Friends

class cRingBufferFrame
 

Detailed Description

Definition at line 107 of file ringbuffer.h.

Constructor & Destructor Documentation

cFrame::cFrame ( const uchar Data,
int  Count,
eFrameType  Type = ftUnknown,
int  Index = -1,
uint32_t  Pts = 0 
)

Creates a new cFrame object.

If Count is negative, the cFrame object will take ownership of the given Data. Otherwise it will allocate Count bytes of memory and copy Data.

Definition at line 393 of file ringbuffer.c.

References esyslog, and MALLOC.

cFrame::~cFrame ( )

Definition at line 411 of file ringbuffer.c.

Member Function Documentation

int cFrame::Count ( void  ) const
inline
uchar* cFrame::Data ( void  ) const
inline

Definition at line 122 of file ringbuffer.h.

Referenced by cDvbPlayer::Action().

int cFrame::Index ( void  ) const
inline

Definition at line 125 of file ringbuffer.h.

Referenced by cDvbPlayer::Action().

uint32_t cFrame::Pts ( void  ) const
inline

Definition at line 126 of file ringbuffer.h.

Referenced by cDvbPlayer::Action().

eFrameType cFrame::Type ( void  ) const
inline

Definition at line 124 of file ringbuffer.h.

Friends And Related Function Documentation

friend class cRingBufferFrame
friend

Definition at line 108 of file ringbuffer.h.

Member Data Documentation

int cFrame::count
private

Definition at line 112 of file ringbuffer.h.

uchar* cFrame::data
private

Definition at line 111 of file ringbuffer.h.

int cFrame::index
private

Definition at line 114 of file ringbuffer.h.

cFrame* cFrame::next
private
uint32_t cFrame::pts
private

Definition at line 115 of file ringbuffer.h.

eFrameType cFrame::type
private

Definition at line 113 of file ringbuffer.h.


The documentation for this class was generated from the following files: