summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.h28
1 files changed, 24 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h
index b9d0a8a..29adc4d 100644
--- a/noncore/multimedia/opieplayer2/lib.h
+++ b/noncore/multimedia/opieplayer2/lib.h
@@ -36,12 +36,13 @@
36 36
37#include <qcstring.h> 37#include <qcstring.h>
38#include <qstring.h> 38#include <qstring.h>
39#include <qobject.h> 39#include <qobject.h>
40 40
41#include <xine.h> 41#include <xine.h>
42//#include "xine.h"
42 43
43class XineVideoWidget; 44class XineVideoWidget;
44 45
45namespace XINE { 46namespace XINE {
46 47
47 /** 48 /**
@@ -69,13 +70,23 @@ namespace XINE {
69 int startPos = 0, 70 int startPos = 0,
70 int start_time = 0 ); 71 int start_time = 0 );
71 void stop() /*const*/; 72 void stop() /*const*/;
72 void pause()/*const*/; 73 void pause()/*const*/;
73 74
74 int speed() /*const*/; 75 int speed() /*const*/;
75 void setSpeed( int speed = SPEED_PAUSE ); 76
77 /**
78 * Set the speed of the stream, if codec supports it
79 * XINE_SPEED_PAUSE 0
80 * XINE_SPEED_SLOW_4 1
81 * XINE_SPEED_SLOW_2 2
82 * XINE_SPEED_NORMAL 4
83 * XINE_SPEED_FAST_2 8
84 *XINE_SPEED_FAST_4 16
85 */
86 void setSpeed( int speed = XINE_SPEED_PAUSE );
76 87
77 int status() /*const*/; 88 int status() /*const*/;
78 89
79 int currentPosition()/*const*/; 90 int currentPosition()/*const*/;
80 //in seconds 91 //in seconds
81 int currentTime()/*const*/; 92 int currentTime()/*const*/;
@@ -100,12 +111,19 @@ namespace XINE {
100 111
101 /** 112 /**
102 * 113 *
103 */ 114 */
104 bool isVideoFullScreen()/*const*/ ; 115 bool isVideoFullScreen()/*const*/ ;
105 116
117
118 /**
119 * Get the meta info (like author etc) from the stream
120 *
121 */
122 QString metaInfo() ;
123
106 /** 124 /**
107 * 125 *
108 */ 126 */
109 bool isScaling(); 127 bool isScaling();
110 128
111 /** 129 /**
@@ -130,18 +148,20 @@ namespace XINE {
130 int error() /*const*/; 148 int error() /*const*/;
131 149
132 signals: 150 signals:
133 void stopped(); 151 void stopped();
134 private: 152 private:
135 int m_bytes_per_pixel; 153 int m_bytes_per_pixel;
154 int m_length, m_pos, m_time;
155 int m_major_version, m_minor_version, m_sub_version;
136 bool m_video:1; 156 bool m_video:1;
137 XineVideoWidget *m_wid; 157 XineVideoWidget *m_wid;
138 xine_t *m_xine; 158 xine_t *m_xine;
139 config_values_t *m_config; 159 xine_cfg_entry_t *m_config;
140 vo_driver_t *m_videoOutput; 160 xine_vo_driver_t *m_videoOutput;
141 ao_driver_t* m_audioOutput; 161 xine_ao_driver_t* m_audioOutput;
142 162
143 void handleXineEvent( xine_event_t* t ); 163 void handleXineEvent( xine_event_t* t );
144 void drawFrame( uint8_t* frame, int width, int height, int bytes ); 164 void drawFrame( uint8_t* frame, int width, int height, int bytes );
145 // C -> C++ bridge for the event system 165 // C -> C++ bridge for the event system
146 static void xine_event_handler( void* user_data, xine_event_t* t); 166 static void xine_event_handler( void* user_data, xine_event_t* t);
147 static void xine_display_frame( void* user_data, uint8_t* frame , 167 static void xine_display_frame( void* user_data, uint8_t* frame ,