summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2020-01-15 18:12:31 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2020-01-17 15:12:54 +0100
commit8427c0be1c262293b27c8bca598108cfe882c84e (patch)
treeb1223238e99bfdcf634dcd7aff646efb81b8e294 /src/multimedia
parent1cc4b7e28bf9f8f684bf17ed30a822aa6d1c6735 (diff)
Doc: Fix QCamera and Camera docs
Use \value for \qmlproperty enumeration instead of \table. Move some docs around. On C++ side, add leading sentences to \enum docs and remove empty lines from \value commands. Fix some language issues. Change-Id: If682c0a52d72babae563b075ed9ff987fdf16bd0 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/camera/qcamera.cpp63
1 files changed, 35 insertions, 28 deletions
diff --git a/src/multimedia/camera/qcamera.cpp b/src/multimedia/camera/qcamera.cpp
index 00c387083..40441f332 100644
--- a/src/multimedia/camera/qcamera.cpp
+++ b/src/multimedia/camera/qcamera.cpp
@@ -850,15 +850,17 @@ void QCamera::stop()
}
/*!
- Open the camera device.
- The camera state is changed to QCamera::LoadedStatus.
+ Opens the camera device.
+ The camera state is changed to QCamera::LoadedState.
- It's not necessary to explcitly load the camera,
- unless unless the application have to read the supported camera
- settings and change the default depending on the camera capabilities.
+ It's not necessary to explicitly load the camera, unless the application
+ needs to read the supported camera settings and change the default values
+ according to the camera capabilities.
- In all the other cases it's possible to start the camera directly
- from unloaded state.
+ In all the other cases, it's possible to start the camera directly
+ from the unloaded state.
+
+ /sa QCamera::UnloadedState
*/
void QCamera::load()
{
@@ -867,8 +869,8 @@ void QCamera::load()
}
/*!
- Close the camera device and deallocate the related resources.
- The camera state is changed to QCamera::UnloadedStatus.
+ Closes the camera device and deallocates the related resources.
+ The camera state is changed to QCamera::UnloadedState.
*/
void QCamera::unload()
{
@@ -915,7 +917,7 @@ QCamera::Status QCamera::status() const
/*!
- Returns the lock types, camera supports.
+ Returns the lock types that the camera supports.
*/
QCamera::LockTypes QCamera::supportedLocks() const
{
@@ -1112,46 +1114,40 @@ void QCamera::unlock()
/*!
\enum QCamera::Status
+
+ This enum holds the current status of the camera.
+
\value ActiveStatus
The camera has been started and can produce data.
The viewfinder displays video frames in active state.
-
Depending on backend, changing some camera settings like
capture mode, codecs or resolution in ActiveState may lead
to changing the camera status to LoadedStatus and StartingStatus while
the settings are applied and back to ActiveStatus when the camera is ready.
-
\value StartingStatus
The camera is starting in result of state transition to QCamera::ActiveState.
The camera service is not ready to capture yet.
-
\value StoppingStatus
The camera is stopping in result of state transition from QCamera::ActiveState
to QCamera::LoadedState or QCamera::UnloadedState.
-
\value StandbyStatus
The camera is in the power saving standby mode.
The camera may come to the standby mode after some time of inactivity
in the QCamera::LoadedState state.
-
\value LoadedStatus
The camera is loaded and ready to be configured.
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.
-
\value LoadingStatus
The camera device loading in result of state transition from
QCamera::UnloadedState to QCamera::LoadedState or QCamera::ActiveState.
-
\value UnloadingStatus
The camera device is unloading in result of state transition from
QCamera::LoadedState or QCamera::ActiveState to QCamera::UnloadedState.
-
\value UnloadedStatus
The initial camera status, with camera not loaded.
The camera capabilities including supported capture settings may be unknown.
-
\value UnavailableStatus
The camera or camera backend is not available.
*/
@@ -1165,6 +1161,9 @@ void QCamera::unlock()
/*!
\enum QCamera::CaptureMode
+
+ This enum holds the capture mode of the camera.
+
\value CaptureViewfinder Camera is only configured to display viewfinder.
\value CaptureStillImage Camera is configured for still frames capture.
\value CaptureVideo Camera is configured for video capture.
@@ -1173,6 +1172,8 @@ void QCamera::unlock()
/*!
\enum QCamera::LockType
+ This enum holds the camera lock type.
+
\value NoLock
\value LockExposure
Lock camera exposure.
@@ -1213,28 +1214,32 @@ void QCamera::unlock()
/*!
\enum QCamera::LockStatus
+
+ This enum holds the overall status for all the requested camera locks.
+
\value Unlocked
The application is not interested in camera settings value.
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.
-
\value Searching
The application has requested the camera focus, exposure or white balance lock with
- QCamera::searchAndLock(). This state indicates the camera is focusing or calculating exposure and white balance.
-
+ QCamera::searchAndLock(). This state indicates the camera is focusing or
+ calculating exposure and white balance.
\value Locked
The camera focus, exposure or white balance is locked.
- The camera is ready to capture, application may check the exposure parameters.
-
- The locked state usually means the requested parameter stays the same,
- except of the cases when the parameter is requested to be constantly updated.
- 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 camera is ready to capture, application may check the exposure
+ stays the same, parameters. The \c Locked status usually means the
+ requested parameter except in the cases when the parameter is requested
+ to be constantly updated. For example, in continuous focusing mode,
+ the focus is considered locked as long as the object is in focus, even
+ while the actual focusing distance may be constantly changing.
*/
/*!
\enum QCamera::LockChangeReason
+ This enum holds the reason why the camera lock status changed.
+
\value UserRequest
The lock status changed in result of user request, usually to unlock camera settings.
\value LockAcquired
@@ -1255,6 +1260,8 @@ void QCamera::unlock()
/*!
\enum QCamera::Error
+ This enum holds the last error code.
+
\value NoError No errors have occurred.
\value CameraError An error has occurred.
\value InvalidRequestError System resource doesn't support requested functionality.