uvcvideorenderercontrol.h 654 Bytes
Newer Older
Thiago Santini's avatar
Thiago Santini committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#ifndef UVCVIDEORENDERERCONTROL_H
#define UVCVIDEORENDERERCONTROL_H

#include <qvideorenderercontrol.h>
#include "uvccamerasession.h"

class CameraFormatConverter;

QT_BEGIN_NAMESPACE


class UVCVideoRendererControl : public QVideoRendererControl
{
    Q_OBJECT
public:
    UVCVideoRendererControl(UVCCameraSession* session, QObject *parent = 0);
    ~UVCVideoRendererControl();

    QAbstractVideoSurface *surface() const;
    void setSurface(QAbstractVideoSurface *surface);

private:
    QAbstractVideoSurface* m_surface;
    UVCCameraSession* m_session;
    CameraFormatConverter* converter;
};

QT_END_NAMESPACE

#endif // UVCVIDEORENDERERCONTROL_H