◆ ~ICaptureSession()
Argus::ICaptureSession::~ICaptureSession |
( |
| ) |
|
|
inlineprotected |
◆ cancelRequests()
virtual Status Argus::ICaptureSession::cancelRequests |
( |
| ) |
|
|
pure virtual |
◆ capture()
提交单个捕获请求。
对于阻塞捕获会话(由 ICameraProvider::createBlockingCaptureSession 创建),它将等待直到请求被底层驱动程序接受。 对于非阻塞捕获会话(由 ICameraProvider::createCaptureSession 创建),它将请求的副本排队到队列并返回。
客户端可以在未来的调用中提交相同的请求实例。 请求将由运行时复制。
- 参数
-
[in] | request | 捕获的参数。 |
[in] | timeout | 超时时间,以纳秒为单位。 相机设备将尝试在超时期限内发出请求。 如果无法发出,它将返回并将 status 设置为 STATUS_UNAVAILABLE。 |
[out] | status | 用于返回成功/状态的可选指针。 |
- 返回
- 捕获 ID,一个唯一标识(在此会话中)请求的数字。 如果提交请求失败,将返回零。 请求可能因超时或
request
的某些参数无效而失败。
◆ captureBurst()
virtual uint32_t Argus::ICaptureSession::captureBurst |
( |
const std::vector< const Request * > & |
requestList, |
|
|
uint64_t |
timeout = TIMEOUT_INFINITE , |
|
|
Status * |
status = NULL |
|
) |
| |
|
pure virtual |
提交一组突发请求。
对于阻塞捕获会话(由 ICameraProvider::createBlockingCaptureSession 创建),它将等待直到第一个请求被底层驱动程序接受。 对于非阻塞捕获会话(由 ICameraProvider::createCaptureSession 创建),它将请求的副本排队到队列并返回。
运行时将接受整个突发或完全拒绝它(即,不会接受部分突发)。
- 参数
-
[in] | requestList | 构成突发的请求列表。 |
[in] | timeout | 超时时间,以纳秒为单位。 相机设备将尝试在超时期限内发出请求。 如果无法发出,它将返回并将 status 设置为 STATUS_UNAVAILABLE。 |
[out] | status | 用于返回成功/状态的可选指针。 |
- 返回
- 与突发中的第一个请求关联的捕获 ID。 与每个后续请求关联的捕获的捕获 ID 将递增一。 如果提交请求失败,将返回零。 请求可能因超时或
request
的某些参数无效而失败。
◆ createOutputStream()
◆ createOutputStreamSettings()
virtual OutputStreamSettings* Argus::ICaptureSession::createOutputStreamSettings |
( |
const StreamType & |
type, |
|
|
Status * |
status = NULL |
|
) |
| |
|
pure virtual |
◆ createRequest()
virtual Request* Argus::ICaptureSession::createRequest |
( |
const CaptureIntent & |
intent = CAPTURE_INTENT_PREVIEW , |
|
|
Status * |
status = NULL |
|
) |
| |
|
pure virtual |
◆ id()
static const InterfaceID& Argus::ICaptureSession::id |
( |
| ) |
|
|
inlinestatic |
◆ isRepeating()
virtual bool Argus::ICaptureSession::isRepeating |
( |
| ) |
const |
|
pure virtual |
◆ maxBurstRequests()
virtual uint32_t Argus::ICaptureSession::maxBurstRequests |
( |
| ) |
const |
|
pure virtual |
◆ repeat()
virtual Status Argus::ICaptureSession::repeat |
( |
const Request * |
request | ) |
|
|
pure virtual |
设置重复请求。
这是一种便捷方法,它将在请求队列为空且相机准备好接受新请求时,将请求排队。
要停止重复请求,请调用 stopRepeat()。
- 参数
-
- 返回
- 调用的成功/状态。
◆ repeatBurst()
virtual Status Argus::ICaptureSession::repeatBurst |
( |
const std::vector< const Request * > & |
requestList | ) |
|
|
pure virtual |
设置重复突发请求。
这是一种便捷方法,它将在请求队列为空且相机准备好接受新请求时,将请求排队。
要停止重复请求,请调用 stopRepeat()。
- 参数
-
[in] | requestList | 构成重复突发的请求列表。 |
- 返回
- 调用的成功/状态。
◆ stopRepeat()
virtual Range<uint32_t> Argus::ICaptureSession::stopRepeat |
( |
| ) |
|
|
pure virtual |
◆ waitForIdle()
等待直到所有挂起的捕获完成。
- 参数
-
[in] | timeout | 此调用的超时值(以纳秒为单位)。 如果管道在超时到期时仍未空闲,则调用将返回 STATUS_TIMEOUT。 |
此类文档从以下文件生成