Table of Contents

Class OnDemandCaptureSession

Manages an on-demand, explicit capture session.

public sealed class OnDemandCaptureSession : ContinuousCaptureSession
Inheritance
object
OnDemandCaptureSession
Inherited Members
Extension Methods

Remarks

This does not do any image processing/conversion on its own, but classes like YUVConverter can register callbacks to OnFrameReady to do their own processing of the raw image YUV 4:2:0, BT.601 Full Range data.

Constructors

OnDemandCaptureSession(Resolution)

public OnDemandCaptureSession(Resolution resolution)

Parameters

resolution Resolution

Methods

RequestCapture(CaptureTemplate)

Requests a new capture from the session.

public OnDemandCaptureSession.RequestStatus RequestCapture(CaptureTemplate template = CaptureTemplate.StillCapture)

Parameters

template CaptureTemplate

Returns

OnDemandCaptureSession.RequestStatus

Exceptions

ObjectDisposedException

TryRequestCapture(out ErrorCode, CaptureTemplate)

Requests a new capture from the session.

public bool TryRequestCapture(out CaptureSessionBase<ContinuousCaptureSession.Proxy>.ErrorCode errorCode, CaptureTemplate template = CaptureTemplate.StillCapture)

Parameters

errorCode CaptureSessionBase<ContinuousCaptureSession.Proxy>.ErrorCode

Error code if the operation was unsuccessful.

template CaptureTemplate

The capture template to use for the capture.

Returns

bool

true if successful; false otherwise.

Exceptions

ObjectDisposedException