]> git.vomp.tv Git - vompclient.git/blob - vvideomedia.h
DrawStyle: Add consts, add white and transparent statics
[vompclient.git] / vvideomedia.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 VVIDEOMEDIA_H
22 #define VVIDEOMEDIA_H
23
24 #include <stdio.h>
25
26 #include "boxx.h"
27 #include "timers.h"
28 #include "wwss.h"
29 #include "region.h"
30 #include "colour.h"
31 #include "recinfo.h"
32
33 class PlayerMedia;
34 class Recording;
35 class VAudioSelector;
36 class Message;
37 class BoxStack;
38 class VInfo;
39 class Media;
40 class VMediaList;
41
42
43 class VVideoMedia : public Boxx, public TimerReceiver
44 {
45   public:
46     VVideoMedia(Media* myMedia,VMediaList *lparent);  //media has to contain URI
47     virtual ~VVideoMedia();
48     int handleCommand(int command);
49     void go(bool resume);
50
51     void timercall(int clientReference);
52     void processMessage(Message* m);
53
54
55
56   private:
57     BoxStack* boxstack;
58     Video* video;
59     Timers* timers;
60     PlayerMedia* player;
61     Media* myMedia;
62
63     VAudioSelector* vas;
64
65     DrawStyle barBlue;
66
67     UCHAR videoMode;
68     void toggleChopSides();
69
70     bool playing;
71
72     bool barShowing;
73     bool barGenHold;
74     bool barScanHold;
75     bool barVasHold;
76
77     void doAudioSelector();
78     void doBar(int action);
79     void drawBarClocks();
80     void stopPlay();
81     void removeBar();
82     void doSummary();
83     void removeSummary();
84     //create an abbreviated text
85     //buffer must be len(title,intext)+3
86     //returns buffer
87     char * shortendedText(const char *title,const char *title2,const char *intext,char *buffer,UINT width);
88     hmsf ptsToHMS(ULLONG pts);
89     Region barRegion;
90     Region clocksRegion;
91
92
93     Wwss wss;
94     Region wssRegion;
95     bool dowss;
96     
97     VInfo* vsummary;
98     VMediaList *lparent;
99     ULLONG lengthBytes;
100 };
101
102 #endif