]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
Fix text corruption in channel number display on live tv
[vompclient.git] / vvideorec.h
1 /*
2     Copyright 2004-2019 Chris Tallon
3
4     This file is part of VOMP.
5
6     VOMP is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     VOMP is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with VOMP; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19 */
20
21 #ifndef VVIDEOREC_H
22 #define VVIDEOREC_H
23
24 #include <stdio.h>
25
26 #include "boxx.h"
27 #include "timerreceiver.h"
28 #include "region.h"
29 #include "colour.h"
30 #include "osdreceiver.h"
31
32 #include "video.h"
33
34 #ifdef PAL_WSS
35 #include "wwss.h"
36 #endif
37
38 class VDR;
39 class Timers;
40 class Player;
41 class Recording;
42 class VAudioSelector;
43 class Message;
44 class BoxStack;
45 class VInfo;
46 class Bitmap;
47
48
49
50
51 //#include "vepg.h" // for testing EPG in NTSC with a NTSC test video
52
53 class VVideoRec : public Boxx, public TimerReceiver, public OSDReceiver
54 {
55   public:
56     VVideoRec(Recording* rec, bool ish264);
57     virtual ~VVideoRec();
58     void preDelete();
59     int handleCommand(int command);
60     void go(bool resume);
61
62     void timercall(int clientReference);
63     void processMessage(Message* m);
64
65     void drawOSDBitmap(UINT posX, UINT posY, const Bitmap&, const DisplayRegion& region);
66     void clearOSD();
67     void clearOSDArea(UINT posX, UINT posY, UINT width, UINT height, const DisplayRegion& region);
68
69     void doTeletext();
70
71   private:
72     BoxStack* boxstack;
73     VDR* vdr;
74     Video* video;
75     Timers* timers;
76     Player* player;
77     Recording* myRec;
78
79     VAudioSelector* vas;
80
81     DrawStyle transparent;
82     DrawStyle barBlue;
83
84     UCHAR videoMode;
85     void toggleChopSides();
86
87     bool playing;
88
89     bool barShowing;
90     bool barGenHold;
91     bool barScanHold;
92     bool barVasHold;
93
94     void doAudioSelector();
95     void doBar(int action);
96     void drawBarClocks();
97     void stopPlay();
98     void removeBar();
99     void doSummary();
100     void removeSummary();
101     Region barRegion;
102     Region clocksRegion;
103
104     UINT startMargin;
105     UINT endMargin;
106
107         int lastbar;
108 #ifdef PAL_WSS
109     Wwss wss;
110     Region wssRegion;
111     bool dowss;
112 #endif
113     
114     VInfo* vsummary;
115 };
116
117 #endif