summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.h
Side-by-side diff
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 @@
#include <qcstring.h>
#include <qstring.h>
#include <qobject.h>
#include <xine.h>
+//#include "xine.h"
class XineVideoWidget;
namespace XINE {
/**
@@ -69,13 +70,23 @@ namespace XINE {
int startPos = 0,
int start_time = 0 );
void stop() /*const*/;
void pause()/*const*/;
int speed() /*const*/;
- void setSpeed( int speed = SPEED_PAUSE );
+
+ /**
+ * Set the speed of the stream, if codec supports it
+ * XINE_SPEED_PAUSE 0
+ * XINE_SPEED_SLOW_4 1
+ * XINE_SPEED_SLOW_2 2
+ * XINE_SPEED_NORMAL 4
+ * XINE_SPEED_FAST_2 8
+ *XINE_SPEED_FAST_4 16
+ */
+ void setSpeed( int speed = XINE_SPEED_PAUSE );
int status() /*const*/;
int currentPosition()/*const*/;
//in seconds
int currentTime()/*const*/;
@@ -100,12 +111,19 @@ namespace XINE {
/**
*
*/
bool isVideoFullScreen()/*const*/ ;
+
+ /**
+ * Get the meta info (like author etc) from the stream
+ *
+ */
+ QString metaInfo() ;
+
/**
*
*/
bool isScaling();
/**
@@ -130,18 +148,20 @@ namespace XINE {
int error() /*const*/;
signals:
void stopped();
private:
int m_bytes_per_pixel;
+ int m_length, m_pos, m_time;
+ int m_major_version, m_minor_version, m_sub_version;
bool m_video:1;
XineVideoWidget *m_wid;
xine_t *m_xine;
- config_values_t *m_config;
- vo_driver_t *m_videoOutput;
- ao_driver_t* m_audioOutput;
+ xine_cfg_entry_t *m_config;
+ xine_vo_driver_t *m_videoOutput;
+ xine_ao_driver_t* m_audioOutput;
void handleXineEvent( xine_event_t* t );
void drawFrame( uint8_t* frame, int width, int height, int bytes );
// C -> C++ bridge for the event system
static void xine_event_handler( void* user_data, xine_event_t* t);
static void xine_display_frame( void* user_data, uint8_t* frame ,