author | harlekin <harlekin> | 2002-11-10 13:40:33 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-11-10 13:40:33 (UTC) |
commit | ddfc3c3073216d6a9ef15b26e3836b9c3eb2085c (patch) (unidiff) | |
tree | 5bef89c4dc116d09c1864778127ca9106e1f29ae /noncore/multimedia/opieplayer2/lib.h | |
parent | ea3334042e9625c0f67c9a7293a482849f60e4e2 (diff) | |
download | opie-ddfc3c3073216d6a9ef15b26e3836b9c3eb2085c.zip opie-ddfc3c3073216d6a9ef15b26e3836b9c3eb2085c.tar.gz opie-ddfc3c3073216d6a9ef15b26e3836b9c3eb2085c.tar.bz2 |
fixed seeking and further adaption to the new api
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h index 191dbbd..38938a1 100644 --- a/noncore/multimedia/opieplayer2/lib.h +++ b/noncore/multimedia/opieplayer2/lib.h | |||
@@ -69,48 +69,49 @@ namespace XINE { | |||
69 | int play( const QString& fileName, | 69 | int play( const QString& fileName, |
70 | int startPos = 0, | 70 | int startPos = 0, |
71 | int start_time = 0 ); | 71 | int start_time = 0 ); |
72 | void stop() /*const*/; | 72 | void stop() /*const*/; |
73 | void pause()/*const*/; | 73 | void pause()/*const*/; |
74 | 74 | ||
75 | int speed() /*const*/; | 75 | int speed() /*const*/; |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * Set the speed of the stream, if codec supports it | 78 | * Set the speed of the stream, if codec supports it |
79 | * XINE_SPEED_PAUSE 0 | 79 | * XINE_SPEED_PAUSE 0 |
80 | * XINE_SPEED_SLOW_4 1 | 80 | * XINE_SPEED_SLOW_4 1 |
81 | * XINE_SPEED_SLOW_2 2 | 81 | * XINE_SPEED_SLOW_2 2 |
82 | * XINE_SPEED_NORMAL 4 | 82 | * XINE_SPEED_NORMAL 4 |
83 | * XINE_SPEED_FAST_2 8 | 83 | * XINE_SPEED_FAST_2 8 |
84 | *XINE_SPEED_FAST_4 16 | 84 | *XINE_SPEED_FAST_4 16 |
85 | */ | 85 | */ |
86 | void setSpeed( int speed = XINE_SPEED_PAUSE ); | 86 | void setSpeed( int speed = XINE_SPEED_PAUSE ); |
87 | 87 | ||
88 | int status() /*const*/; | 88 | int status() /*const*/; |
89 | 89 | ||
90 | int currentPosition()/*const*/; | 90 | int currentPosition()/*const*/; |
91 | //in seconds | 91 | //in seconds |
92 | int currentTime()/*const*/; | 92 | int currentTime()/*const*/; |
93 | |||
93 | int length() /*const*/; | 94 | int length() /*const*/; |
94 | 95 | ||
95 | bool isSeekable()/*const*/; | 96 | bool isSeekable()/*const*/; |
96 | 97 | ||
97 | /** | 98 | /** |
98 | * Whether or not to show video output | 99 | * Whether or not to show video output |
99 | */ | 100 | */ |
100 | void setShowVideo(bool video); | 101 | void setShowVideo(bool video); |
101 | 102 | ||
102 | /** | 103 | /** |
103 | * is we show video | 104 | * is we show video |
104 | */ | 105 | */ |
105 | bool isShowingVideo() /*const*/; | 106 | bool isShowingVideo() /*const*/; |
106 | 107 | ||
107 | /** | 108 | /** |
108 | * | 109 | * |
109 | */ | 110 | */ |
110 | void showVideoFullScreen( bool fullScreen ); | 111 | void showVideoFullScreen( bool fullScreen ); |
111 | 112 | ||
112 | /** | 113 | /** |
113 | * | 114 | * |
114 | */ | 115 | */ |
115 | bool isVideoFullScreen()/*const*/ ; | 116 | bool isVideoFullScreen()/*const*/ ; |
116 | 117 | ||
@@ -151,49 +152,51 @@ namespace XINE { | |||
151 | */ | 152 | */ |
152 | void setScaling( bool ); | 153 | void setScaling( bool ); |
153 | 154 | ||
154 | /** | 155 | /** |
155 | * Set the Gamma value for video output | 156 | * Set the Gamma value for video output |
156 | * @param int the value between -100 and 100, 0 is original | 157 | * @param int the value between -100 and 100, 0 is original |
157 | */ | 158 | */ |
158 | void setGamma( int ); | 159 | void setGamma( int ); |
159 | 160 | ||
160 | /** | 161 | /** |
161 | * test | 162 | * test |
162 | */ | 163 | */ |
163 | Frame currentFrame()/*const*/; | 164 | Frame currentFrame()/*const*/; |
164 | 165 | ||
165 | /** | 166 | /** |
166 | * Returns the error code | 167 | * Returns the error code |
167 | * XINE_ERROR_NONE 0 | 168 | * XINE_ERROR_NONE 0 |
168 | * XINE_ERROR_NO_INPUT_PLUGIN 1 | 169 | * XINE_ERROR_NO_INPUT_PLUGIN 1 |
169 | * XINE_ERROR_NO_DEMUXER_PLUGIN 2 | 170 | * XINE_ERROR_NO_DEMUXER_PLUGIN 2 |
170 | * XINE_ERROR_DEMUXER_FAILED 3 | 171 | * XINE_ERROR_DEMUXER_FAILED 3 |
171 | */ | 172 | */ |
172 | int error() /*const*/; | 173 | int error() /*const*/; |
173 | 174 | ||
174 | signals: | 175 | signals: |
176 | |||
175 | void stopped(); | 177 | void stopped(); |
178 | |||
176 | private: | 179 | private: |
177 | int m_bytes_per_pixel; | 180 | int m_bytes_per_pixel; |
178 | int m_length, m_pos, m_time; | 181 | int m_length, m_pos, m_time; |
179 | int m_major_version, m_minor_version, m_sub_version; | 182 | int m_major_version, m_minor_version, m_sub_version; |
180 | bool m_video:1; | 183 | bool m_video:1; |
181 | XineVideoWidget *m_wid; | 184 | XineVideoWidget *m_wid; |
182 | xine_t *m_xine; | 185 | xine_t *m_xine; |
183 | xine_stream_t *m_stream; | 186 | xine_stream_t *m_stream; |
184 | xine_cfg_entry_t *m_config; | 187 | xine_cfg_entry_t *m_config; |
185 | xine_vo_driver_t *m_videoOutput; | 188 | xine_vo_driver_t *m_videoOutput; |
186 | xine_ao_driver_t* m_audioOutput; | 189 | xine_ao_driver_t* m_audioOutput; |
187 | xine_event_queue_t *m_queue; | 190 | xine_event_queue_t *m_queue; |
188 | 191 | ||
189 | void handleXineEvent( const xine_event_t* t ); | 192 | void handleXineEvent( const xine_event_t* t ); |
190 | void drawFrame( uint8_t* frame, int width, int height, int bytes ); | 193 | void drawFrame( uint8_t* frame, int width, int height, int bytes ); |
191 | // C -> C++ bridge for the event system | 194 | // C -> C++ bridge for the event system |
192 | static void xine_event_handler( void* user_data, const xine_event_t* t); | 195 | static void xine_event_handler( void* user_data, const xine_event_t* t); |
193 | static void xine_display_frame( void* user_data, uint8_t* frame , | 196 | static void xine_display_frame( void* user_data, uint8_t* frame , |
194 | int width, int height, int bytes ); | 197 | int width, int height, int bytes ); |
195 | }; | 198 | }; |
196 | }; | 199 | }; |
197 | 200 | ||
198 | 201 | ||
199 | #endif | 202 | #endif |