]> git.vomp.tv Git - vompclient-marten.git/blob - vvideorec.h
Fix bug in demuxer widescreen signaling
[vompclient-marten.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 "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         hmsf framesToHMSF(ULONG frames); //moved from video, this is a recording property, if needed elsewhere -> recording
72
73   private:
74     BoxStack* boxstack;
75     VDR* vdr;
76     Video* video;
77     Timers* timers;
78     Player* player;
79     Recording* myRec;
80
81     VAudioSelector* vas;
82
83     DrawStyle transparent;
84     DrawStyle barBlue;
85
86     UCHAR videoMode;
87     void toggleChopSides();
88
89     bool playing;
90
91     bool barShowing;
92     bool barGenHold;
93     bool barScanHold;
94     bool barVasHold;
95
96     void doAudioSelector();
97     void doBar(int action);
98     void drawBarClocks();
99     void stopPlay();
100     void removeBar();
101     void doSummary();
102     void removeSummary();
103     Region barRegion;
104     Region clocksRegion;
105
106     UINT startMargin;
107     UINT endMargin;
108 #ifdef PAL_WSS
109     Wwss wss;
110     Region wssRegion;
111     bool dowss;
112 #endif
113     
114     VInfo* vsummary;
115 };
116
117 #endif