API Documentation
|
Provides access to a local camera on the system, such as a webcam or camera for a phone. More...
#include <LocalPhysicalCameraView.h>
Public Member Functions | |
LocalPhysicalCameraView () | |
LocalPhysicalCameraView (const DynamicPointer< Camera > &camera, QWidget *parent=nullptr) | |
virtual void | refreshInstance () override |
virtual bool | setCameraSource (const QCameraDevice &connection_id) |
virtual bool | setCameraSource (const String &connection_id) override |
void | setToDefaultCamera () |
virtual | ~LocalPhysicalCameraView () |
Protected Slots | |
void | handleCameraError (int camera_error) |
void | handleScreenshotError (int id, int error, const QString &errorString) |
void | handleVideoError () |
void | processCapturedImage (int index, const QImage &img) |
void | updateCameraState (bool state) |
void | updateRecorderState (int state) |
void | updateRecorderTimespan () |
Protected Member Functions | |
bool | finishRecord (File file) override |
void | init () |
virtual void | invertScreenColors (bool invert) override |
virtual bool | pauseRecord (bool paused, const File &file) override |
bool | startRecord (const File &file) override |
virtual bool | takeImage (const File &file) override |
void | updateCameraSources () |
Protected Attributes | |
QAudioInput * | m_audio_input = nullptr |
QCamera * | m_camera = nullptr |
Button * | m_camera_flash_button |
QMediaCaptureSession * | m_capture_session = nullptr |
QMediaDevices * | m_devices = nullptr |
QImageCapture * | m_image_capture = nullptr |
QMediaRecorder * | m_media_recorder = nullptr |
File | m_screenshot_location |
QCustomComboBox * | m_selection_combo |
QVideoWidget * | m_video_widget = nullptr |
Provides access to a local camera on the system, such as a webcam or camera for a phone.
LocalPhysicalCameraView | ( | const DynamicPointer< Camera > & | camera, |
QWidget * | parent = nullptr ) |
|
virtual |
|
overrideprotected |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protected |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedslot |
|
overridevirtual |
|
virtual |
|
overridevirtual |
void setToDefaultCamera | ( | ) |
|
overrideprotected |
|
overrideprotectedvirtual |
|
protected |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |