summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.h38
1 files changed, 18 insertions, 20 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h
index 75b9f12..a7e51fb 100644
--- a/noncore/multimedia/opieplayer2/lib.h
+++ b/noncore/multimedia/opieplayer2/lib.h
@@ -58,67 +58,67 @@ namespace XINE {
58 class Lib : public ThreadUtil::Channel { 58 class Lib : public ThreadUtil::Channel {
59 Q_OBJECT 59 Q_OBJECT
60 public: 60 public:
61 Lib(XineVideoWidget* = 0); 61 Lib(XineVideoWidget* = 0);
62 ~Lib(); 62 ~Lib();
63 QCString version(); 63 QCString version();
64 int majorVersion()/*const*/; 64 static int majorVersion();
65 int minorVersion()/*const*/; 65 static int minorVersion();
66 int subVersion()/*const*/; 66 static int subVersion();
67 67
68 68
69 void resize ( const QSize &s ); 69 void resize ( const QSize &s );
70 70
71 int play( const QString& fileName, 71 int play( const QString& fileName,
72 int startPos = 0, 72 int startPos = 0,
73 int start_time = 0 ); 73 int start_time = 0 );
74 void stop() /*const*/; 74 void stop();
75 void pause()/*const*/; 75 void pause();
76 76
77 int speed() /*const*/; 77 int speed() const;
78 78
79 /** 79 /**
80 * Set the speed of the stream, if codec supports it 80 * Set the speed of the stream, if codec supports it
81 * XINE_SPEED_PAUSE 0 81 * XINE_SPEED_PAUSE 0
82 * XINE_SPEED_SLOW_4 1 82 * XINE_SPEED_SLOW_4 1
83 * XINE_SPEED_SLOW_2 2 83 * XINE_SPEED_SLOW_2 2
84 * XINE_SPEED_NORMAL 4 84 * XINE_SPEED_NORMAL 4
85 * XINE_SPEED_FAST_2 8 85 * XINE_SPEED_FAST_2 8
86 *XINE_SPEED_FAST_4 16 86 *XINE_SPEED_FAST_4 16
87 */ 87 */
88 void setSpeed( int speed = XINE_SPEED_PAUSE ); 88 void setSpeed( int speed = XINE_SPEED_PAUSE );
89 89
90 int status() /*const*/; 90 int status() const;
91 91
92 int currentPosition()/*const*/; 92 int currentPosition()const;
93 //in seconds 93 //in seconds
94 int currentTime()/*const*/; 94 int currentTime()const;
95 95
96 int length() /*const*/; 96 int length() const;
97 97
98 bool isSeekable()/*const*/; 98 bool isSeekable()const;
99 99
100 /** 100 /**
101 * Whether or not to show video output 101 * Whether or not to show video output
102 */ 102 */
103 void setShowVideo(bool video); 103 void setShowVideo(bool video);
104 104
105 /** 105 /**
106 * is we show video 106 * is we show video
107 */ 107 */
108 bool isShowingVideo() /*const*/; 108 bool isShowingVideo() const;
109 109
110 /** 110 /**
111 * 111 *
112 */ 112 */
113 void showVideoFullScreen( bool fullScreen ); 113 void showVideoFullScreen( bool fullScreen );
114 114
115 /** 115 /**
116 * 116 *
117 */ 117 */
118 bool isVideoFullScreen()/*const*/ ; 118 bool isVideoFullScreen() const;
119 119
120 120
121 /** 121 /**
122 * Get the meta info (like author etc) from the stream 122 * Get the meta info (like author etc) from the stream
123 * XINE_META_INFO_TITLE 0 123 * XINE_META_INFO_TITLE 0
124 * XINE_META_INFO_COMMENT 1 124 * XINE_META_INFO_COMMENT 1
@@ -128,29 +128,29 @@ namespace XINE {
128 * XINE_META_INFO_YEAR 5 128 * XINE_META_INFO_YEAR 5
129 * XINE_META_INFO_VIDEOCODEC 6 129 * XINE_META_INFO_VIDEOCODEC 6
130 * XINE_META_INFO_AUDIOCODEC 7 130 * XINE_META_INFO_AUDIOCODEC 7
131 * XINE_META_INFO_SYSTEMLAYER 8 131 * XINE_META_INFO_SYSTEMLAYER 8
132 * XINE_META_INFO_INPUT_PLUGIN 9 132 * XINE_META_INFO_INPUT_PLUGIN 9
133 */ 133 */
134 QString metaInfo( int number ); 134 QString metaInfo( int number ) const;
135 135
136 /** 136 /**
137 * 137 *
138 */ 138 */
139 bool isScaling(); 139 bool isScaling() const;
140 140
141 /** 141 /**
142 * seek to a position 142 * seek to a position
143 */ 143 */
144 void seekTo( int time ); 144 void seekTo( int time );
145 145
146 /** 146 /**
147 * 147 *
148 * @return is media stream has video 148 * @return is media stream has video
149 */ 149 */
150 bool hasVideo(); 150 bool hasVideo() const;
151 151
152 /** 152 /**
153 * 153 *
154 */ 154 */
155 void setScaling( bool ); 155 void setScaling( bool );
156 156
@@ -160,34 +160,32 @@ namespace XINE {
160 */ 160 */
161 void setGamma( int ); 161 void setGamma( int );
162 162
163 /** 163 /**
164 * test 164 * test
165 */ 165 */
166 Frame currentFrame()/*const*/; 166 Frame currentFrame() const;
167 167
168 /** 168 /**
169 * Returns the error code 169 * Returns the error code
170 * XINE_ERROR_NONE 0 170 * XINE_ERROR_NONE 0
171 * XINE_ERROR_NO_INPUT_PLUGIN 1 171 * XINE_ERROR_NO_INPUT_PLUGIN 1
172 * XINE_ERROR_NO_DEMUXER_PLUGIN 2 172 * XINE_ERROR_NO_DEMUXER_PLUGIN 2
173 * XINE_ERROR_DEMUXER_FAILED 3 173 * XINE_ERROR_DEMUXER_FAILED 3
174 */ 174 */
175 int error() /*const*/; 175 int error() const;
176 176
177 signals: 177 signals:
178 178
179 void stopped(); 179 void stopped();
180 180
181 protected: 181 protected:
182 virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType ); 182 virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType );
183 183
184 private: 184 private:
185 int m_bytes_per_pixel; 185 int m_bytes_per_pixel;
186 int m_length, m_pos, m_time;
187 int m_major_version, m_minor_version, m_sub_version;
188 bool m_video:1; 186 bool m_video:1;
189 XineVideoWidget *m_wid; 187 XineVideoWidget *m_wid;
190 xine_t *m_xine; 188 xine_t *m_xine;
191 xine_stream_t *m_stream; 189 xine_stream_t *m_stream;
192 xine_cfg_entry_t *m_config; 190 xine_cfg_entry_t *m_config;
193 xine_vo_driver_t *m_videoOutput; 191 xine_vo_driver_t *m_videoOutput;