1 #ifndef ADM_qtScript_VideoOutput
2 #define ADM_qtScript_VideoOutput
3 
4 #include "QtScriptObject.h"
5 #include "ADM_coreVideoFilter.h"
6 
7 namespace ADM_qtScript
8 {
9     /** \brief The VideoOutput %class holds basic properties of a video.
10 	 */
11     class VideoOutput : public QtScriptObject
12     {
13         Q_OBJECT
14 
15     private:
16         unsigned int _width, _height;
17         uint64_t _duration;
18 
19         QScriptValue getHeight();
20         QScriptValue getDuration();
21         QScriptValue getWidth();
22 
23     public:
24         /** \cond */
25         VideoOutput(IEditor *editor, FilterInfo *info);
26         /** \endcond */
27 
28         /** \brief Returns the duration (in milliseconds) of the video.
29 		 */
30         Q_PROPERTY(QScriptValue /*% Number %*/ duration READ getDuration);
31 
32 		/** \brief Returns the height of the video in pixels.
33 		 */
34         Q_PROPERTY(QScriptValue /*% Number %*/ height READ getHeight);
35 
36 		/** \brief Returns the width of the video in pixels.
37 		 */
38         Q_PROPERTY(QScriptValue /*% Number %*/ width READ getWidth);
39     };
40 }
41 
42 #endif
43