Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19839872 authored by Jayant Chowdhary's avatar Jayant Chowdhary Committed by Android (Google) Code Review
Browse files

Merge "Add stream use cases to camera aidl interfaces."

parents dd2ad3c5 9ca871ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -47,4 +47,5 @@ parcelable Stream {
  int groupId;
  android.hardware.camera.metadata.SensorPixelMode[] sensorPixelModesUsed;
  android.hardware.camera.metadata.RequestAvailableDynamicRangeProfilesMap dynamicRangeProfile;
  android.hardware.camera.metadata.ScalerAvailableStreamUseCases useCase;
}
+19 −0
Original line number Diff line number Diff line
@@ -203,4 +203,23 @@ parcelable Stream {
     *
     */
    android.hardware.camera.metadata.RequestAvailableDynamicRangeProfilesMap dynamicRangeProfile;

    /**
     * The stream use case describing the stream's purpose
     *
     * This flag provides the camera device a hint on what user scenario this
     * stream is intended for. With this flag, the camera device can optimize
     * camera pipeline parameters, such as tuning, sensor mode, and ISP settings,
     * for the intended use case.
     *
     * When this field is set to DEFAULT, the camera device should behave in
     * the same way as in previous HAL versions, and optimize the camera pipeline
     * based on stream format, data space, usage flag, and other stream properties.
     *
     * The HAL reports supported stream use cases in
     * ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES. If the HAL doesn't support
     * setting stream use cases, the camera framework leaves this field as
     * DEFAULT.
     */
    android.hardware.camera.metadata.ScalerAvailableStreamUseCases useCase;
}
+1 −0
Original line number Diff line number Diff line
@@ -195,6 +195,7 @@ enum CameraMetadataTag {
  ANDROID_SCALER_AVAILABLE_STALL_DURATIONS_MAXIMUM_RESOLUTION = 851989,
  ANDROID_SCALER_AVAILABLE_INPUT_OUTPUT_FORMATS_MAP_MAXIMUM_RESOLUTION = 851990,
  ANDROID_SCALER_MULTI_RESOLUTION_STREAM_SUPPORTED = 851991,
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES = 851992,
  ANDROID_SENSOR_EXPOSURE_TIME = 917504,
  ANDROID_SENSOR_FRAME_DURATION = 917505,
  ANDROID_SENSOR_SENSITIVITY = 917506,
+48 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2022 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *//*
 * Autogenerated from camera metadata definitions in
 * /system/media/camera/docs/metadata_definitions.xml
 * *** DO NOT EDIT BY HAND ***
 */
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL file. Do not edit it manually. There are
// two cases:
// 1). this is a frozen version file - do not edit this in any case.
// 2). this is a 'current' file. If you make a backwards compatible change to
//     the interface (from the latest frozen version), the build system will
//     prompt you to update this file with `m <name>-update-api`.
//
// You must not make a backward incompatible change to any AIDL file built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.camera.metadata;
@Backing(type="int") @VintfStability
enum ScalerAvailableStreamUseCases {
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT = 0,
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW = 1,
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_STILL_CAPTURE = 2,
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_RECORD = 3,
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW_VIDEO_STILL = 4,
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_CALL = 5,
  ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES_VENDOR_START = 65536,
}
+6 −0
Original line number Diff line number Diff line
@@ -1224,6 +1224,12 @@ enum CameraMetadataTag {
     * <p>Whether the camera device supports multi-resolution input or output streams</p>
     */
    ANDROID_SCALER_MULTI_RESOLUTION_STREAM_SUPPORTED,
    /**
     * android.scaler.availableStreamUseCases [static, enum[], public]
     *
     * <p>The stream use cases supported by this camera device.</p>
     */
    ANDROID_SCALER_AVAILABLE_STREAM_USE_CASES,
    /**
     * android.sensor.exposureTime [dynamic, int64, public]
     *
Loading