Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h index 6b67f67..181735c 100644 --- a/noncore/multimedia/opieplayer2/lib.h +++ b/noncore/multimedia/opieplayer2/lib.h | |||
@@ -134,86 +134,88 @@ namespace XINE { | |||
134 | * XINE_META_INFO_SYSTEMLAYER 8 | 134 | * XINE_META_INFO_SYSTEMLAYER 8 |
135 | * XINE_META_INFO_INPUT_PLUGIN 9 | 135 | * XINE_META_INFO_INPUT_PLUGIN 9 |
136 | */ | 136 | */ |
137 | QString metaInfo( int number ) const; | 137 | QString metaInfo( int number ) const; |
138 | 138 | ||
139 | /** | 139 | /** |
140 | * | 140 | * |
141 | */ | 141 | */ |
142 | bool isScaling() const; | 142 | bool isScaling() const; |
143 | 143 | ||
144 | /** | 144 | /** |
145 | * seek to a position | 145 | * seek to a position |
146 | */ | 146 | */ |
147 | void seekTo( int time ); | 147 | void seekTo( int time ); |
148 | 148 | ||
149 | /** | 149 | /** |
150 | * | 150 | * |
151 | * @return is media stream has video | 151 | * @return is media stream has video |
152 | */ | 152 | */ |
153 | bool hasVideo() const; | 153 | bool hasVideo() const; |
154 | 154 | ||
155 | /** | 155 | /** |
156 | * | 156 | * |
157 | */ | 157 | */ |
158 | void setScaling( bool ); | 158 | void setScaling( bool ); |
159 | 159 | ||
160 | /** | 160 | /** |
161 | * Set the Gamma value for video output | 161 | * Set the Gamma value for video output |
162 | * @param int the value between -100 and 100, 0 is original | 162 | * @param int the value between -100 and 100, 0 is original |
163 | */ | 163 | */ |
164 | void setGamma( int ); | 164 | void setGamma( int ); |
165 | 165 | ||
166 | /** | 166 | /** |
167 | * test | 167 | * test |
168 | */ | 168 | */ |
169 | Frame currentFrame() const; | 169 | Frame currentFrame() const; |
170 | 170 | ||
171 | /** | 171 | /** |
172 | * Returns the error code | 172 | * Returns the error code |
173 | * XINE_ERROR_NONE 0 | 173 | * XINE_ERROR_NONE 0 |
174 | * XINE_ERROR_NO_INPUT_PLUGIN 1 | 174 | * XINE_ERROR_NO_INPUT_PLUGIN 1 |
175 | * XINE_ERROR_NO_DEMUXER_PLUGIN 2 | 175 | * XINE_ERROR_NO_DEMUXER_PLUGIN 2 |
176 | * XINE_ERROR_DEMUXER_FAILED 3 | 176 | * XINE_ERROR_DEMUXER_FAILED 3 |
177 | */ | 177 | */ |
178 | int error() const; | 178 | int error() const; |
179 | 179 | ||
180 | void ensureInitialized(); | 180 | void ensureInitialized(); |
181 | 181 | ||
182 | void setWidget( XineVideoWidget *widget ); | ||
183 | |||
182 | signals: | 184 | signals: |
183 | 185 | ||
184 | void stopped(); | 186 | void stopped(); |
185 | 187 | ||
186 | void initialized(); | 188 | void initialized(); |
187 | 189 | ||
188 | protected: | 190 | protected: |
189 | virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType ); | 191 | virtual void receiveMessage( ThreadUtil::ChannelMessage *msg, SendType sendType ); |
190 | 192 | ||
191 | virtual void run(); | 193 | virtual void run(); |
192 | 194 | ||
193 | private: | 195 | private: |
194 | void initialize(); | 196 | void initialize(); |
195 | 197 | ||
196 | int m_bytes_per_pixel; | 198 | int m_bytes_per_pixel; |
197 | bool m_initialized:1; | 199 | bool m_initialized:1; |
198 | bool m_duringInitialization:1; | 200 | bool m_duringInitialization:1; |
199 | bool m_video:1; | 201 | bool m_video:1; |
200 | XineVideoWidget *m_wid; | 202 | XineVideoWidget *m_wid; |
201 | xine_t *m_xine; | 203 | xine_t *m_xine; |
202 | xine_stream_t *m_stream; | 204 | xine_stream_t *m_stream; |
203 | xine_cfg_entry_t *m_config; | 205 | xine_cfg_entry_t *m_config; |
204 | xine_vo_driver_t *m_videoOutput; | 206 | xine_vo_driver_t *m_videoOutput; |
205 | xine_ao_driver_t* m_audioOutput; | 207 | xine_ao_driver_t* m_audioOutput; |
206 | xine_event_queue_t *m_queue; | 208 | xine_event_queue_t *m_queue; |
207 | 209 | ||
208 | void handleXineEvent( const xine_event_t* t ); | 210 | void handleXineEvent( const xine_event_t* t ); |
209 | void handleXineEvent( int type ); | 211 | void handleXineEvent( int type ); |
210 | void drawFrame( uint8_t* frame, int width, int height, int bytes ); | 212 | void drawFrame( uint8_t* frame, int width, int height, int bytes ); |
211 | // C -> C++ bridge for the event system | 213 | // C -> C++ bridge for the event system |
212 | static void xine_event_handler( void* user_data, const xine_event_t* t); | 214 | static void xine_event_handler( void* user_data, const xine_event_t* t); |
213 | static void xine_display_frame( void* user_data, uint8_t* frame , | 215 | static void xine_display_frame( void* user_data, uint8_t* frame , |
214 | int width, int height, int bytes ); | 216 | int width, int height, int bytes ); |
215 | }; | 217 | }; |
216 | }; | 218 | }; |
217 | 219 | ||
218 | 220 | ||
219 | #endif | 221 | #endif |