]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
HDTV for Windows
[vompclient.git] / vvideorec.h
1 /*
2     Copyright 2004-2005 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 "wwss.h"
29 #include "region.h"
30 #include "colour.h"
31 #include "osdreceiver.h"
32
33 #include "video.h"
34
35 class VDR;
36 class Timers;
37 class Player;
38 class Recording;
39 class VAudioSelector;
40 class Message;
41 class BoxStack;
42 class VInfo;
43 class Bitmap;
44
45
46
47
48 //#include "vepg.h" // for testing EPG in NTSC with a NTSC test video
49
50 class VVideoRec : public Boxx, public TimerReceiver, public OSDReceiver
51 {
52   public:
53     VVideoRec(Recording* rec, bool ish264);
54     ~VVideoRec();
55     void preDelete();
56     int handleCommand(int command);
57     void go(bool resume);
58
59     void timercall(int clientReference);
60     void processMessage(Message* m);
61
62     void drawOSDBitmap(UINT posX, UINT posY, const Bitmap&);
63     void clearOSD();
64     void clearOSDArea(UINT posX, UINT posY, UINT width, UINT height);
65
66     void doTeletext();
67
68         hmsf framesToHMSF(ULONG frames); //moved from video, this is a recording property, if needed elsewhere -> recording
69
70   private:
71     BoxStack* boxstack;
72     VDR* vdr;
73     Video* video;
74     Timers* timers;
75     Player* player;
76     Recording* myRec;
77
78     VAudioSelector* vas;
79
80     Colour transparent;
81     Colour barBlue;
82
83     UCHAR videoMode;
84     void toggleChopSides();
85
86     bool playing;
87
88     bool barShowing;
89     bool barGenHold;
90     bool barScanHold;
91     bool barVasHold;
92
93     void doAudioSelector();
94     void doBar(int action);
95     void drawBarClocks();
96     void stopPlay();
97     void removeBar();
98     void doSummary();
99     void removeSummary();
100     Region barRegion;
101     Region clocksRegion;
102
103     UINT startMargin;
104     UINT endMargin;
105
106     Wwss wss;
107     Region wssRegion;
108     bool dowss;
109     
110     VInfo* vsummary;
111 };
112
113 #endif