winrt: Add camera video probe controls

[ChangLog][multimedia][winrt] The WinRT backend now supports QVideoProbes
on camera objects.

Task-number: QTBUG-46228
Change-Id: I7850c5ec6f61e5824064d4be8afc8a0b55d05806
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
This commit is contained in:
Peng Wu
2015-07-29 13:00:03 +03:00
committed by Andrew Knight
parent 5cec451c10
commit 129b06ba77
7 changed files with 271 additions and 13 deletions

View File

@@ -39,10 +39,13 @@
#include "qwinrtabstractvideorenderercontrol.h"
#include <QVideoFrame>
struct IMF2DBuffer;
QT_BEGIN_NAMESPACE
class QWinRTVideoProbeControl;
class QVideoSurfaceFormat;
class QWinRTCameraVideoRendererControlPrivate;
class QWinRTCameraVideoRendererControl : public QWinRTAbstractVideoRendererControl
@@ -55,9 +58,12 @@ public:
bool render(ID3D11Texture2D *texture) Q_DECL_OVERRIDE;
void queueBuffer(IMF2DBuffer *buffer);
void discardBuffers();
void incrementProbe();
void decrementProbe();
signals:
void bufferRequested();
void videoFrameProbed(const QVideoFrame &frame);
private:
QScopedPointer<QWinRTCameraVideoRendererControlPrivate> d_ptr;