OutputConfiguration.AddSensorPixelModeUsed(Int32) Method

Definition

Add a sensor pixel mode that this OutputConfiguration will be used in.

[Android.Runtime.Register("addSensorPixelModeUsed", "(I)V", "", ApiSince=31)]
public void AddSensorPixelModeUsed (int sensorPixelModeUsed);
[<Android.Runtime.Register("addSensorPixelModeUsed", "(I)V", "", ApiSince=31)>]
member this.AddSensorPixelModeUsed : int -> unit

Parameters

sensorPixelModeUsed
Int32

The sensor pixel mode this OutputConfiguration will be used with </p>

Attributes

Remarks

Add a sensor pixel mode that this OutputConfiguration will be used in.

In the case that this output stream configuration (format, width, height) is available through android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP configurations and android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION, configurations, the camera sub-system will assume that this OutputConfiguration will be used only with android.hardware.camera2.CaptureRequests which has android.hardware.camera2.CaptureRequest#SENSOR_PIXEL_MODE set to android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_DEFAULT. In such cases, if clients intend to use the OutputConfiguration(s) in a android.hardware.camera2.CaptureRequest with other sensor pixel modes, they must specify which android.hardware.camera2.CaptureRequest#SENSOR_PIXEL_MODE(s) they will use this OutputConfiguration with, by calling this method.

In case this output stream configuration (format, width, height) is only in android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION, configurations, this output target must only be used with android.hardware.camera2.CaptureRequests which has android.hardware.camera2.CaptureRequest#SENSOR_PIXEL_MODE set to android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION and that is what the camera sub-system will assume. If clients add android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_DEFAULT in this case, session configuration will fail, if this OutputConfiguration is included.

In case this output stream configuration (format, width, height) is only in android.hardware.camera2.CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP, configurations, this output target must only be used with android.hardware.camera2.CaptureRequests which has android.hardware.camera2.CaptureRequest#SENSOR_PIXEL_MODE set to android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_DEFAULT and that is what the camera sub-system will assume. If clients add android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION in this case, session configuration will fail, if this OutputConfiguration is included.

Java documentation for android.hardware.camera2.params.OutputConfiguration.addSensorPixelModeUsed(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to