Compartilhar via


OutputConfiguration.DynamicRangeProfile Property

Definition

Return current dynamic range profile. -or- Set a specific device supported dynamic range profile.

public long DynamicRangeProfile { [Android.Runtime.Register("getDynamicRangeProfile", "()J", "", ApiSince=33)] get; [Android.Runtime.Register("setDynamicRangeProfile", "(J)V", "", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getDynamicRangeProfile", "()J", "", ApiSince=33)>]
[<set: Android.Runtime.Register("setDynamicRangeProfile", "(J)V", "", ApiSince=33)>]
member this.DynamicRangeProfile : int64 with get, set

Property Value

the currently set dynamic range profile

Attributes

Remarks

Property getter documentation:

Return current dynamic range profile.

Java documentation for android.hardware.camera2.params.OutputConfiguration.getDynamicRangeProfile().

Property setter documentation:

Set a specific device supported dynamic range profile.

Clients can choose from any profile advertised as supported in CameraCharacteristics.REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES queried using DynamicRangeProfiles#getSupportedProfiles(). If this is not explicitly set, then the default profile will be DynamicRangeProfiles#STANDARD.

Do note that invalid combinations between the registered output surface pixel format and the configured dynamic range profile will cause capture session initialization failure. Invalid combinations include any 10-bit dynamic range profile advertised in DynamicRangeProfiles#getSupportedProfiles() combined with an output Surface pixel format different from ImageFormat#PRIVATE (the default for Surfaces initialized by android.view.SurfaceView, android.view.TextureView, android.media.MediaRecorder, android.media.MediaCodec etc.) or ImageFormat#YCBCR_P010.

Java documentation for android.hardware.camera2.params.OutputConfiguration.setDynamicRangeProfile(long).

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