Skip to main content
Version: 14 Oct 2024

ACaptureRequest

NameSpace: Camera

Inherits from:
INullablePointer,
IDisposable

Public Methods

void Dispose

public void Dispose()

bool TryAddOutputTarget

public bool TryAddOutputTarget(
ACameraOutputTarget ptr
)

Parameters

TypeNameDescription
ACameraOutputTargetptr

bool TryGetAllTags

public bool TryGetAllTags(
Allocator allocator,
out NativeArray< uint > tags
)

Parameters

TypeNameDescription
Allocatorallocator
out NativeArray< uint >tags

bool TryGetMetadata

public bool TryGetMetadata(
uint tag,
out ACameraMetadata.Entry.ReadOnly outEntry
)

Parameters

TypeNameDescription
uinttag
out ACameraMetadata.Entry.ReadOnlyoutEntry

bool TrySetMetadataEntry

public bool TrySetMetadataEntry(
uint tag,
NativeArray< byte > data
)

Parameters

TypeNameDescription
uinttag
NativeArray< byte >data

bool TrySetMetadataEntry

public bool TrySetMetadataEntry(
uint tag,
NativeArray< int > data
)

Parameters

TypeNameDescription
uinttag
NativeArray< int >data

bool TrySetMetadataEntry

public bool TrySetMetadataEntry(
uint tag,
NativeArray< long > data
)

Parameters

TypeNameDescription
uinttag
NativeArray< long >data

bool TrySetMetadataEntry

public bool TrySetMetadataEntry(
uint tag,
NativeArray< float > data
)

Parameters

TypeNameDescription
uinttag
NativeArray< float >data

bool TrySetMetadataEntry

public bool TrySetMetadataEntry(
uint tag,
NativeArray< double > data
)

Parameters

TypeNameDescription
uinttag
NativeArray< double >data

bool TrySetMetadataEntry

public bool TrySetMetadataEntry(
uint tag,
NativeArray< ACameraMetadata.Rational > data
)

Parameters

TypeNameDescription
uinttag
NativeArray< ACameraMetadata.Rational >data

Public Attributes

IsNull


public bool IsNull => value == IntPtr.Zero;


Public Enums

Template

EnumeratorValueDescription
Preview1Create a request suitable for a camera preview window. Specifically, this means that high frame rate is given priority over the highest-quality post-processing. These requests would normally be used with the [ACameraCaptureSession_setRepeatingRequest] method. This template is guaranteed to be supported on all camera devices.
StillCapture2Create a request suitable for still image capture. Specifically, this means prioritizing image quality over frame rate. These requests would commonly be used with the [ACameraCaptureSession_capture] method. This template is guaranteed to be supported on all camera devices.
Record3Create a request suitable for video recording. Specifically, this means that a stable frame rate is used, and post-processing is set for recording quality. These requests would commonly be used with the [ACameraCaptureSession_setRepeatingRequest] method. This template is guaranteed to be supported on all camera devices.
VideoSnapshot4Create a request suitable for still image capture while recording video. Specifically, this means maximizing image quality without disrupting the ongoing recording. These requests would commonly be used with the [ACameraCaptureSession_capture] method while a request based on [TEMPLATE_RECORD] is is in use with [ACameraCaptureSession_setRepeatingRequest]. This template is guaranteed to be supported on all camera devices.
ZeroShutterLag5Create a request suitable for zero shutter lag still capture. This means means maximizing image quality without compromising preview frame rate. AE/AWB/AF should be on auto mode.
Manual6A basic template for direct application control of capture parameters. All automatic control is disabled (auto-exposure, auto-white balance, auto-focus), and post-processing parameters are set to preview quality. The manual capture parameters (exposure, sensitivity, and so on) are set to reasonable defaults, but should be overriden by the application depending on the intended use case. This template is guaranteed to be supported on camera devices that support the [ACAMERA_REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR] capability.