2 Copyright (C) 2003 Jasem Mutlaq (mutlaqja@ikarustech.com)
4 This application is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 2004-03-16: A class to handle video streaming.
16 #include <kpixmapio.h>
18 #include "streamformui.h"
23 class QSocketNotifier
;
29 class StreamWG
: public streamForm
34 StreamWG(INDIStdDevice
*inStdDev
, QWidget
* parent
=0, const char * name
=0);
38 friend class INDIStdDevice
;
40 void setColorFrame(bool color
);
41 void setSize(int wd
, int ht
);
42 void enableStream(bool enable
);
45 int streamWidth
, streamHeight
;
50 INDIStdDevice
*stdDev
;
51 QPixmap playPix
, pausePix
, capturePix
;
52 QVBoxLayout
*videoFrameLayout
;
55 void closeEvent ( QCloseEvent
* e
);
56 void resizeEvent(QResizeEvent
*ev
);
66 class VideoWG
: public QFrame
71 VideoWG(QWidget
* parent
=0, const char * name
=0);
74 friend class StreamWG
;
76 void newFrame(unsigned char *buffer
, int buffSiz
, int w
, int h
);
86 void paintEvent(QPaintEvent
*ev
);