]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
20 CWFs, fix some snprintf calls
[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, see <https://www.gnu.org/licenses/>.
18 */
19
20 #ifndef VVIDEOREC_H
21 #define VVIDEOREC_H
22
23 #include <stdio.h>
24
25 #include "boxx.h"
26 #include "timerreceiver.h"
27 #include "region.h"
28 #include "colour.h"
29 #include "osdreceiver.h"
30
31 #include "video.h"
32
33 class VDR;
34 class Timers;
35 class Player;
36 class Recording;
37 class VAudioSelector;
38 class Message;
39 class BoxStack;
40 class VInfo;
41 class Bitmap;
42
43
44 //#include "vepg.h" // for testing EPG in NTSC with a NTSC test video
45
46 class VVideoRec : public Boxx, public TimerReceiver, public OSDReceiver
47 {
48   public:
49     VVideoRec(Recording* rec, bool ish264);
50     virtual ~VVideoRec();
51     void preDelete();
52     int handleCommand(int command);
53     void go(bool resume);
54
55     void timercall(int clientReference);
56     void processMessage(Message* m);
57
58     void drawOSDBitmap(UINT posX, UINT posY, const Bitmap&, const DisplayRegion& region);
59     void clearOSD();
60     void clearOSDArea(UINT posX, UINT posY, UINT width, UINT height, const DisplayRegion& region);
61
62     void doTeletext();
63
64   private:
65     BoxStack* boxstack;
66     VDR* vdr;
67     Video* video;
68     Timers* timers;
69     Player* player;
70     Recording* myRec;
71
72     VAudioSelector* vas;
73
74     DrawStyle transparent;
75     DrawStyle barBlue;
76
77     UCHAR videoMode;
78     void toggleChopSides();
79
80     bool playing;
81
82     bool barShowing;
83     bool barGenHold;
84     bool barScanHold;
85     bool barVasHold;
86
87     void doAudioSelector();
88     void doBar(int action);
89     void drawBarClocks();
90     void stopPlay();
91     void removeBar();
92     void doSummary();
93     void removeSummary();
94     Region barRegion;
95     Region clocksRegion;
96
97     UINT startMargin;
98     UINT endMargin;
99
100     int lastbar;
101     
102     VInfo* vsummary;
103 };
104
105 #endif