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
@@ -30,24 +30,25 @@
Boston, MA 02111-1307, USA.
*/
#ifndef ZECKEXINELIB_H
#define ZECKEXINELIB_H
#include <qcstring.h>
#include <qstring.h>
#include <qobject.h>
#include <xine.h>
+//#include "xine.h"
class XineVideoWidget;
namespace XINE {
/**
* Lib wrapps the simple interface
* of libxine for easy every day use
* This will become a full C++ Wrapper
* It supports playing, pausing, info,
* stooping, seeking.
*/
@@ -63,25 +64,35 @@ namespace XINE {
int subVersion()/*const*/;
void resize ( const QSize &s );
int play( const QString& fileName,
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*/;
int length() /*const*/;
bool isSeekable()/*const*/;
/**
* Whether or not to show video output
@@ -94,24 +105,31 @@ namespace XINE {
bool isShowingVideo() /*const*/;
/**
*
*/
void showVideoFullScreen( bool fullScreen );
/**
*
*/
bool isVideoFullScreen()/*const*/ ;
+
+ /**
+ * Get the meta info (like author etc) from the stream
+ *
+ */
+ QString metaInfo() ;
+
/**
*
*/
bool isScaling();
/**
*
*/
void setScaling( bool );
/**
* Set the Gamma value for video output
@@ -124,30 +142,32 @@ namespace XINE {
*/
Frame currentFrame()/*const*/;
/**
* Returns the error code
*/
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 ,
int width, int height, int bytes );
};
};
#endif