vdr  2.2.0
Classes | Macros | Variables
dvbsubtitle.c File Reference
#include "dvbsubtitle.h"
#include <inttypes.h>
#include "device.h"
#include "libsi/si.h"

Go to the source code of this file.

Classes

class  cSubtitleDebug
 
class  cSubtitleClut
 
class  cSubtitleObject
 
class  cSubtitleObjects
 
class  cSubtitleObjectRef
 
class  cSubtitleObjectRefPgs
 
class  cSubtitleRegion
 
class  cSubtitleRegionRef
 
class  cDvbSubtitlePage
 
class  cDvbSubtitleAssembler
 
class  cDvbSubtitleBitmaps
 

Macros

#define __STDC_FORMAT_MACROS
 
#define PAGE_COMPOSITION_SEGMENT   0x10
 
#define REGION_COMPOSITION_SEGMENT   0x11
 
#define CLUT_DEFINITION_SEGMENT   0x12
 
#define OBJECT_DATA_SEGMENT   0x13
 
#define DISPLAY_DEFINITION_SEGMENT   0x14
 
#define DISPARITY_SIGNALING_SEGMENT   0x15
 
#define END_OF_DISPLAY_SET_SEGMENT   0x80
 
#define STUFFING_SEGMENT   0xFF
 
#define PGS_PALETTE_SEGMENT   0x14
 
#define PGS_OBJECT_SEGMENT   0x15
 
#define PGS_PRESENTATION_SEGMENT   0x16
 
#define PGS_WINDOW_SEGMENT   0x17
 
#define PGS_DISPLAY_SEGMENT   0x80
 
#define dbgdisplay(a...)    if (DebugDisplay) SD.WriteHtml(a)
 
#define dbgpages(a...)    if (DebugPages) SD.WriteHtml(a)
 
#define dbgregions(a...)    if (DebugRegions) SD.WriteHtml(a)
 
#define dbgobjects(a...)    if (DebugObjects) SD.WriteHtml(a)
 
#define dbgconverter(a...)   if (DebugConverter) SD.WriteHtml(a)
 
#define dbgsegments(a...)   if (DebugSegments) SD.WriteHtml(a)
 
#define dbgpixel(a...)    if (DebugPixel) SD.WriteHtml(a)
 
#define dbgcluts(a...)    if (DebugCluts) SD.WriteHtml(a)
 
#define dbgoutput(a...)    if (DebugOutput) SD.WriteHtml(a)
 
#define DBGMAXBITMAPS   100
 
#define DBGBITMAPWIDTH   400
 
#define FIX_SUBTITLE_VERSION_BROADCASTER_STUPIDITY
 
#define DBGBACKGROUND   0xA0A0A0
 
#define BORDER
 
#define LimitTo32Bit(n)   ((n) & 0x00000000FFFFFFFFL)
 

Variables

static bool DebugNormal = false
 
static bool DebugVerbose = false
 
static bool DebugDisplay = DebugVerbose || DebugNormal
 
static bool DebugPages = DebugVerbose || DebugNormal
 
static bool DebugRegions = DebugVerbose || DebugNormal
 
static bool DebugObjects = DebugVerbose || DebugNormal
 
static bool DebugConverter = DebugVerbose
 
static bool DebugSegments = DebugVerbose
 
static bool DebugPixel = DebugVerbose
 
static bool DebugCluts = DebugVerbose
 
static bool DebugOutput = DebugVerbose
 
static cSubtitleDebug SD
 

Macro Definition Documentation

#define __STDC_FORMAT_MACROS

Definition at line 14 of file dvbsubtitle.c.

#define BORDER
#define CLUT_DEFINITION_SEGMENT   0x12

Definition at line 21 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define DBGBACKGROUND   0xA0A0A0
#define DBGBITMAPWIDTH   400
#define dbgcluts (   a...)    if (DebugCluts) SD.WriteHtml(a)

Definition at line 56 of file dvbsubtitle.c.

Referenced by cSubtitleClut::Parse(), and cSubtitleClut::ParsePgs().

#define dbgconverter (   a...)    if (DebugConverter) SD.WriteHtml(a)
#define dbgdisplay (   a...)    if (DebugDisplay) SD.WriteHtml(a)

Definition at line 49 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define DBGMAXBITMAPS   100

Definition at line 59 of file dvbsubtitle.c.

Referenced by cSubtitleDebug::Active().

#define dbgobjects (   a...)    if (DebugObjects) SD.WriteHtml(a)
#define dbgoutput (   a...)    if (DebugOutput) SD.WriteHtml(a)
#define dbgpages (   a...)    if (DebugPages) SD.WriteHtml(a)
#define dbgpixel (   a...)    if (DebugPixel) SD.WriteHtml(a)

Definition at line 55 of file dvbsubtitle.c.

Referenced by cSubtitleObject::DecodeSubBlock().

#define dbgregions (   a...)    if (DebugRegions) SD.WriteHtml(a)
#define dbgsegments (   a...)    if (DebugSegments) SD.WriteHtml(a)
#define DISPARITY_SIGNALING_SEGMENT   0x15

Definition at line 24 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define DISPLAY_DEFINITION_SEGMENT   0x14

Definition at line 23 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define END_OF_DISPLAY_SET_SEGMENT   0x80

Definition at line 25 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define FIX_SUBTITLE_VERSION_BROADCASTER_STUPIDITY

Definition at line 62 of file dvbsubtitle.c.

#define LimitTo32Bit (   n)    ((n) & 0x00000000FFFFFFFFL)

Definition at line 1452 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::Action().

#define OBJECT_DATA_SEGMENT   0x13

Definition at line 22 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define PAGE_COMPOSITION_SEGMENT   0x10

Definition at line 19 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define PGS_DISPLAY_SEGMENT   0x80

Definition at line 32 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractPgsSegment().

#define PGS_OBJECT_SEGMENT   0x15

Definition at line 29 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractPgsSegment().

#define PGS_PALETTE_SEGMENT   0x14

Definition at line 28 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractPgsSegment().

#define PGS_PRESENTATION_SEGMENT   0x16

Definition at line 30 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractPgsSegment().

#define PGS_WINDOW_SEGMENT   0x17

Definition at line 31 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractPgsSegment().

#define REGION_COMPOSITION_SEGMENT   0x11

Definition at line 20 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::ExtractSegment().

#define STUFFING_SEGMENT   0xFF

Variable Documentation

bool DebugCluts = DebugVerbose
static

Definition at line 46 of file dvbsubtitle.c.

bool DebugConverter = DebugVerbose
static

Definition at line 43 of file dvbsubtitle.c.

bool DebugDisplay = DebugVerbose || DebugNormal
static

Definition at line 39 of file dvbsubtitle.c.

bool DebugNormal = false
static

Definition at line 37 of file dvbsubtitle.c.

bool DebugObjects = DebugVerbose || DebugNormal
static

Definition at line 42 of file dvbsubtitle.c.

Referenced by cSubtitleObject::Parse().

bool DebugOutput = DebugVerbose
static

Definition at line 47 of file dvbsubtitle.c.

bool DebugPages = DebugVerbose || DebugNormal
static

Definition at line 40 of file dvbsubtitle.c.

Referenced by cDvbSubtitleConverter::FinishPage().

bool DebugPixel = DebugVerbose
static

Definition at line 45 of file dvbsubtitle.c.

bool DebugRegions = DebugVerbose || DebugNormal
static

Definition at line 41 of file dvbsubtitle.c.

bool DebugSegments = DebugVerbose
static

Definition at line 44 of file dvbsubtitle.c.

bool DebugVerbose = false
static

Definition at line 38 of file dvbsubtitle.c.

cSubtitleDebug SD
static

Definition at line 139 of file dvbsubtitle.c.