![]() |
Qt 6.x
The Qt SDK
|
#include "qcamera.h"
#include "qcameradevice.h"
#include "qmediarecorder.h"
#include "qmediadevices.h"
#include "qmediacapturesession.h"
#include "qimagecapture.h"
#include "qvideosink.h"
#include <QtMultimediaWidgets/qvideowidget.h>
#include <QtGui/qscreen.h>
#include <QtGui/qguiapplication.h>
#include <QtGui/qimage.h>
Go to the source code of this file.
Functions | |
bool | checkCameraAvailability () |
[Camera overview check] | |
void | overview_viewfinder () |
[Camera overview check] | |
void | overview_camera_by_position () |
void | overview_surface () |
void | overview_viewfinder_orientation () |
void | overview_still () |
void | overview_movie () |
void | camera_listing () |
void | camera_selection () |
void | camera_info () |
void | camera_blah () |
void | cameraimageprocessing () |
void | camerafocus () |
Variables | |
QCamera * | camera = 0 |
QMediaRecorder * | recorder = 0 |
QImageCapture * | imageCapture = 0 |
QVideoWidget * | viewfinder = 0 |
void camera_blah | ( | ) |
[Camera]
[Camera]
[Camera keys]
[Camera keys]
Definition at line 171 of file camera.cpp.
References camera, QImageCapture::capture(), imageCapture, QMediaCaptureSession::setCamera(), QMediaCaptureSession::setImageCapture(), QMediaCaptureSession::setVideoOutput(), QWidget::show(), QCamera::start(), and viewfinder.
void camera_info | ( | ) |
[Camera info]
[Camera info]
Definition at line 158 of file camera.cpp.
References QCameraDevice::BackFace, camera, QCamera::cameraDevice, QCameraDevice::FrontFace, QCameraDevice::position, and qDebug.
void camera_listing | ( | ) |
[Camera listing]
[Camera listing]
Definition at line 138 of file camera.cpp.
References qDebug, and QMediaDevices::videoInputs.
void camera_selection | ( | ) |
[Camera selection]
[Camera selection]
Definition at line 147 of file camera.cpp.
References camera, and QMediaDevices::videoInputs.
void camerafocus | ( | ) |
[Camera custom focus]
[Camera custom focus]
[Camera zoom]
[Camera zoom]
Definition at line 202 of file camera.cpp.
References camera, QCamera::FocusModeManual, QCamera::setCustomFocusPoint(), and QCamera::setZoomFactor().
void cameraimageprocessing | ( | ) |
[Camera image whitebalance]
[Camera image whitebalance]
Definition at line 194 of file camera.cpp.
References camera, QCamera::setWhiteBalanceMode(), and QCamera::WhiteBalanceFluorescent.
bool checkCameraAvailability | ( | ) |
[Camera overview check]
Definition at line 25 of file camera.cpp.
References QMediaDevices::videoInputs.
void overview_camera_by_position | ( | ) |
[Camera overview position]
[Camera overview position]
Definition at line 48 of file camera.cpp.
References camera, and QCameraDevice::FrontFace.
void overview_movie | ( | ) |
[Camera overview movie]
[Camera overview movie]
Definition at line 113 of file camera.cpp.
References camera, QMediaFormat::MPEG4, QMediaRecorder::record(), recorder, QMediaCaptureSession::setCamera(), QMediaRecorder::setMediaFormat(), QMediaCaptureSession::setRecorder(), settings, QCamera::start(), and QMediaRecorder::stop().
void overview_still | ( | ) |
[Camera overview capture]
[Camera overview capture]
Definition at line 97 of file camera.cpp.
References camera, QImageCapture::capture(), imageCapture, QMediaCaptureSession::setCamera(), QMediaCaptureSession::setImageCapture(), and QCamera::start().
void overview_surface | ( | ) |
[Camera overview surface]
[Camera overview surface]
Definition at line 56 of file camera.cpp.
References camera, QMediaCaptureSession::setCamera(), QMediaCaptureSession::setVideoOutput(), and QCamera::start().
void overview_viewfinder | ( | ) |
[Camera overview check]
[Camera overview viewfinder]
[Camera overview viewfinder]
Definition at line 34 of file camera.cpp.
References camera, QMediaCaptureSession::setCamera(), QMediaCaptureSession::setVideoOutput(), QWidget::show(), QCamera::start(), and viewfinder.
void overview_viewfinder_orientation | ( | ) |
[Camera overview viewfinder orientation]
[Camera overview viewfinder orientation]
Definition at line 71 of file camera.cpp.
References QScreen::angleBetween(), QCameraDevice::BackFace, camera, QScreen::nativeOrientation, QScreen::orientation, QCameraDevice::position, QGuiApplication::primaryScreen, QTransform::rotate(), screen, and QImage::transformed().
QCamera* camera = 0 |
Definition at line 19 of file camera.cpp.
Referenced by AVFCamera::AVFCamera(), QAndroidCamera::QAndroidCamera(), QAVFCameraBase::QAVFCameraBase(), QWindowsCamera::QWindowsCamera(), QSSGLayerRenderData::activeCamera(), camera_blah(), camera_info(), camera_selection(), camerafocus(), cameraimageprocessing(), org.qtproject.qt.android.multimedia.QtCameraListener::clearPreviewCallback(), QGstreamerCamera::create(), QFFmpegMediaIntegration::createCamera(), QGstreamerIntegration::createCamera(), QAndroidIntegration::createCamera(), QDarwinIntegration::createCamera(), QWasmMediaIntegration::createCamera(), QWindowsMediaIntegration::createCamera(), createCameraDevice(), QSSGRuntimeUtils::createGraphObject(), QSSGModelHelpers::createRenderables(), QPlatformCamera::findBestCameraFormat(), getCameraDataImpl(), getCameraDistanceSq(), QImageCapture::isReadyForCapture(), notifyPictureCaptured(), onCameraDisconnect(), onCameraError(), onCameraOpened(), onCaptureSessionConfigured(), onCaptureSessionConfigureFailed(), onCaptureSessionFailed(), onFrameAvailable(), onPhotoAvailable(), org.qtproject.qt.android.multimedia.QtCameraListener::onPreviewFrame(), onSessionActive(), onSessionClosed(), operator<<(), overview_camera_by_position(), overview_movie(), overview_still(), overview_surface(), overview_viewfinder(), overview_viewfinder_orientation(), QGeoTiledMapPrivate::prefetchTiles(), ScreenMapPass::renderPrep(), MainPass::renderPrep(), RenderHelpers::rhiPrepareRenderable(), QSSGCustomMaterialSystem::rhiPrepareRenderable(), QSSGParticleRenderer::rhiPrepareRenderable(), RenderHelpers::rhiRenderAoTexture(), RenderHelpers::rhiRenderShadowMap(), QWindowsMediaDeviceSession::setActiveCamera(), QGeoProjectionWebMercator::setBearing(), AndroidMediaRecorder::setCamera(), QAndroidCamera::setCamera(), AVFCamera::setCamera(), QAVFCameraBase::setCamera(), QAVFCamera::setCamera(), QV4L2Camera::setCamera(), QWindowsCamera::setCamera(), QGstreamerCamera::setCamera(), QQnxPlatformCamera::setCamera(), QWasmCamera::setCamera(), QGeoCameraTiles::setCameraData(), QAndroidCamera::setTorchMode(), org.qtproject.qt.android.multimedia.QtCameraListener::setupPreviewCallback(), QAndroidCamera::setWhiteBalanceMode(), QQuick3DCamera::updateSpatialNode(), QQuick3DCustomCamera::updateSpatialNode(), QQuick3DFrustumCamera::updateSpatialNode(), QQuick3DOrthographicCamera::updateSpatialNode(), QQuick3DPerspectiveCamera::updateSpatialNode(), QSSGCustomMaterialSystem::updateUniformsForCustomMaterial(), updateUniformsForDefaultMaterial(), and QSSGQmlUtilities::writeQml().
QImageCapture* imageCapture = 0 |
Definition at line 21 of file camera.cpp.
Referenced by camera_blah(), QDarwinIntegration::createImageCapture(), QFFmpegMediaIntegration::createImageCapture(), QGstreamerIntegration::createImageCapture(), QAndroidIntegration::createImageCapture(), QWasmMediaIntegration::createImageCapture(), QWindowsMediaIntegration::createImageCapture(), and overview_still().
QMediaRecorder* recorder = 0 |
Definition at line 20 of file camera.cpp.
Referenced by QDarwinIntegration::createRecorder(), QFFmpegMediaIntegration::createRecorder(), QGstreamerIntegration::createRecorder(), QAndroidIntegration::createRecorder(), QWasmMediaIntegration::createRecorder(), QWindowsMediaIntegration::createRecorder(), overview_movie(), QAndroidMediaCaptureSession::setMediaRecorder(), AVFCameraService::setMediaRecorder(), QFFmpegMediaCaptureSession::setMediaRecorder(), QGstreamerMediaCapture::setMediaRecorder(), QWindowsMediaCaptureService::setMediaRecorder(), AVFCameraSession::updateAudioInput(), and AVFCameraSession::updateVideoInput().
QVideoWidget* viewfinder = 0 |
Definition at line 22 of file camera.cpp.
Referenced by camera_blah(), and overview_viewfinder().