ImageMetadata

public class ImageMetadata

Provides access to metadata from the camera image capture result.

For details on individual keys, see the reference information for the similarly named constant in the NDK Camera documentation.

Constants

int BLACK_LEVEL_LOCK Whether black-level compensation is locked to its current values, or is free to vary.
int COLOR_CORRECTION_ABERRATION_MODE Mode of operation for the chromatic aberration correction algorithm.
int COLOR_CORRECTION_GAINS Gains applying to Bayer raw color channels for white-balance.
int COLOR_CORRECTION_MODE The mode control selects how the image data is converted from the sensor's native color into linear sRGB color.
int COLOR_CORRECTION_TRANSFORM A color transform matrix to use to transform from sensor RGB color space to output linear sRGB color space.
int CONTROL_AE_ANTIBANDING_MODE The desired setting for the camera device's auto-exposure algorithm's antibanding compensation.
int CONTROL_AE_EXPOSURE_COMPENSATION Adjustment to auto-exposure (AE) target image brightness.
int CONTROL_AE_LOCK Whether auto-exposure (AE) is currently locked to its latest calculated values.
int CONTROL_AE_MODE The desired mode for the camera device's auto-exposure routine.
int CONTROL_AE_PRECAPTURE_TRIGGER Whether the camera device will trigger a precapture metering sequence when it processes this request.
int CONTROL_AE_REGIONS List of metering areas to use for auto-exposure adjustment.
int CONTROL_AE_STATE Current state of the auto-exposure (AE) algorithm.
int CONTROL_AE_TARGET_FPS_RANGE Range over which the auto-exposure routine can adjust the capture frame rate to maintain good exposure.
int CONTROL_AF_MODE Whether auto-focus (AF) is currently enabled, and what mode it is set to.
int CONTROL_AF_REGIONS List of metering areas to use for auto-focus.
int CONTROL_AF_STATE Current state of auto-focus (AF) algorithm.
int CONTROL_AF_TRIGGER Whether the camera device will trigger autofocus for this request.
int CONTROL_AWB_LOCK Whether auto-white balance (AWB) is currently locked to its latest calculated values.
int CONTROL_AWB_MODE Whether auto-white balance (AWB) is currently setting the color transform fields, and what its illumination target is.
int CONTROL_AWB_REGIONS List of metering areas to use for auto-white-balance illuminant estimation.
int CONTROL_AWB_STATE Current state of auto-white balance (AWB) algorithm.
int CONTROL_CAPTURE_INTENT Information to the camera device 3A (auto-exposure, auto-focus, auto-white balance) routines about the purpose of this capture, to help the camera device to decide optimal 3A strategy.
int CONTROL_EFFECT_MODE A special color effect to apply.
int CONTROL_MODE Overall mode of 3A (auto-exposure, auto-white-balance, auto-focus) control routines.
int CONTROL_POST_RAW_SENSITIVITY_BOOST The amount of additional sensitivity boost applied to output images after RAW sensor data is captured.
int CONTROL_SCENE_MODE Control for which scene mode is currently active.
int CONTROL_VIDEO_STABILIZATION_MODE Whether video stabilization is active.
int EDGE_MODE Operation mode for edge enhancement.
int FLASH_MODE The desired mode for the camera device's flash control.
int FLASH_STATE Current state of the flash unit.
int HOT_PIXEL_MODE Operational mode for hot pixel correction.
int JPEG_GPS_COORDINATES GPS coordinates to include in output JPEG EXIF.
int JPEG_GPS_PROCESSING_METHOD 32 characters describing GPS algorithm to include in EXIF.
int JPEG_GPS_TIMESTAMP Time GPS fix was made to include in EXIF.
int JPEG_ORIENTATION The orientation for a JPEG image.
int JPEG_QUALITY Compression quality of the final JPEG image.
int JPEG_THUMBNAIL_QUALITY Compression quality of JPEG thumbnail.
int JPEG_THUMBNAIL_SIZE Resolution of embedded JPEG thumbnail.
int LENS_APERTURE The desired lens aperture size, as a ratio of lens focal length to the effective aperture diameter.
int LENS_FILTER_DENSITY The desired setting for the lens neutral density filter(s).
int LENS_FOCAL_LENGTH The desired lens focal length; used for optical zoom.
int LENS_FOCUS_DISTANCE Desired distance to plane of sharpest focus, measured from frontmost surface of the lens.
int LENS_FOCUS_RANGE The range of scene distances that are in sharp focus (depth of field).
int LENS_INTRINSIC_CALIBRATION The parameters for this camera device's intrinsic calibration.
int LENS_OPTICAL_STABILIZATION_MODE Sets whether the camera device uses optical image stabilization (OIS) when capturing images.
int LENS_POSE_ROTATION The orientation of the camera relative to the sensor coordinate system.
int LENS_POSE_TRANSLATION Position of the camera optical center.
int LENS_RADIAL_DISTORTION The correction coefficients to correct for this camera device's radial and tangential lens distortion.
int LENS_STATE Current lens status.
int NOISE_REDUCTION_MODE Mode of operation for the noise reduction algorithm.
int REQUEST_PIPELINE_DEPTH Specifies the number of pipeline stages the frame went through from when it was exposed to when the final completed result was available to the framework.
int SCALER_CROP_REGION The desired region of the sensor to read out for this capture.
int SENSOR_DYNAMIC_BLACK_LEVEL A per-frame dynamic black level offset for each of the color filter arrangement (CFA) mosaic channels.
int SENSOR_DYNAMIC_WHITE_LEVEL Maximum raw value output by sensor for this frame.
int SENSOR_EXPOSURE_TIME Duration each pixel is exposed to light.
int SENSOR_FRAME_DURATION Duration from start of frame exposure to start of next frame exposure.
int SENSOR_GREEN_SPLIT The worst-case divergence between Bayer green channels.
int SENSOR_NEUTRAL_COLOR_POINT The estimated camera neutral color in the native sensor colorspace at the time of capture.
int SENSOR_NOISE_PROFILE Noise model coefficients for each CFA mosaic channel.
int SENSOR_ROLLING_SHUTTER_SKEW Duration between the start of first row exposure and the start of last row exposure.
int SENSOR_SENSITIVITY The amount of gain applied to sensor data before processing.
int SENSOR_TEST_PATTERN_DATA A pixel [R, G_even, G_odd, B] that supplies the test pattern when ACAMERA_SENSOR_TEST_PATTERN_MODE is SOLID_COLOR.
int SENSOR_TEST_PATTERN_MODE When enabled, the sensor sends a test pattern instead of doing a real exposure from the camera.
int SENSOR_TIMESTAMP Time at start of exposure of first row of the image sensor active array, in nanoseconds.
int SHADING_MODE Quality of lens shading correction applied to the image data.
int STATISTICS_FACE_DETECT_MODE Operating mode for the face detector unit.
int STATISTICS_FACE_IDS List of unique IDs for detected faces.
int STATISTICS_FACE_LANDMARKS List of landmarks for detected faces.
int STATISTICS_FACE_RECTANGLES List of the bounding rectangles for detected faces.
int STATISTICS_FACE_SCORES List of the face confidence scores for detected faces See Android NDK Docs for details.
int STATISTICS_HOT_PIXEL_MAP List of (x, y) coordinates of hot/defective pixels on the sensor.
int STATISTICS_HOT_PIXEL_MAP_MODE Operating mode for hot pixel map generation.
int STATISTICS_LENS_SHADING_MAP The shading map is a low-resolution floating-point map that lists the coefficients used to correct for vignetting and color shading, for each Bayer color channel of RAW image data.
int STATISTICS_LENS_SHADING_MAP_MODE Whether the camera device will output the lens shading map in output result metadata.
int STATISTICS_SCENE_FLICKER The camera device estimated scene illumination lighting frequency.
int SYNC_FRAME_NUMBER The frame number corresponding to the last request with which the output result (metadata + buffers) has been fully synchronized.
int TONEMAP_CURVE_BLUE Tonemapping / contrast / gamma curve for the blue channel, to use when ACAMERA_TONEMAP_MODE is CONTRAST_CURVE.
int TONEMAP_CURVE_GREEN Tonemapping / contrast / gamma curve for the green channel, to use when ACAMERA_TONEMAP_MODE is CONTRAST_CURVE.
int TONEMAP_CURVE_RED Tonemapping / contrast / gamma curve for the red channel, to use when ACAMERA_TONEMAP_MODE is CONTRAST_CURVE.
int TONEMAP_GAMMA Tonemapping curve to use when ACAMERA_TONEMAP_MODE is GAMMA_VALUE See Android NDK Docs for details.
int TONEMAP_MODE High-level global contrast/gamma/tonemapping control.
int TONEMAP_PRESET_CURVE Tonemapping curve to use when ACAMERA_TONEMAP_MODE is PRESET_CURVE See Android NDK Docs for details.

Public Methods

byte
getByte(int key)
Retrieves the scalar byte value for a specific key.
byte[]
getByteArray(int key)
Retrieves the byte array value for a specific key.
double
getDouble(int key)
Retrieves the scalar double value for a specific key.
double[]
getDoubleArray(int key)
Retrieves the double array value for a specific key.
float
getFloat(int key)
Retrieves the scalar floating point value for a specific key.
float[]
getFloatArray(int key)
Retrieves the float array value for a specific key.
int
getInt(int key)
Retrieves the scalar integer value for a specific key.
int[]
getIntArray(int key)
Retrieves the integer array value for a specific key.
long[]
getKeys()
Returns the list of all metadata keys available for this image.
long
getLong(int key)
Retrieves the scalar long value for a specific key.
long[]
getLongArray(int key)
Retrieves the long array value for a specific key.
Rational
getRational(int key)
Retrieves the scalar Rational value for a specific key.
Rational[]
getRationalArray(int key)
Retrieves the Rational array value for a specific key.

Inherited Methods

Constants

BLACK_LEVEL_LOCK

public static final int BLACK_LEVEL_LOCK

Whether black-level compensation is locked to its current values, or is free to vary. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1441792

COLOR_CORRECTION_ABERRATION_MODE

public static final int COLOR_CORRECTION_ABERRATION_MODE

Mode of operation for the chromatic aberration correction algorithm. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 3

COLOR_CORRECTION_GAINS

public static final int COLOR_CORRECTION_GAINS

Gains applying to Bayer raw color channels for white-balance. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 2

COLOR_CORRECTION_MODE

public static final int COLOR_CORRECTION_MODE

The mode control selects how the image data is converted from the sensor's native color into linear sRGB color. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 0

COLOR_CORRECTION_TRANSFORM

public static final int COLOR_CORRECTION_TRANSFORM

A color transform matrix to use to transform from sensor RGB color space to output linear sRGB color space. See Android NDK Docs for details. Access using getRationalArray(int).

Constant Value: 1

CONTROL_AE_ANTIBANDING_MODE

public static final int CONTROL_AE_ANTIBANDING_MODE

The desired setting for the camera device's auto-exposure algorithm's antibanding compensation. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65536

CONTROL_AE_EXPOSURE_COMPENSATION

public static final int CONTROL_AE_EXPOSURE_COMPENSATION

Adjustment to auto-exposure (AE) target image brightness. See Android NDK Docs for details. Access using getInt(int).

Constant Value: 65537

CONTROL_AE_LOCK

public static final int CONTROL_AE_LOCK

Whether auto-exposure (AE) is currently locked to its latest calculated values. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65538

CONTROL_AE_MODE

public static final int CONTROL_AE_MODE

The desired mode for the camera device's auto-exposure routine. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65539

CONTROL_AE_PRECAPTURE_TRIGGER

public static final int CONTROL_AE_PRECAPTURE_TRIGGER

Whether the camera device will trigger a precapture metering sequence when it processes this request. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65542

CONTROL_AE_REGIONS

public static final int CONTROL_AE_REGIONS

List of metering areas to use for auto-exposure adjustment. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 65540

CONTROL_AE_STATE

public static final int CONTROL_AE_STATE

Current state of the auto-exposure (AE) algorithm. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65567

CONTROL_AE_TARGET_FPS_RANGE

public static final int CONTROL_AE_TARGET_FPS_RANGE

Range over which the auto-exposure routine can adjust the capture frame rate to maintain good exposure. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 65541

CONTROL_AF_MODE

public static final int CONTROL_AF_MODE

Whether auto-focus (AF) is currently enabled, and what mode it is set to. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65543

CONTROL_AF_REGIONS

public static final int CONTROL_AF_REGIONS

List of metering areas to use for auto-focus. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 65544

CONTROL_AF_STATE

public static final int CONTROL_AF_STATE

Current state of auto-focus (AF) algorithm. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65568

CONTROL_AF_TRIGGER

public static final int CONTROL_AF_TRIGGER

Whether the camera device will trigger autofocus for this request. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65545

CONTROL_AWB_LOCK

public static final int CONTROL_AWB_LOCK

Whether auto-white balance (AWB) is currently locked to its latest calculated values. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65546

CONTROL_AWB_MODE

public static final int CONTROL_AWB_MODE

Whether auto-white balance (AWB) is currently setting the color transform fields, and what its illumination target is. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65547

CONTROL_AWB_REGIONS

public static final int CONTROL_AWB_REGIONS

List of metering areas to use for auto-white-balance illuminant estimation. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 65548

CONTROL_AWB_STATE

public static final int CONTROL_AWB_STATE

Current state of auto-white balance (AWB) algorithm. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65570

CONTROL_CAPTURE_INTENT

public static final int CONTROL_CAPTURE_INTENT

Information to the camera device 3A (auto-exposure, auto-focus, auto-white balance) routines about the purpose of this capture, to help the camera device to decide optimal 3A strategy. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65549

CONTROL_EFFECT_MODE

public static final int CONTROL_EFFECT_MODE

A special color effect to apply. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65550

CONTROL_MODE

public static final int CONTROL_MODE

Overall mode of 3A (auto-exposure, auto-white-balance, auto-focus) control routines. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65551

CONTROL_POST_RAW_SENSITIVITY_BOOST

public static final int CONTROL_POST_RAW_SENSITIVITY_BOOST

The amount of additional sensitivity boost applied to output images after RAW sensor data is captured. See Android NDK Docs for details. Access using getInt(int).

Constant Value: 65576

CONTROL_SCENE_MODE

public static final int CONTROL_SCENE_MODE

Control for which scene mode is currently active. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65552

CONTROL_VIDEO_STABILIZATION_MODE

public static final int CONTROL_VIDEO_STABILIZATION_MODE

Whether video stabilization is active. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 65553

EDGE_MODE

public static final int EDGE_MODE

Operation mode for edge enhancement. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 196608

FLASH_MODE

public static final int FLASH_MODE

The desired mode for the camera device's flash control. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 262146

FLASH_STATE

public static final int FLASH_STATE

Current state of the flash unit. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 262149

HOT_PIXEL_MODE

public static final int HOT_PIXEL_MODE

Operational mode for hot pixel correction. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 393216

JPEG_GPS_COORDINATES

public static final int JPEG_GPS_COORDINATES

GPS coordinates to include in output JPEG EXIF. See Android NDK Docs for details. Access using getDoubleArray(int).

Constant Value: 458752

JPEG_GPS_PROCESSING_METHOD

public static final int JPEG_GPS_PROCESSING_METHOD

32 characters describing GPS algorithm to include in EXIF. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 458753

JPEG_GPS_TIMESTAMP

public static final int JPEG_GPS_TIMESTAMP

Time GPS fix was made to include in EXIF. See Android NDK Docs for details. Access using getLong(int).

Constant Value: 458754

JPEG_ORIENTATION

public static final int JPEG_ORIENTATION

The orientation for a JPEG image. See Android NDK Docs for details. Access using getInt(int).

Constant Value: 458755

JPEG_QUALITY

public static final int JPEG_QUALITY

Compression quality of the final JPEG image. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 458756

JPEG_THUMBNAIL_QUALITY

public static final int JPEG_THUMBNAIL_QUALITY

Compression quality of JPEG thumbnail. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 458757

JPEG_THUMBNAIL_SIZE

public static final int JPEG_THUMBNAIL_SIZE

Resolution of embedded JPEG thumbnail. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 458758

LENS_APERTURE

public static final int LENS_APERTURE

The desired lens aperture size, as a ratio of lens focal length to the effective aperture diameter. See Android NDK Docs for details. Access using getFloat(int).

Constant Value: 524288

LENS_FILTER_DENSITY

public static final int LENS_FILTER_DENSITY

The desired setting for the lens neutral density filter(s). See Android NDK Docs for details. Access using getFloat(int).

Constant Value: 524289

LENS_FOCAL_LENGTH

public static final int LENS_FOCAL_LENGTH

The desired lens focal length; used for optical zoom. See Android NDK Docs for details. Access using getFloat(int).

Constant Value: 524290

LENS_FOCUS_DISTANCE

public static final int LENS_FOCUS_DISTANCE

Desired distance to plane of sharpest focus, measured from frontmost surface of the lens. See Android NDK Docs for details. Access using getFloat(int).

Constant Value: 524291

LENS_FOCUS_RANGE

public static final int LENS_FOCUS_RANGE

The range of scene distances that are in sharp focus (depth of field). See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 524296

LENS_INTRINSIC_CALIBRATION

public static final int LENS_INTRINSIC_CALIBRATION

The parameters for this camera device's intrinsic calibration. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 524298

LENS_OPTICAL_STABILIZATION_MODE

public static final int LENS_OPTICAL_STABILIZATION_MODE

Sets whether the camera device uses optical image stabilization (OIS) when capturing images. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 524292

LENS_POSE_ROTATION

public static final int LENS_POSE_ROTATION

The orientation of the camera relative to the sensor coordinate system. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 524294

LENS_POSE_TRANSLATION

public static final int LENS_POSE_TRANSLATION

Position of the camera optical center. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 524295

LENS_RADIAL_DISTORTION

public static final int LENS_RADIAL_DISTORTION

The correction coefficients to correct for this camera device's radial and tangential lens distortion. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 524299

LENS_STATE

public static final int LENS_STATE

Current lens status. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 524297

NOISE_REDUCTION_MODE

public static final int NOISE_REDUCTION_MODE

Mode of operation for the noise reduction algorithm. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 655360

REQUEST_PIPELINE_DEPTH

public static final int REQUEST_PIPELINE_DEPTH

Specifies the number of pipeline stages the frame went through from when it was exposed to when the final completed result was available to the framework. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 786441

SCALER_CROP_REGION

public static final int SCALER_CROP_REGION

The desired region of the sensor to read out for this capture. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 851968

SENSOR_DYNAMIC_BLACK_LEVEL

public static final int SENSOR_DYNAMIC_BLACK_LEVEL

A per-frame dynamic black level offset for each of the color filter arrangement (CFA) mosaic channels. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 917532

SENSOR_DYNAMIC_WHITE_LEVEL

public static final int SENSOR_DYNAMIC_WHITE_LEVEL

Maximum raw value output by sensor for this frame. See Android NDK Docs for details. Access using getInt(int).

Constant Value: 917533

SENSOR_EXPOSURE_TIME

public static final int SENSOR_EXPOSURE_TIME

Duration each pixel is exposed to light. See Android NDK Docs for details. Access using getLong(int).

Constant Value: 917504

SENSOR_FRAME_DURATION

public static final int SENSOR_FRAME_DURATION

Duration from start of frame exposure to start of next frame exposure. See Android NDK Docs for details. Access using getLong(int).

Constant Value: 917505

SENSOR_GREEN_SPLIT

public static final int SENSOR_GREEN_SPLIT

The worst-case divergence between Bayer green channels. See Android NDK Docs for details. Access using getFloat(int).

Constant Value: 917526

SENSOR_NEUTRAL_COLOR_POINT

public static final int SENSOR_NEUTRAL_COLOR_POINT

The estimated camera neutral color in the native sensor colorspace at the time of capture. See Android NDK Docs for details. Access using getRationalArray(int).

Constant Value: 917522

SENSOR_NOISE_PROFILE

public static final int SENSOR_NOISE_PROFILE

Noise model coefficients for each CFA mosaic channel. See Android NDK Docs for details. Access using getDoubleArray(int).

Constant Value: 917523

SENSOR_ROLLING_SHUTTER_SKEW

public static final int SENSOR_ROLLING_SHUTTER_SKEW

Duration between the start of first row exposure and the start of last row exposure. See Android NDK Docs for details. Access using getLong(int).

Constant Value: 917530

SENSOR_SENSITIVITY

public static final int SENSOR_SENSITIVITY

The amount of gain applied to sensor data before processing. See Android NDK Docs for details. Access using getInt(int).

Constant Value: 917506

SENSOR_TEST_PATTERN_DATA

public static final int SENSOR_TEST_PATTERN_DATA

A pixel [R, G_even, G_odd, B] that supplies the test pattern when ACAMERA_SENSOR_TEST_PATTERN_MODE is SOLID_COLOR. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 917527

SENSOR_TEST_PATTERN_MODE

public static final int SENSOR_TEST_PATTERN_MODE

When enabled, the sensor sends a test pattern instead of doing a real exposure from the camera. See Android NDK Docs for details. Access using getInt(int).

Constant Value: 917528

SENSOR_TIMESTAMP

public static final int SENSOR_TIMESTAMP

Time at start of exposure of first row of the image sensor active array, in nanoseconds. See Android NDK Docs for details. Access using getLong(int).

Constant Value: 917520

SHADING_MODE

public static final int SHADING_MODE

Quality of lens shading correction applied to the image data. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1048576

STATISTICS_FACE_DETECT_MODE

public static final int STATISTICS_FACE_DETECT_MODE

Operating mode for the face detector unit. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1114112

STATISTICS_FACE_IDS

public static final int STATISTICS_FACE_IDS

List of unique IDs for detected faces. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 1114116

STATISTICS_FACE_LANDMARKS

public static final int STATISTICS_FACE_LANDMARKS

List of landmarks for detected faces. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 1114117

STATISTICS_FACE_RECTANGLES

public static final int STATISTICS_FACE_RECTANGLES

List of the bounding rectangles for detected faces. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 1114118

STATISTICS_FACE_SCORES

public static final int STATISTICS_FACE_SCORES

List of the face confidence scores for detected faces See Android NDK Docs for details. Access using getByteArray(int).

Constant Value: 1114119

STATISTICS_HOT_PIXEL_MAP

public static final int STATISTICS_HOT_PIXEL_MAP

List of (x, y) coordinates of hot/defective pixels on the sensor. See Android NDK Docs for details. Access using getIntArray(int).

Constant Value: 1114127

STATISTICS_HOT_PIXEL_MAP_MODE

public static final int STATISTICS_HOT_PIXEL_MAP_MODE

Operating mode for hot pixel map generation. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1114115

STATISTICS_LENS_SHADING_MAP

public static final int STATISTICS_LENS_SHADING_MAP

The shading map is a low-resolution floating-point map that lists the coefficients used to correct for vignetting and color shading, for each Bayer color channel of RAW image data. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 1114123

STATISTICS_LENS_SHADING_MAP_MODE

public static final int STATISTICS_LENS_SHADING_MAP_MODE

Whether the camera device will output the lens shading map in output result metadata. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1114128

STATISTICS_SCENE_FLICKER

public static final int STATISTICS_SCENE_FLICKER

The camera device estimated scene illumination lighting frequency. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1114126

SYNC_FRAME_NUMBER

public static final int SYNC_FRAME_NUMBER

The frame number corresponding to the last request with which the output result (metadata + buffers) has been fully synchronized. See Android NDK Docs for details. Access using getLong(int).

Constant Value: 1507328

TONEMAP_CURVE_BLUE

public static final int TONEMAP_CURVE_BLUE

Tonemapping / contrast / gamma curve for the blue channel, to use when ACAMERA_TONEMAP_MODE is CONTRAST_CURVE. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 1245184

TONEMAP_CURVE_GREEN

public static final int TONEMAP_CURVE_GREEN

Tonemapping / contrast / gamma curve for the green channel, to use when ACAMERA_TONEMAP_MODE is CONTRAST_CURVE. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 1245185

TONEMAP_CURVE_RED

public static final int TONEMAP_CURVE_RED

Tonemapping / contrast / gamma curve for the red channel, to use when ACAMERA_TONEMAP_MODE is CONTRAST_CURVE. See Android NDK Docs for details. Access using getFloatArray(int).

Constant Value: 1245186

TONEMAP_GAMMA

public static final int TONEMAP_GAMMA

Tonemapping curve to use when ACAMERA_TONEMAP_MODE is GAMMA_VALUE See Android NDK Docs for details. Access using getFloat(int).

Constant Value: 1245190

TONEMAP_MODE

public static final int TONEMAP_MODE

High-level global contrast/gamma/tonemapping control. See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1245187

TONEMAP_PRESET_CURVE

public static final int TONEMAP_PRESET_CURVE

Tonemapping curve to use when ACAMERA_TONEMAP_MODE is PRESET_CURVE See Android NDK Docs for details. Access using getByte(int).

Constant Value: 1245191

Public Methods

getByte

public byte getByte(
  int key
)

Retrieves the scalar byte value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single byte.
MetadataNotFoundException if the camera image metadata does not contain the key.

getByteArray

public byte[] getByteArray(
  int key
)

Retrieves the byte array value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type byte.
MetadataNotFoundException if the camera image metadata does not contain the key.

getDouble

public double getDouble(
  int key
)

Retrieves the scalar double value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single double.
MetadataNotFoundException if the camera image metadata does not contain the key.

getDoubleArray

public double[] getDoubleArray(
  int key
)

Retrieves the double array value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type double.
MetadataNotFoundException if the camera image metadata does not contain the key.

getFloat

public float getFloat(
  int key
)

Retrieves the scalar floating point value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single float.
MetadataNotFoundException if the camera image metadata does not contain the key.

getFloatArray

public float[] getFloatArray(
  int key
)

Retrieves the float array value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type float.
MetadataNotFoundException if the camera image metadata does not contain the key.

getInt

public int getInt(
  int key
)

Retrieves the scalar integer value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single integer.
MetadataNotFoundException if the camera image metadata does not contain the key.

getIntArray

public int[] getIntArray(
  int key
)

Retrieves the integer array value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type int.
MetadataNotFoundException if the camera image metadata does not contain the key.

getKeys

public long[] getKeys()

Returns the list of all metadata keys available for this image.

getLong

public long getLong(
  int key
)

Retrieves the scalar long value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single long.
MetadataNotFoundException if the camera image metadata does not contain the key.

getLongArray

public long[] getLongArray(
  int key
)

Retrieves the long array value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type long.
MetadataNotFoundException if the camera image metadata does not contain the key.

getRational

public Rational getRational(
  int key
)

Retrieves the scalar Rational value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single Rational.
MetadataNotFoundException if the camera image metadata does not contain the key.

getRationalArray

public Rational[] getRationalArray(
  int key
)

Retrieves the Rational array value for a specific key.

Details
Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type Rational.
MetadataNotFoundException if the camera image metadata does not contain the key.