equal
deleted
inserted
replaced
66 bool isFullScreen() const; |
66 bool isFullScreen() const; |
67 void setFullScreen(bool fullScreen); |
67 void setFullScreen(bool fullScreen); |
68 |
68 |
69 QSize nativeSize() const; |
69 QSize nativeSize() const; |
70 |
70 |
71 QVideoWidget::AspectRatioMode aspectRatioMode() const; |
71 Qt::AspectRatioMode aspectRatioMode() const; |
72 void setAspectRatioMode(QVideoWidget::AspectRatioMode mode); |
72 void setAspectRatioMode(Qt::AspectRatioMode mode); |
73 |
73 |
74 void repaint(); |
74 void repaint(); |
75 |
75 |
76 int brightness() const; |
76 int brightness() const; |
77 void setBrightness(int brightness); |
77 void setBrightness(int brightness); |
95 // IMFActivate |
95 // IMFActivate |
96 HRESULT STDMETHODCALLTYPE ActivateObject(REFIID riid, void **ppv); |
96 HRESULT STDMETHODCALLTYPE ActivateObject(REFIID riid, void **ppv); |
97 HRESULT STDMETHODCALLTYPE ShutdownObject(); |
97 HRESULT STDMETHODCALLTYPE ShutdownObject(); |
98 HRESULT STDMETHODCALLTYPE DetachObject(); |
98 HRESULT STDMETHODCALLTYPE DetachObject(); |
99 |
99 |
|
100 public Q_SLOTS: |
|
101 void openStateChanged(long state); |
|
102 |
100 private: |
103 private: |
101 typedef HRESULT (WINAPI *PtrMFCreateVideoPresenter)(IUnknown*, REFIID, REFIID, void**); |
104 typedef HRESULT (WINAPI *PtrMFCreateVideoPresenter)(IUnknown*, REFIID, REFIID, void**); |
102 |
105 |
103 volatile LONG m_ref; |
106 volatile LONG m_ref; |
104 HINSTANCE m_evrHwnd; |
107 HINSTANCE m_evrHwnd; |
105 PtrMFCreateVideoPresenter ptrMFCreateVideoPresenter; |
108 PtrMFCreateVideoPresenter ptrMFCreateVideoPresenter; |
106 IMFVideoPresenter *m_presenter; |
109 IMFVideoPresenter *m_presenter; |
107 IMFVideoDisplayControl *m_displayControl; |
110 IMFVideoDisplayControl *m_displayControl; |
108 QVideoWidget::AspectRatioMode m_aspectRatioMode; |
111 Qt::AspectRatioMode m_aspectRatioMode; |
109 QSize m_sizeHint; |
112 QSize m_sizeHint; |
110 QRect m_displayRect; |
113 QRect m_displayRect; |
111 WId m_winId; |
114 WId m_winId; |
112 bool m_fullScreen; |
115 bool m_fullScreen; |
113 }; |
116 }; |