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 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.

Protected Constructors

ImageMetadata()
(FOR TESTING) Constructs a new instance for use as a mock.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public static final int EDGE_MODE

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

Constant Value: 196608

public static final int FLASH_MODE

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

Constant Value: 262146

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public static final int LENS_STATE

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

Constant Value: 524297

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Protected Constructors

protected ImageMetadata ()

(FOR TESTING) Constructs a new instance for use as a mock. Calling any base method implementation on this instance may return unexpected results, throw an exception, or even crash.

To obtain an ImageMetadata normally, use getImageMetadata().

Public Methods

public byte getByte (int key)

Retrieves the scalar byte value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single byte.

public byte[] getByteArray (int key)

Retrieves the byte array value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type byte.

public double getDouble (int key)

Retrieves the scalar double value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single double.

public double[] getDoubleArray (int key)

Retrieves the double array value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type double.

public float getFloat (int key)

Retrieves the scalar floating point value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single float.

public float[] getFloatArray (int key)

Retrieves the float array value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type float.

public int getInt (int key)

Retrieves the scalar integer value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single integer.

public int[] getIntArray (int key)

Retrieves the integer array value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type int.

public long[] getKeys ()

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

public long getLong (int key)

Retrieves the scalar long value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single long.

public long[] getLongArray (int key)

Retrieves the long array value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type long.

public Rational getRational (int key)

Retrieves the scalar Rational value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that is a single Rational.

public Rational[] getRationalArray (int key)

Retrieves the Rational array value for a specific key.

Parameters
key
Throws
IllegalArgumentException if the key does not select a value that has type Rational.

Send feedback about...