author | sandman <sandman> | 2002-09-24 18:55:16 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-24 18:55:16 (UTC) |
commit | 844325085130e79ec503a0ab5b8eeafa25a7bdb1 (patch) (side-by-side diff) | |
tree | aa1c45bf90036f9a5077f63b478e77069e64b5f1 /noncore/multimedia/opieplayer2/xinevideowidget.h | |
parent | 262dfbf10d031ab8a80948cd1485d747ad2c931b (diff) | |
download | opie-844325085130e79ec503a0ab5b8eeafa25a7bdb1.zip opie-844325085130e79ec503a0ab5b8eeafa25a7bdb1.tar.gz opie-844325085130e79ec503a0ab5b8eeafa25a7bdb1.tar.bz2 |
Documentation for the video magic (for Holger ;)
Small interface changes (better method names)
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinevideowidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinevideowidget.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.h b/noncore/multimedia/opieplayer2/xinevideowidget.h index c5101da..33f1470 100644 --- a/noncore/multimedia/opieplayer2/xinevideowidget.h +++ b/noncore/multimedia/opieplayer2/xinevideowidget.h @@ -1,11 +1,10 @@ /* This file is part of the Opie Project - Copyright (c) 2002 Max Reiss <harlekin@handhelds.org> - Copyright (c) 2002 LJP <> + Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> =. .=l. .>+-= _;:, .> :=|. This program is free software; you can .> <`_, > . <= redistribute it and/or modify it under @@ -35,39 +34,41 @@ #include <qwidget.h> #include "lib.h" class QImage; + + class XineVideoWidget : public QWidget { Q_OBJECT + public: - XineVideoWidget( QWidget* parent, const char* name ); - ~XineVideoWidget(); - QImage *image() { return m_image; }; - void setImage( QImage* image ); - void setImage( uchar* image, int width, int height, int linestep); - void clear() ; + XineVideoWidget ( QWidget* parent, const char* name ); + ~XineVideoWidget ( ); + QImage *logo ( ) const; + void setLogo ( QImage *image ); + void setVideoFrame ( uchar *image, int width, int height, int linestep ); + void clear ( ); protected: - void paintEvent( QPaintEvent* p ); + void paintEvent( QPaintEvent *p ); void resizeEvent ( QResizeEvent *r ); - void mousePressEvent ( QMouseEvent *e ); void mouseReleaseEvent ( QMouseEvent *e ); signals: - void clicked(); + void clicked ( ); void videoResized ( const QSize &s ); private: - QRect m_lastframe; - QRect m_thisframe; + QRect m_lastframe; + QRect m_thisframe; - uchar* m_buff; - int m_bytes_per_line_fb; - int m_bytes_per_line_frame; - int m_bytes_per_pixel; - QImage* m_image; - int m_rotation; + uchar *m_buff; + int m_bytes_per_line_fb; + int m_bytes_per_line_frame; + int m_bytes_per_pixel; + QImage *m_logo; + int m_rotation; }; |