10#include <QCameraDevice>
11#include <QtMultimediaWidgets/QVideoWidget>
12#include <DMediaRecorder>
13#include <DImageCapture>
18#include "dtkmultimedia.h"
20DMULTIMEDIA_BEGIN_NAMESPACE
23class DMediaCaptureSession;
24class Q_MULTIMEDIA_EXPORT
DCamera :
public QCamera
38 explicit DCamera(QCamera *parent =
nullptr);
40 explicit DCamera(
const QCameraDevice& cameraDevice, QObject *parent =
nullptr);
42 explicit DCamera(
const QCameraInfo &cameraInfo, QObject *parent =
nullptr);
54 void setViewfinder(QWidget *viewfinder);
59 void setActive(
bool active) { m_isActive = active; };
60 void setstate(State newState);
80 void signalbuffer(uchar *yuv, uint width, uint height);
82 void stateChanged(State);
84 void stateChanged(State);
88 QScopedPointer<DCameraPrivate> d_ptr;
94DMULTIMEDIA_END_NAMESPACE