4#ifndef QANDROIDCAMERA_H
5#define QANDROIDCAMERA_H
19#include <private/qplatformcamera_p.h>
67 bool isActivating()
const {
return m_state !=
State::Closed; }
71 void updateCameraCharacteristics();
72 void cleanCameraCharacteristics();
76 long lastTimestamp = 0;
79 std::unique_ptr<QFFmpeg::HWAccel> m_hwAccel;
83 bool m_waitingForFirstFrame =
false;
84 bool m_TorchModeSupported =
false;
85 bool m_wasActive =
false;
void onCameraDisconnect()
bool isTorchModeSupported(QCamera::TorchMode mode) const override
void onApplicationStateChanged()
QAndroidCamera(QCamera *camera)
void setFlashMode(QCamera::FlashMode mode) override
static bool registerNativeMethods()
void onCaptureSessionFailed(int reason, long frameNumber)
void zoomTo(float factor, float rate) override
~QAndroidCamera() override
void setCamera(const QCameraDevice &camera) override
void onCaptureSessionConfigured()
bool setCameraFormat(const QCameraFormat &format) override
void frameAvailable(QJniObject image, bool takePhoto=false)
void onCaptured(const QVideoFrame &)
bool isFlashReady() const override
bool isFlashModeSupported(QCamera::FlashMode mode) const override
std::optional< int > ffmpegHWPixelFormat() const override
void onCaptureSessionConfigureFailed()
void setActive(bool active) override
bool isActive() const override
void onCameraError(int error)
void setTorchMode(QCamera::TorchMode mode) override
The QCameraDevice class provides general information about camera devices.
The QCamera class provides interface for system camera devices.
TorchMode
\value TorchOff Torch is Off.
FlashMode
\value FlashOff Flash is Off.
The QVideoFrame class represents a frame of video data.
RotationAngle
The angle of the clockwise rotation that should be applied to a video frame before displaying.
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format