]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
DVB Subtitles
[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 class VDR;
34 class Video;
35 class Timers;
36 class Player;
37 class Recording;
38 class VAudioSelector;
39 class Message;
40 class BoxStack;
41 class VInfo;
42 class Bitmap;
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);
50     ~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&);
59     void clearOSD();
60     void clearOSDArea(UINT posX, UINT posY, UINT width, UINT height);
61
62   private:
63     BoxStack* boxstack;
64     VDR* vdr;
65     Video* video;
66     Timers* timers;
67     Player* player;
68     Recording* myRec;
69
70     VAudioSelector* vas;
71
72     Colour transparent;
73     Colour barBlue;
74
75     UCHAR videoMode;
76     void toggleChopSides();
77
78     bool playing;
79
80     bool barShowing;
81     bool barGenHold;
82     bool barScanHold;
83     bool barVasHold;
84
85     void doAudioSelector();
86     void doBar(int action);
87     void drawBarClocks();
88     void stopPlay();
89     void removeBar();
90     void doSummary();
91     void removeSummary();
92     Region barRegion;
93     Region clocksRegion;
94
95     UINT startMargin;
96     UINT endMargin;
97
98     Wwss wss;
99     Region wssRegion;
100     bool dowss;
101     
102     VInfo* vsummary;
103 };
104
105 #endif