vdr
2.0.2
Main Page
Namespaces
Classes
Files
File List
File Members
dvbsubtitle.h
Go to the documentation of this file.
1
/*
2
* dvbsubtitle.h: DVB subtitles
3
*
4
* See the main source file 'vdr.c' for copyright information and
5
* how to reach the author.
6
*
7
* Original author: Marco Schluessler <marco@lordzodiac.de>
8
*
9
* $Id: dvbsubtitle.h 2.7 2012/03/11 13:34:12 kls Exp $
10
*/
11
12
#ifndef __DVBSUBTITLE_H
13
#define __DVBSUBTITLE_H
14
15
#include "
osd.h
"
16
#include "
thread.h
"
17
#include "
tools.h
"
18
19
class
cDvbSubtitlePage
;
20
class
cDvbSubtitleAssembler
;
// for legacy PES recordings
21
class
cDvbSubtitleBitmaps
;
22
23
class
cDvbSubtitleConverter
:
public
cThread
{
24
private
:
25
static
int
setupLevel
;
26
cDvbSubtitleAssembler
*
dvbSubtitleAssembler
;
27
cOsd
*
osd
;
28
bool
frozen
;
29
int
ddsVersionNumber
;
30
int
displayWidth
;
31
int
displayHeight
;
32
int
windowHorizontalOffset
;
33
int
windowVerticalOffset
;
34
int
windowWidth
;
35
int
windowHeight
;
36
int
osdDeltaX
;
37
int
osdDeltaY
;
38
double
osdFactorX
;
39
double
osdFactorY
;
40
cList<cDvbSubtitlePage>
*
pages
;
41
cList<cDvbSubtitleBitmaps>
*
bitmaps
;
42
tColor
yuv2rgb
(
int
Y,
int
Cb,
int
Cr);
43
void
SetOsdData
(
void
);
44
bool
AssertOsd
(
void
);
45
int
ExtractSegment
(
const
uchar
*Data,
int
Length, int64_t Pts);
46
void
FinishPage
(
cDvbSubtitlePage
*Page);
47
public
:
48
cDvbSubtitleConverter
(
void
);
49
virtual
~cDvbSubtitleConverter
();
50
void
Action
(
void
);
51
void
Reset
(
void
);
52
void
Freeze
(
bool
Status) {
frozen
= Status; }
53
int
ConvertFragments
(
const
uchar
*Data,
int
Length);
// for legacy PES recordings
54
int
Convert
(
const
uchar
*Data,
int
Length);
55
static
void
SetupChanged
(
void
);
56
};
57
58
#endif //__DVBSUBTITLE_H
59
Generated by
1.8.3.1