Language

CameraCharacteristics.InfoSessionConfigurationQueryVersion Property

Definition

A key for the session configuration query API version.

[Android.Runtime.Register("INFO_SESSION_CONFIGURATION_QUERY_VERSION", ApiSince=35)]
public static Android.Hardware.Camera2.CameraCharacteristics.Key InfoSessionConfigurationQueryVersion { get; }
[<Android.Runtime.Register("INFO_SESSION_CONFIGURATION_QUERY_VERSION", ApiSince=35)>]
static member InfoSessionConfigurationQueryVersion : Android.Hardware.Camera2.CameraCharacteristics.Key

Property Value

A key for the session configuration query API version.

Attributes

Remarks

The version of session configuration queries using IsSessionConfigurationSupported(SessionConfiguration) and GetSessionCharacteristics(SessionConfiguration).

The possible values in this key correspond to BuildVersionCodes values. Each version defines a set of feature combinations the camera device must reliably report whether it supports through IsSessionConfigurationSupported(SessionConfiguration). It also defines the set of session-specific keys in CameraCharacteristics returned from GetSessionCharacteristics(SessionConfiguration). The version is always less than or equal to SdkInt.

If set to UpsideDownCake, this camera device doesn't support the CameraDevice.CameraDeviceSetup API. Trying to create a CameraDeviceSetup instance throws an UnsupportedOperationException.

From VanillaIceCream onwards, the camera compliance tests verify a set of commonly used SessionConfigurations to ensure that the outputs of IsSessionConfigurationSupported(SessionConfiguration) and GetSessionCharacteristics(SessionConfiguration) are accurate. The application is encouraged to use these SessionConfigurations when turning on multiple features at the same time.

When set to VanillaIceCream, the compliance tests verify these stream combinations: PRIV S1080P or S720P alone; PRIV S1080P with JPEG/JPEG_R at MAXIMUM_16_9, UHD, S1440P, or S1080P; PRIV S720P with JPEG/JPEG_R at MAXIMUM_16_9, UHD, or S1080P; and PRIV XVGA or S1080P_4_3 with JPEG/JPEG_R at MAXIMUM_4_3.

MAXIMUM_4_3 refers to the camera device's maximum output resolution with 4:3 aspect ratio for that format from GetOutputSizes(Int32); MAXIMUM_16_9 is the maximum output resolution with 16:9 aspect ratio; S1440P refers to 2560x1440 (16:9); S1080P refers to 1920x1080 (16:9); S720P refers to 1280x720 (16:9); UHD refers to 3840x2160 (16:9); XVGA refers to 1024x768 (4:3); S1080P_43 refers to 1440x1080 (4:3). The tests verify combinations of these stream configurations with VIDEO_STABILIZATION_MODE: {OFF, PREVIEW}; AE_TARGET_FPS_RANGE: { {*, 30}, {*, 60} }; and DYNAMIC_RANGE_PROFILE: {STANDARD, HLG10}.

When set to Baklava, the compliance tests also verify PRIV Preview S1080P with PRIV Video S1080P, S1440P, or UHD; and PRIV Preview S1080P with YUV Analysis S1080P and PRIV Video 1080P. For these additional combinations, VIDEO_STABILIZATION_MODE values OFF and ON are verified when a dedicated video stream is present.

All of the above configurations can be set up with a SessionConfiguration. The list of OutputConfiguration contains the stream configurations and DYNAMIC_RANGE_PROFILE, and the AE_TARGET_FPS_RANGE and VIDEO_STABILIZATION_MODE are set as session parameters.

This key is available on all devices.

Android reference for android.hardware.camera2.CameraCharacteristics.INFO_SESSION_CONFIGURATION_QUERY_VERSION.

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