The QCameraViewfinderSettingsControl class provides an abstract class for controlling camera viewfinder parameters. 更多...
头: | #include <QCameraViewfinderSettingsControl> |
qmake: | QT += multimedia |
继承: | QMediaControl |
enum | ViewfinderParameter { Resolution, PixelAspectRatio, MinimumFrameRate, MaximumFrameRate, PixelFormat, UserParameter } |
~QCameraViewfinderSettingsControl () | |
virtual bool | isViewfinderParameterSupported (ViewfinderParameter 参数 ) const = 0 |
virtual void | setViewfinderParameter (ViewfinderParameter 参数 , const QVariant & value ) = 0 |
virtual QVariant | viewfinderParameter (ViewfinderParameter 参数 ) const = 0 |
QCameraViewfinderSettingsControl (QObject * parent = Q_NULLPTR) |
QCameraViewfinderSettingsControl_iid |
The QCameraViewfinderSettingsControl class provides an abstract class for controlling camera viewfinder parameters.
接口名称对于
QCameraViewfinderSettingsControl
is
org.qt-project.qt.cameraviewfindersettingscontrol/5.0
作为定义在
QCameraViewfinderSettingsControl_iid
.
警告: New backends should implement QCameraViewfinderSettingsControl2 instead. Application developers should request this control only if QCameraViewfinderSettingsControl2 is not available.
另请参阅 QMediaService::requestControl (), QCameraViewfinderSettingsControl2 ,和 QCamera .
常量 | 值 | 描述 |
---|---|---|
QCameraViewfinderSettingsControl::Resolution
|
0
|
Viewfinder resolution, QSize . |
QCameraViewfinderSettingsControl::PixelAspectRatio
|
1
|
Pixel aspect ratio, QSize as in QVideoSurfaceFormat::pixelAspectRatio |
QCameraViewfinderSettingsControl::MinimumFrameRate
|
2
|
Minimum viewfinder frame rate, qreal |
QCameraViewfinderSettingsControl::MaximumFrameRate
|
3
|
Maximum viewfinder frame rate, qreal |
QCameraViewfinderSettingsControl::PixelFormat
|
4
|
Viewfinder pixel format, QVideoFrame::PixelFormat |
QCameraViewfinderSettingsControl::UserParameter
|
1000
|
The base value for platform specific extended parameters. For such parameters the sequential values starting from UserParameter should be used. |
[protected]
QCameraViewfinderSettingsControl::
QCameraViewfinderSettingsControl
(
QObject
*
parent
= Q_NULLPTR)
Constructs a camera viewfinder control object with parent .
Destroys the camera viewfinder control object.
[pure virtual]
bool
QCameraViewfinderSettingsControl::
isViewfinderParameterSupported
(
ViewfinderParameter
参数
) const
Returns true if configuration of viewfinder 参数 is supported by camera backend.
[pure virtual]
void
QCameraViewfinderSettingsControl::
setViewfinderParameter
(
ViewfinderParameter
参数
, const
QVariant
&
value
)
Set the prefferred value of viewfinder 参数 .
Calling this while the camera is active may result in the camera being stopped and reloaded. If video recording is in progress, this call may be ignored.
If an unsupported parameter is specified the camera may fail to load, or the setting may be ignored.
Viewfinder parameters may also depend on other camera settings, especially in video capture mode. If camera configuration conflicts with viewfinder settings, the camara configuration is usually preferred.
另请参阅 viewfinderParameter ().
[pure virtual]
QVariant
QCameraViewfinderSettingsControl::
viewfinderParameter
(
ViewfinderParameter
参数
) const
Returns the value of viewfinder 参数 .
另请参阅 setViewfinderParameter ().
org.qt-project.qt.cameraviewfindersettingscontrol/5.0
定义接口名为 QCameraViewfinderSettingsControl 类。