|
vdr
2.0.7
|
Public Member Functions | |
| cSubtitleRegion (int RegionId) | |
| int | RegionId (void) |
| int | Version (void) |
| int | ClutId (void) |
| int | Level (void) |
| int | Depth (void) |
| void | FillRegion (tIndex Index) |
| cSubtitleObject * | GetObjectById (int ObjectId, bool New=false) |
| int | HorizontalAddress (void) |
| int | VerticalAddress (void) |
| void | SetVersion (int Version) |
| void | SetClutId (int ClutId) |
| void | SetLevel (int Level) |
| void | SetDepth (int Depth) |
| void | SetHorizontalAddress (int HorizontalAddress) |
| void | SetVerticalAddress (int VerticalAddress) |
| void | UpdateTextData (cSubtitleClut *Clut) |
Public Member Functions inherited from cListObject | |
| cListObject (void) | |
| virtual | ~cListObject () |
| virtual int | Compare (const cListObject &ListObject) const |
| void | Append (cListObject *Object) |
| void | Insert (cListObject *Object) |
| void | Unlink (void) |
| int | Index (void) const |
| cListObject * | Prev (void) const |
| cListObject * | Next (void) const |
Public Member Functions inherited from cBitmap | |
| cBitmap (int Width, int Height, int Bpp, int X0=0, int Y0=0) | |
| cBitmap (const char *FileName) | |
| cBitmap (const char *const Xpm[]) | |
| virtual | ~cBitmap () |
| int | X0 (void) const |
| int | Y0 (void) const |
| int | Width (void) const |
| int | Height (void) const |
| void | SetSize (int Width, int Height) |
| bool | Contains (int x, int y) const |
| bool | Covers (int x1, int y1, int x2, int y2) const |
| bool | Intersects (int x1, int y1, int x2, int y2) const |
| bool | Dirty (int &x1, int &y1, int &x2, int &y2) |
| void | Clean (void) |
| bool | LoadXpm (const char *FileName) |
| bool | SetXpm (const char *const Xpm[], bool IgnoreNone=false) |
| void | SetIndex (int x, int y, tIndex Index) |
| void | DrawPixel (int x, int y, tColor Color) |
| void | DrawBitmap (int x, int y, const cBitmap &Bitmap, tColor ColorFg=0, tColor ColorBg=0, bool ReplacePalette=false, bool Overlay=false) |
| void | DrawText (int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width=0, int Height=0, int Alignment=taDefault) |
| void | DrawRectangle (int x1, int y1, int x2, int y2, tColor Color) |
| void | DrawEllipse (int x1, int y1, int x2, int y2, tColor Color, int Quadrants=0) |
| void | DrawSlope (int x1, int y1, int x2, int y2, tColor Color, int Type) |
| const tIndex * | Data (int x, int y) const |
| tColor | GetColor (int x, int y) const |
| void | ReduceBpp (const cPalette &Palette) |
| void | ShrinkBpp (int NewBpp) |
| cBitmap * | Scaled (double FactorX, double FactorY, bool AntiAlias=false) |
Public Member Functions inherited from cPalette | |
| cPalette (int Bpp=8) | |
| virtual | ~cPalette () |
| void | SetAntiAliasGranularity (uint FixedColors, uint BlendColors) |
| int | Bpp (void) const |
| void | Reset (void) |
| int | Index (tColor Color) |
| tColor | Color (int Index) const |
| void | SetBpp (int Bpp) |
| void | SetColor (int Index, tColor Color) |
| const tColor * | Colors (int &NumColors) const |
| void | Take (const cPalette &Palette, tIndexes *Indexes=NULL, tColor ColorFg=0, tColor ColorBg=0) |
| void | Replace (const cPalette &Palette) |
| tColor | Blend (tColor ColorFg, tColor ColorBg, uint8_t Level) const |
| int | ClosestColor (tColor Color, int MaxDiff=INT_MAX) const |
Private Attributes | |
| int | regionId |
| int | version |
| int | clutId |
| int | horizontalAddress |
| int | verticalAddress |
| int | level |
| int | lineHeight |
| cList< cSubtitleObject > | objects |
Additional Inherited Members | |
Protected Types inherited from cPalette | |
| typedef tIndex | tIndexes [MAXNUMCOLORS] |
Definition at line 423 of file dvbsubtitle.c.
| cSubtitleRegion::cSubtitleRegion | ( | int | RegionId | ) |
Definition at line 453 of file dvbsubtitle.c.
References clutId, horizontalAddress, level, lineHeight, regionId, RegionId(), version, and verticalAddress.
|
inline |
Definition at line 437 of file dvbsubtitle.c.
References clutId.
Referenced by cDvbSubtitleConverter::ExtractSegment(), cDvbSubtitleConverter::FinishPage(), and SetClutId().
|
inline |
Definition at line 439 of file dvbsubtitle.c.
References cPalette::Bpp().
Referenced by cDvbSubtitleConverter::ExtractSegment(), and UpdateTextData().
| void cSubtitleRegion::FillRegion | ( | tIndex | Index | ) |
Definition at line 465 of file dvbsubtitle.c.
References dbgregions, cBitmap::Height(), cBitmap::SetIndex(), and cBitmap::Width().
Referenced by cDvbSubtitleConverter::ExtractSegment().
| cSubtitleObject * cSubtitleRegion::GetObjectById | ( | int | ObjectId, |
| bool | New = false |
||
| ) |
Definition at line 474 of file dvbsubtitle.c.
References cListBase::Add(), cList< T >::First(), cList< T >::Next(), and objects.
Referenced by cDvbSubtitleConverter::ExtractSegment().
|
inline |
Definition at line 442 of file dvbsubtitle.c.
References horizontalAddress.
Referenced by cDvbSubtitleConverter::FinishPage(), and SetHorizontalAddress().
|
inline |
Definition at line 438 of file dvbsubtitle.c.
References level.
Referenced by cDvbSubtitleConverter::ExtractSegment(), cDvbSubtitleConverter::FinishPage(), and SetLevel().
|
inline |
Definition at line 435 of file dvbsubtitle.c.
References regionId.
Referenced by cSubtitleRegion(), cDvbSubtitleConverter::ExtractSegment(), and cDvbSubtitleConverter::FinishPage().
|
inline |
Definition at line 445 of file dvbsubtitle.c.
References ClutId().
Referenced by cDvbSubtitleConverter::ExtractSegment().
| void cSubtitleRegion::SetDepth | ( | int | Depth | ) |
Definition at line 511 of file dvbsubtitle.c.
References cPalette::SetBpp().
Referenced by cDvbSubtitleConverter::ExtractSegment().
|
inline |
Definition at line 448 of file dvbsubtitle.c.
References HorizontalAddress().
Referenced by cDvbSubtitleConverter::ExtractSegment().
| void cSubtitleRegion::SetLevel | ( | int | Level | ) |
Definition at line 505 of file dvbsubtitle.c.
References level, and Level().
Referenced by cDvbSubtitleConverter::ExtractSegment().
|
inline |
Definition at line 444 of file dvbsubtitle.c.
References Version().
Referenced by cDvbSubtitleConverter::ExtractSegment().
|
inline |
Definition at line 449 of file dvbsubtitle.c.
References VerticalAddress().
Referenced by cDvbSubtitleConverter::ExtractSegment().
| void cSubtitleRegion::UpdateTextData | ( | cSubtitleClut * | Clut | ) |
Definition at line 488 of file dvbsubtitle.c.
References cFont::CreateFont(), Depth(), cBitmap::DrawBitmap(), cList< T >::First(), cSetup::FontOsd, cSetup::FontOsdSize, cSubtitleClut::GetPalette(), cFont::Height(), lineHeight, cList< T >::Next(), objects, cBitmap::Scaled(), Setup, Utf8StrLen(), and cFont::Width().
Referenced by cDvbSubtitleConverter::FinishPage().
|
inline |
Definition at line 436 of file dvbsubtitle.c.
References version.
Referenced by cDvbSubtitleConverter::ExtractSegment(), and SetVersion().
|
inline |
Definition at line 443 of file dvbsubtitle.c.
References verticalAddress.
Referenced by cDvbSubtitleConverter::FinishPage(), and SetVerticalAddress().
|
private |
Definition at line 427 of file dvbsubtitle.c.
Referenced by ClutId(), and cSubtitleRegion().
|
private |
Definition at line 428 of file dvbsubtitle.c.
Referenced by cSubtitleRegion(), and HorizontalAddress().
|
private |
Definition at line 430 of file dvbsubtitle.c.
Referenced by cSubtitleRegion(), Level(), and SetLevel().
|
private |
Definition at line 431 of file dvbsubtitle.c.
Referenced by cSubtitleRegion(), and UpdateTextData().
|
private |
Definition at line 432 of file dvbsubtitle.c.
Referenced by GetObjectById(), and UpdateTextData().
|
private |
Definition at line 425 of file dvbsubtitle.c.
Referenced by cSubtitleRegion(), and RegionId().
|
private |
Definition at line 426 of file dvbsubtitle.c.
Referenced by cSubtitleRegion(), and Version().
|
private |
Definition at line 429 of file dvbsubtitle.c.
Referenced by cSubtitleRegion(), and VerticalAddress().
1.8.8