gpg:: VideoCaptureState
#include <video_capture_state.h>
一种数据结构,允许访问视频拍摄的当前状态。
摘要
构造函数和析构函数 |
|
---|---|
VideoCaptureState()
|
|
VideoCaptureState(std::shared_ptr< const VideoCaptureStateImpl > impl)
显式构造函数。
|
|
VideoCaptureState(const VideoCaptureState & copy_from)
复制用于将现有 VideoCaptureState 对象复制到新对象的构造函数。
|
|
VideoCaptureState(VideoCaptureState && move_from)
用于将现有 VideoCaptureState 对象移至新对象的构造函数。
|
|
~VideoCaptureState()
|
公共函数 |
|
---|---|
CaptureMode() const
|
返回当前拍摄的拍摄模式。
|
IsCapturing() const
|
bool
返回服务当前是否捕获的指示值。
|
IsOverlayVisible() const
|
bool
用于返回拍摄叠加层当前是否可见。
|
IsPaused() const
|
bool
返回捕获当前是否暂停的指示值。
|
QualityLevel() const
|
返回当前捕获的质量级别。
|
Valid() const
|
bool
如果返回的 VideoCaptureState 对象已填充数据且附有成功响应状态,则返回 true;如果返回的是用户创建的 VideoCaptureState 对象,或所填充的对象存在失败响应状态,则返回 false。
|
operator=(const VideoCaptureState & copy_from)
|
用于从其他 VideoCaptureState 对象中分配此 VideoCaptureState 对象的值的分配运算符。
|
operator=(VideoCaptureState && move_from)
|
用于从其他 VideoCaptureState 对象中分配此 VideoCaptureState 对象的值的分配运算符。
|
公共函数
IsCapturing
bool IsCapturing() const
返回服务当前是否捕获的指示值。
IsOverlayVisible
bool IsOverlayVisible() const
用于返回拍摄叠加层当前是否可见。
这也表示用户正在使用拍摄叠加层,并且背景拍摄将失败。
有效
bool Valid() const
如果返回的 VideoCaptureState 对象已填充数据且附有成功响应状态,则返回 true;如果返回的是用户创建的 VideoCaptureState 对象,或所填充的对象存在失败响应状态,则返回 false。
此 VideoCaptureState 对象上的 getter 函数必须设为 true,才能使用。
VideoCaptureState
VideoCaptureState()
VideoCaptureState
VideoCaptureState( std::shared_ptr< const VideoCaptureStateImpl > impl )
显式构造函数。
VideoCaptureState
VideoCaptureState( const VideoCaptureState & copy_from )
复制用于将现有 VideoCaptureState 对象复制到新对象的构造函数。
VideoCaptureState
VideoCaptureState( VideoCaptureState && move_from )
用于将现有 VideoCaptureState 对象移至新对象的构造函数。
r-value-reference 版本。
运算符=
VideoCaptureState & operator=( const VideoCaptureState & copy_from )
用于从其他 VideoCaptureState 对象中分配此 VideoCaptureState 对象的值的分配运算符。
运算符=
VideoCaptureState & operator=( VideoCaptureState && move_from )
用于从其他 VideoCaptureState 对象中分配此 VideoCaptureState 对象的值的分配运算符。
r-value-reference 版本。
~VideoCaptureState
~VideoCaptureState()