Lingua

SensorTestPatternMode Enum

Definition

Enumerates values returned by several methods of SensorTestPatternMode.

public enum SensorTestPatternMode
type SensorTestPatternMode = 
Inheritance
SensorTestPatternMode

Fields

Name Value Description
Off 0

No test pattern mode is used, and the camera device returns captures from the image sensor.

This is the default if the key is not set.

Android reference for android.hardware.camera2.CameraMetadata.SENSOR_TEST_PATTERN_MODE_OFF.

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.

SolidColor 1

Each pixel in [R, G_even, G_odd, B] is replaced by its respective color channel provided in android.sensor.testPatternData.

android.sensor.testPatternData = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0]

All green pixels are 100% green. All red/blue pixels are black.

android.sensor.testPatternData = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0]

All red pixels are 100% red. Only the odd green pixels are 100% green. All blue pixels are 100% black.

Android reference for android.hardware.camera2.CameraMetadata.SENSOR_TEST_PATTERN_MODE_SOLID_COLOR.

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.

ColorBars 2

All pixel data is replaced with an 8-bar color pattern.

The vertical bars (left-to-right) are as follows: 100% white; yellow; cyan; green; magenta; red; blue; black

W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
W Y C G M R B K
. . . . . . . .
. . . . . . . .
. . . . . . . .

(B = Blue, K = Black)

Each bar should take up 1/8 of the sensor pixel array width. When this is not possible, the bar size should be rounded down to the nearest integer and the pattern can repeat on the right side.

Each bar's height must always take up the full sensor pixel array height.

Each pixel in this test pattern must be set to either 0% intensity or 100% intensity.

Android reference for android.hardware.camera2.CameraMetadata.SENSOR_TEST_PATTERN_MODE_COLOR_BARS.

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.

ColorBarsFadeToGray 3

The test pattern is similar to COLOR_BARS, except that each bar should start at its specified color at the top, and fade to gray at the bottom.

Furthermore each bar is further subdivided into a left and right half. The left half should have a smooth gradient, and the right half should have a quantized gradient.

In particular, the right half's should consist of blocks of the same color for 1/16th active sensor pixel array width.

The least significant bits in the quantized gradient should be copied from the most significant bits of the smooth gradient.

The height of each bar should always be a multiple of 128. When this is not the case, the pattern should repeat at the bottom of the image.

Android reference for android.hardware.camera2.CameraMetadata.SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY.

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.

Pn9 4

All pixel data is replaced by a pseudo-random sequence generated from a PN9 512-bit sequence (typically implemented in hardware with a linear feedback shift register).

The generator should be reset at the beginning of each frame, and thus each subsequent raw frame with this test pattern should be exactly the same as the last.

Android reference for android.hardware.camera2.CameraMetadata.SENSOR_TEST_PATTERN_MODE_PN9.

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.

Custom1 256

The first custom test pattern. All custom patterns that are available only on this camera device are at least this numeric value.

All of the custom test patterns will be static (that is the raw image must not vary from frame to frame).

Android reference for android.hardware.camera2.CameraMetadata.SENSOR_TEST_PATTERN_MODE_CUSTOM1.

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.

Remarks

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