4#ifndef AVFCAMERAIMAGECAPTURE_H
5#define AVFCAMERAIMAGECAPTURE_H
18#import <AVFoundation/AVFoundation.h>
20#include <QtCore/qqueue.h>
21#include <QtCore/qsemaphore.h>
22#include <QtCore/qsharedpointer.h>
23#include <private/qplatformimagecapture_p.h>
45 int capture(
const QString &fileName)
override;
56 void updateReadyStatus();
57 void onNewViewfinderFrame(
const QVideoFrame &frame);
58 void onCameraChanged();
61 void makeCapturePreview(CaptureRequest request,
const QVideoFrame &frame,
int rotation);
62 bool videoCaptureDeviceIsValid()
const;
68 int m_lastCaptureId = 0;
69 AVCaptureStillImageOutput *m_stillImageOutput;
70 AVCaptureConnection *m_videoConnection =
nullptr;
72 QMutex m_requestsMutex;
73 QQueue<CaptureRequest> m_captureRequests;
74 QImageEncoderSettings m_settings;
void setImageCapture(QPlatformImageCapture *imageCapture) override
void setAudioOutputMuted(bool muted)
QPlatformMediaRecorder * mediaRecorder() override
void audioOutputChanged()
void setVideoPreview(QVideoSink *sink) override
void setCamera(QPlatformCamera *camera) override
void setMediaRecorder(QPlatformMediaRecorder *recorder) override
void setAudioInputMuted(bool muted)
void setAudioOutputVolume(float volume)
QPlatformImageCapture * imageCapture() override
QPlatformCamera * camera() override
void setAudioInputVolume(float volume)
void setAudioOutputMuted(bool muted)
void setAudioInputVolume(float volume)
void setVideoSink(QVideoSink *sink)
void setAudioOutputVolume(float volume)
void setAudioInputMuted(bool muted)
AVFImageCapture(QImageCapture *parent=nullptr)
int doCapture(const QString &fileName)
AVCaptureStillImageOutput * stillImageOutput() const
void setCaptureSession(QPlatformMediaCaptureSession *session)
int captureToBuffer() override
QImageEncoderSettings imageSettings() const override
int capture(const QString &fileName) override
bool isReadyForCapture() const override
void setImageSettings(const QImageEncoderSettings &settings) override
Combined button and popup list for selecting options.
Q_DECLARE_TYPEINFO(QObjectPrivate::ConnectionList, Q_RELOCATABLE_TYPE)