Returns the availability state of the camera service. Reimplemented from QMediaObject::availability(). QMultimedia::AvailabilityStatus QCamera:: availability() const QCamera:: ~QCamera()ĭestroys the camera object. If no camera is available at the specified position or if position is QCamera::UnspecifiedPosition, the default camera is used. QCamera:: QCamera( QCamera::Position position, QObject * parent = nullptr)Ĭonstruct a QCamera which uses a hardware camera located a the specified position.įor example on a mobile phone it can be used to easily choose between front-facing and back-facing cameras. QCamera:: QCamera(const QCameraInfo & cameraInfo, QObject * parent = nullptr)Ĭonstruct a QCamera from a camera description cameraInfo and parent. If no camera with that deviceName exists, the camera object will be invalid. QCamera:: QCamera(const QByteArray & deviceName, QObject * parent = nullptr)Ĭonstruct a QCamera from deviceName and parent. Member Function Documentation QCamera:: QCamera( QObject * parent = nullptr)Ĭonstruct a QCamera with a parent. The camera or camera backend is not available. The camera capabilities including supported capture settings may be unknown. The initial camera status, with camera not loaded. The camera device is unloading in result of state transition from QCamera::LoadedState or QCamera::ActiveState to QCamera::UnloadedState. The camera device loading in result of state transition from QCamera::UnloadedState to QCamera::LoadedState or QCamera::ActiveState. This status indicates the camera device is opened and it's possible to query for supported image and video capture settings, like resolution, framerate and codecs. The camera is loaded and ready to be configured. The camera may come to the standby mode after some time of inactivity in the QCamera::LoadedState state. The camera is in the power saving standby mode. The camera is stopping in result of state transition from QCamera::ActiveState to QCamera::LoadedState or QCamera::UnloadedState. The camera service is not ready to capture yet. The camera is starting in result of state transition to QCamera::ActiveState. For example in continuous focusing mode, the focus is considered locked as long and the object is in focus, even while the actual focusing distance may be constantly changing. The locked state usually means the requested parameter stays the same, except of the cases when the parameter is requested to be constantly updated. The camera is ready to capture, application may check the exposure parameters. The camera focus, exposure or white balance is locked. This state indicates the camera is focusing or calculating exposure and white balance. The application has requested the camera focus, exposure or white balance lock with QCamera::searchAndLock(). The camera may keep this parameter without changes, this is common with camera focus, or adjust exposure and white balance constantly to keep the viewfinder image nice. The application is not interested in camera settings value. SupportedViewfinderSettings(const QCameraViewfinderSettings & settings = QCameraViewfinderSettings()) const SupportedViewfinderResolutions(const QCameraViewfinderSettings & settings = QCameraViewfinderSettings()) const SupportedViewfinderPixelFormats(const QCameraViewfinderSettings & settings = QCameraViewfinderSettings()) const SupportedViewfinderFrameRateRanges(const QCameraViewfinderSettings & settings = QCameraViewfinderSettings()) const SetViewfinderSettings(const QCameraViewfinderSettings & settings) SetViewfinder(QAbstractVideoSurface * surface) SetViewfinder(QGraphicsVideoItem * viewfinder) LockStatus(QCamera::LockType lockType) const IsCaptureModeSupported(QCamera::CaptureModes mode) const QCamera(QCamera::Position position, QObject * parent = nullptr) QCamera(const QCameraInfo & cameraInfo, QObject * parent = nullptr) QCamera(const QByteArray & deviceName, QObject * parent = nullptr)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |