cDvbSpuDecoder Class Reference

#include <dvbspu.h>

Inheritance diagram for cDvbSpuDecoder:

Inheritance graph
[legend]
Collaboration diagram for cDvbSpuDecoder:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cDvbSpuDecoder ()
 ~cDvbSpuDecoder ()
int setTime (uint32_t pts)
cSpuDecoder::eScaleMode getScaleMode (void)
void setScaleMode (cSpuDecoder::eScaleMode ScaleMode)
void setPalette (uint32_t *pal)
void setHighlight (uint16_t sx, uint16_t sy, uint16_t ex, uint16_t ey, uint32_t palette)
void clearHighlight (void)
void Empty (void)
void Hide (void)
void Draw (void)
bool IsVisible (void)
void processSPU (uint32_t pts, uint8_t *buf, bool AllowedShow)

Private Types

enum  spFlag { spNONE, spHIDE, spSHOW, spMENU }

Private Member Functions

int cmdOffs (void)
int spuSize (void)
sDvbSpuRect CalcAreaSize (sDvbSpuRect fgsize, cBitmap *fgbmp, sDvbSpuRect bgsize, cBitmap *bgbmp)

Private Attributes

cOsdosd
cMutex mutex
uint8_t * spu
uint32_t spupts
bool clean
bool ready
spFlag state
cSpuDecoder::eScaleMode scaleMode
bool highlight
sDvbSpuRect hlpsize
aDvbSpuPalDescr hlpDescr
cDvbSpuPalette palette
sDvbSpuRect size
aDvbSpuPalDescr palDescr
uint16_t DCSQ_offset
uint16_t prev_DCSQ_offset
cDvbSpuBitmapspubmp
bool allowedShow


Detailed Description

Definition at line 92 of file dvbspu.h.


Member Enumeration Documentation

enum cDvbSpuDecoder::spFlag [private]

Enumerator:
spNONE 
spHIDE 
spSHOW 
spMENU 

Definition at line 103 of file dvbspu.h.


Constructor & Destructor Documentation

cDvbSpuDecoder::cDvbSpuDecoder (  ) 

Definition at line 225 of file dvbspu.c.

References allowedShow, clean, cSpuDecoder::eSpuNormal, osd, scaleMode, spu, and spubmp.

cDvbSpuDecoder::~cDvbSpuDecoder (  ) 

Definition at line 235 of file dvbspu.c.

References osd, spu, and spubmp.


Member Function Documentation

int cDvbSpuDecoder::cmdOffs ( void   )  [inline, private]

Definition at line 126 of file dvbspu.h.

References spu.

Referenced by processSPU(), and setTime().

int cDvbSpuDecoder::spuSize ( void   )  [inline, private]

Definition at line 129 of file dvbspu.h.

References spu.

sDvbSpuRect cDvbSpuDecoder::CalcAreaSize ( sDvbSpuRect  fgsize,
cBitmap fgbmp,
sDvbSpuRect  bgsize,
cBitmap bgbmp 
) [private]

Definition at line 308 of file dvbspu.c.

References max(), min(), size, sDvbSpuRect::x1, sDvbSpuRect::x2, sDvbSpuRect::y1, and sDvbSpuRect::y2.

Referenced by Draw().

Here is the call graph for this function:

int cDvbSpuDecoder::setTime ( uint32_t  pts  )  [virtual]

cSpuDecoder::eScaleMode cDvbSpuDecoder::getScaleMode ( void   )  [inline, virtual]

Implements cSpuDecoder.

Definition at line 141 of file dvbspu.h.

References scaleMode.

void cDvbSpuDecoder::setScaleMode ( cSpuDecoder::eScaleMode  ScaleMode  )  [virtual]

Implements cSpuDecoder.

Definition at line 261 of file dvbspu.c.

References scaleMode.

void cDvbSpuDecoder::setPalette ( uint32_t *  pal  )  [virtual]

Implements cSpuDecoder.

Definition at line 266 of file dvbspu.c.

References palette, and cDvbSpuPalette::setPalette().

Here is the call graph for this function:

void cDvbSpuDecoder::setHighlight ( uint16_t  sx,
uint16_t  sy,
uint16_t  ex,
uint16_t  ey,
uint32_t  palette 
) [virtual]

void cDvbSpuDecoder::clearHighlight ( void   )  [virtual]

Implements cSpuDecoder.

Definition at line 298 of file dvbspu.c.

References clean, highlight, hlpsize, sDvbSpuRect::x1, sDvbSpuRect::x2, sDvbSpuRect::y1, and sDvbSpuRect::y2.

Referenced by Empty().

void cDvbSpuDecoder::Empty ( void   )  [virtual]

Implements cSpuDecoder.

Definition at line 398 of file dvbspu.c.

References clean, clearHighlight(), Hide(), spu, and spubmp.

Referenced by setTime().

Here is the call graph for this function:

void cDvbSpuDecoder::Hide ( void   )  [virtual]

Implements cSpuDecoder.

Definition at line 391 of file dvbspu.c.

References mutex, and osd.

Referenced by Draw(), Empty(), and setTime().

void cDvbSpuDecoder::Draw ( void   )  [virtual]

bool cDvbSpuDecoder::IsVisible ( void   )  [inline, virtual]

Implements cSpuDecoder.

Definition at line 150 of file dvbspu.h.

References osd.

void cDvbSpuDecoder::processSPU ( uint32_t  pts,
uint8_t *  buf,
bool  AllowedShow 
) [virtual]

Implements cSpuDecoder.

Definition at line 242 of file dvbspu.c.

References allowedShow, clean, cmdOffs(), DCSQ_offset, DEBUG, prev_DCSQ_offset, setTime(), spu, spubmp, and spupts.

Here is the call graph for this function:


Member Data Documentation

Definition at line 94 of file dvbspu.h.

Referenced by cDvbSpuDecoder(), Draw(), Hide(), IsVisible(), and ~cDvbSpuDecoder().

Definition at line 95 of file dvbspu.h.

Referenced by Draw(), and Hide().

uint8_t* cDvbSpuDecoder::spu [private]

Definition at line 98 of file dvbspu.h.

Referenced by cDvbSpuDecoder(), cmdOffs(), Empty(), processSPU(), setTime(), spuSize(), and ~cDvbSpuDecoder().

uint32_t cDvbSpuDecoder::spupts [private]

Definition at line 99 of file dvbspu.h.

Referenced by processSPU(), and setTime().

bool cDvbSpuDecoder::clean [private]

Definition at line 100 of file dvbspu.h.

Referenced by cDvbSpuDecoder(), clearHighlight(), Draw(), Empty(), processSPU(), setHighlight(), and setTime().

bool cDvbSpuDecoder::ready [private]

Definition at line 101 of file dvbspu.h.

Definition at line 104 of file dvbspu.h.

Referenced by setTime().

Definition at line 106 of file dvbspu.h.

Referenced by cDvbSpuDecoder(), getScaleMode(), and setScaleMode().

bool cDvbSpuDecoder::highlight [private]

Definition at line 109 of file dvbspu.h.

Referenced by clearHighlight(), Draw(), and setHighlight().

Definition at line 110 of file dvbspu.h.

Referenced by clearHighlight(), Draw(), and setHighlight().

Definition at line 111 of file dvbspu.h.

Referenced by Draw(), and setHighlight().

Definition at line 114 of file dvbspu.h.

Referenced by Draw(), and setPalette().

Definition at line 117 of file dvbspu.h.

Referenced by CalcAreaSize(), and setTime().

Definition at line 118 of file dvbspu.h.

Referenced by Draw(), and setTime().

uint16_t cDvbSpuDecoder::DCSQ_offset [private]

Definition at line 120 of file dvbspu.h.

Referenced by processSPU(), and setTime().

Definition at line 121 of file dvbspu.h.

Referenced by processSPU(), and setTime().

Definition at line 123 of file dvbspu.h.

Referenced by cDvbSpuDecoder(), Draw(), Empty(), processSPU(), setTime(), and ~cDvbSpuDecoder().

Definition at line 124 of file dvbspu.h.

Referenced by cDvbSpuDecoder(), processSPU(), and setTime().


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

Generated on Tue Nov 4 19:58:44 2008 for VDR by  doxygen 1.5.6