ACaptureRequest
NameSpace: Camera
Inherits from:
INullablePointer,
IDisposable
Public Methods
void Dispose
public void Dispose()
bool TryAddOutputTarget
public bool TryAddOutputTarget(
ACameraOutputTarget ptr
)
Parameters
Type | Name | Description |
---|---|---|
ACameraOutputTarget | ptr |
bool TryGetAllTags
public bool TryGetAllTags(
Allocator allocator,
out NativeArray< uint > tags
)
Parameters
Type | Name | Description |
---|---|---|
Allocator | allocator | |
out NativeArray< uint > | tags |
bool TryGetMetadata
public bool TryGetMetadata(
uint tag,
out ACameraMetadata.Entry.ReadOnly outEntry
)
Parameters
Type | Name | Description |
---|---|---|
uint | tag | |
out ACameraMetadata.Entry.ReadOnly | outEntry |
bool TrySetMetadataEntry
public bool TrySetMetadataEntry(
uint tag,
NativeArray< byte > data
)
Parameters
Type | Name | Description |
---|---|---|
uint | tag | |
NativeArray< byte > | data |
bool TrySetMetadataEntry
public bool TrySetMetadataEntry(
uint tag,
NativeArray< int > data
)
Parameters
Type | Name | Description |
---|---|---|
uint | tag | |
NativeArray< int > | data |
bool TrySetMetadataEntry
public bool TrySetMetadataEntry(
uint tag,
NativeArray< long > data
)
Parameters
Type | Name | Description |
---|---|---|
uint | tag | |
NativeArray< long > | data |
bool TrySetMetadataEntry
public bool TrySetMetadataEntry(
uint tag,
NativeArray< float > data
)
Parameters
Type | Name | Description |
---|---|---|
uint | tag | |
NativeArray< float > | data |
bool TrySetMetadataEntry
public bool TrySetMetadataEntry(
uint tag,
NativeArray< double > data
)
Parameters
Type | Name | Description |
---|---|---|
uint | tag | |
NativeArray< double > | data |
bool TrySetMetadataEntry
public bool TrySetMetadataEntry(
uint tag,
NativeArray< ACameraMetadata.Rational > data
)
Parameters
Type | Name | Description |
---|---|---|
uint | tag | |
NativeArray< ACameraMetadata.Rational > | data |
Public Attributes
IsNull
public bool IsNull => value == IntPtr.Zero;
Public Enums
Template
Enumerator | Value | Description |
---|---|---|
Preview | 1 | Create 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. |
StillCapture | 2 | Create 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. |
Record | 3 | Create 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. |
VideoSnapshot | 4 | Create 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. |
ZeroShutterLag | 5 | Create 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. |
Manual | 6 | A 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. |