ImageReader.Builder.SetDefaultDataSpace(Int32) Method

Definition

Set the default dataspace passed by the producer.

[Android.Runtime.Register("setDefaultDataSpace", "(I)Landroid/media/ImageReader$Builder;", "", ApiSince=33)]
public Android.Media.ImageReader.Builder SetDefaultDataSpace(int dataSpace);
[<Android.Runtime.Register("setDefaultDataSpace", "(I)Landroid/media/ImageReader$Builder;", "", ApiSince=33)>]
member this.SetDefaultDataSpace : int -> Android.Media.ImageReader.Builder

Parameters

dataSpace
Int32

The dataspace of the image that this reader will produce. The default value is DataSpace.DATASPACE_UNKNOWN. Value is either 0 or a combination of the following: DataSpace.DATASPACE_DEPTH DataSpace.DATASPACE_DYNAMIC_DEPTH DataSpace.DATASPACE_HEIF DataSpace.DATASPACE_HEIF_ULTRAHDR DataSpace.DATASPACE_JPEG_R DataSpace.DATASPACE_UNKNOWN DataSpace.DATASPACE_SCRGB_LINEAR DataSpace.DATASPACE_SRGB DataSpace.DATASPACE_SCRGB DataSpace.DATASPACE_DISPLAY_P3 DataSpace.DATASPACE_BT2020_HLG DataSpace.DATASPACE_BT2020_PQ DataSpace.DATASPACE_ADOBE_RGB DataSpace.DATASPACE_JFIF DataSpace.DATASPACE_BT601_625 DataSpace.DATASPACE_BT601_525 DataSpace.DATASPACE_BT2020 DataSpace.DATASPACE_BT709 DataSpace.DATASPACE_DCI_P3 DataSpace.DATASPACE_SRGB_LINEAR DataSpace.DATASPACE_DISPLAY_BT2020

Returns

the builder instance with customized dataspace value. This value cannot be null.

Attributes

Remarks

Set the default dataspace passed by the producer. May be overridden by the producer. This function works together with setDefaultHardwareBufferFormat(int) for an ImageReader instance. Setting at least one of these two replaces setImageFormat(int) function.

Android reference for android.media.ImageReader.Builder.setDefaultDataSpace.

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