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