Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
camera.cpp File Reference

(350dd557be3b861e28b40280ca09f5caf198630b)

#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>
+ Include dependency graph for camera.cpp:

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

QCameracamera = 0
 
QMediaRecorderrecorder = 0
 
QImageCaptureimageCapture = 0
 
QVideoWidgetviewfinder = 0
 

Function Documentation

◆ camera_blah()

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.

+ Here is the call graph for this function:

◆ camera_info()

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.

◆ camera_listing()

void camera_listing ( )

[Camera listing]

[Camera listing]

Definition at line 138 of file camera.cpp.

References qDebug, and QMediaDevices::videoInputs.

◆ camera_selection()

void camera_selection ( )

[Camera selection]

[Camera selection]

Definition at line 147 of file camera.cpp.

References camera, and QMediaDevices::videoInputs.

◆ camerafocus()

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().

+ Here is the call graph for this function:

◆ cameraimageprocessing()

void cameraimageprocessing ( )

[Camera image whitebalance]

[Camera image whitebalance]

Definition at line 194 of file camera.cpp.

References camera, QCamera::setWhiteBalanceMode(), and QCamera::WhiteBalanceFluorescent.

+ Here is the call graph for this function:

◆ checkCameraAvailability()

bool checkCameraAvailability ( )

[Camera overview check]

Definition at line 25 of file camera.cpp.

References QMediaDevices::videoInputs.

◆ overview_camera_by_position()

void overview_camera_by_position ( )

[Camera overview position]

[Camera overview position]

Definition at line 48 of file camera.cpp.

References camera, and QCameraDevice::FrontFace.

◆ overview_movie()

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().

+ Here is the call graph for this function:

◆ overview_still()

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().

+ Here is the call graph for this function:

◆ overview_surface()

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().

+ Here is the call graph for this function:

◆ overview_viewfinder()

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.

+ Here is the call graph for this function:

◆ overview_viewfinder_orientation()

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().

+ Here is the call graph for this function:

Variable Documentation

◆ camera

QCamera* camera = 0

Definition at line 19 of file camera.cpp.

Referenced by AVFCamera::AVFCamera(), QAndroidCamera::QAndroidCamera(), QAVFCameraBase::QAVFCameraBase(), QWindowsCamera::QWindowsCamera(), 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(), QPlatformCamera::findBestCameraFormat(), getCameraDataImpl(), getCameraDistanceSq(), QQuick3DExtensionHelpers::getCameraId(), QSSGLayerRenderData::getOrCreateExtensionContext(), QSSGLayerRenderData::getSortedOpaqueRenderableObjects(), QSSGLayerRenderData::getSortedRenderedDepthWriteObjects(), QSSGLayerRenderData::getSortedrenderedOpaqueDepthPrepassObjects(), QSSGLayerRenderData::getSortedScreenTextureRenderableObjects(), QSSGLayerRenderData::getSortedTransparentRenderableObjects(), 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(), QSSGLayerRenderData::prepareModelsForRender(), ReflectionMapPass::renderPrep(), ZPrePassPass::renderPrep(), DepthMapPass::renderPrep(), ScreenMapPass::renderPrep(), ScreenReflectionPass::renderPrep(), OpaquePass::renderPrep(), TransparentPass::renderPrep(), 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(), QQuick3DRenderLayerHelpers::updateLayerNodeHelper(), QQuick3DCamera::updateSpatialNode(), QQuick3DCustomCamera::updateSpatialNode(), QQuick3DFrustumCamera::updateSpatialNode(), QQuick3DOrthographicCamera::updateSpatialNode(), QQuick3DPerspectiveCamera::updateSpatialNode(), QOpenXREyeCamera::updateSpatialNode(), and QSSGQmlUtilities::writeQml().

◆ imageCapture

◆ recorder

◆ viewfinder

QVideoWidget* viewfinder = 0

Definition at line 22 of file camera.cpp.

Referenced by camera_blah(), and overview_viewfinder().