diff --git a/core/java/android/hardware/camera2/CameraDevice.java b/core/java/android/hardware/camera2/CameraDevice.java index ce1fba798c0e2..639795ab80803 100644 --- a/core/java/android/hardware/camera2/CameraDevice.java +++ b/core/java/android/hardware/camera2/CameraDevice.java @@ -183,7 +183,9 @@ public abstract class CameraDevice implements AutoCloseable { TEMPLATE_RECORD, TEMPLATE_VIDEO_SNAPSHOT, TEMPLATE_ZERO_SHUTTER_LAG, - TEMPLATE_MANUAL }) + TEMPLATE_MANUAL, + TEMPLATE_MOTION_TRACKING_PREVIEW, + TEMPLATE_MOTION_TRACKING_BEST}) public @interface RequestTemplate {}; /** @@ -424,14 +426,17 @@ public abstract class CameraDevice implements AutoCloseable { * {@link CameraMetadata#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED LIMITED} devices. The * {@code FULL FOV 640} entry means that the device will support a resolution that's 640 pixels * wide, with the height set so that the resolution aspect ratio matches the MAXIMUM output - * aspect ratio. So for a device with a 4:3 image sensor, this will be 640x480, and for a - * device with a 16:9 sensor, this will be 640x360, and so on. + * aspect ratio, rounded down. So for a device with a 4:3 image sensor, this will be 640x480, + * and for a device with a 16:9 sensor, this will be 640x360, and so on. And the + * {@code MAX 30FPS} entry means the largest JPEG resolution on the device for which + * {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputMinFrameDuration} + * returns a value less than or equal to 1/30s. * *
| MOTION_TRACKING-capability additional guaranteed configurations | ||||||
|---|---|---|---|---|---|---|
| Target 1 | Target 2 | Target 3 | Sample use case(s) | |||
| Type | Max size | Type | Max size | Type | Max size | |
| {@code PRIV} | {@code PREVIEW} | {@code YUV } | {@code FULL FOV 640} | {@code YUV } | {@code MAXIMUM} | Live preview with a tracking YUV output and a maximum-resolution YUV for still captures. |
| {@code YUV} | {@code PREVIEW} | {@code YUV } | {@code FULL FOV 640} | {@code JPEG} | {@code MAX 30FPS} | Preview with a tracking YUV output and a as-large-as-possible JPEG for still captures. |