Diffstat (limited to 'noncore/multimedia/opieplayer2/xinevideowidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinevideowidget.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.h b/noncore/multimedia/opieplayer2/xinevideowidget.h index 46bb98b..b670fa0 100644 --- a/noncore/multimedia/opieplayer2/xinevideowidget.h +++ b/noncore/multimedia/opieplayer2/xinevideowidget.h @@ -39,13 +39,26 @@ class QImage; class XineVideoWidget : public QWidget { Q_OBJECT public: XineVideoWidget( int width, int height, QWidget* parent, const char* name ); ~XineVideoWidget(); QImage *image() { return m_image; }; + void setImage( QImage* image ); + void setImage( uchar* image, int yoffsetXLine, int xoffsetXBytes, + int width, int height, int linestep, int bytes, int bpp); + int width() const; + int height() const; + void clear() ; protected: void paintEvent( QPaintEvent* p ); private: + int m_wid; + int m_height; + int m_yOff, m_xOff; + uchar* m_buff; + int m_Width, m_Height, linestep; + int m_bytes; + int m_bytes_per_pixel; QImage* m_image; }; |