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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user