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 对象的值的赋值运算符。

公共函数

CaptureMode

VideoCaptureMode CaptureMode() const 

返回当前拍摄的拍摄模式。

IsCapturing

bool IsCapturing() const 

返回服务当前是否正在捕获数据。

IsOverlayVisible

bool IsOverlayVisible() const 

返回拍摄叠加层当前是否可见的指示值。

这也表示用户正在使用拍摄叠加层,且背景拍摄将失败。

IsPaused

bool IsPaused() const 

返回拍摄当前是否暂停的指示值。

如果IsCapturing()如果false,将始终为false

QualityLevel

VideoQualityLevel QualityLevel() 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 版本。

operator=

VideoCaptureState & operator=(
  const VideoCaptureState & copy_from
)

用于从其他 VideoCaptureState 对象分配此 VideoCaptureState 对象的值的赋值运算符。

operator=

VideoCaptureState & operator=(
  VideoCaptureState && move_from
)

用于从其他 VideoCaptureState 对象分配此 VideoCaptureState 对象的值的赋值运算符。

r-value-reference 版本。

~VideoCaptureState

 ~VideoCaptureState()