Skip to content

Commit bc15a9e

Browse files
Yin-Chia Yehandroid-build-merger
authored andcommitted
Merge "Camera: update NDK LSC header"
am: 6d59728 Change-Id: I2a343edb2c23f9008ecc2fea18f3b229afd6df6a
2 parents 189889b + 6d59728 commit bc15a9e

File tree

1 file changed

+18
-69
lines changed

1 file changed

+18
-69
lines changed

ndk/platforms/android-24/include/camera/NdkCameraMetadataTags.h

Lines changed: 18 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -3871,7 +3871,7 @@ typedef enum acamera_metadata_tag {
38713871
* camera device, and an identity lens shading map data will be provided
38723872
* if <code>ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE == ON</code>. For example, for lens
38733873
* shading map with size of <code>[ 4, 3 ]</code>,
3874-
* the output ACAMERA_STATISTICS_LENS_SHADING_CORRECTION_MAP for this case will be an identity
3874+
* the output android.statistics.lensShadingCorrectionMap for this case will be an identity
38753875
* map shown below:</p>
38763876
* <pre><code>[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
38773877
* 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
@@ -3883,7 +3883,7 @@ typedef enum acamera_metadata_tag {
38833883
* <p>When set to other modes, lens shading correction will be applied by the camera
38843884
* device. Applications can request lens shading map data by setting
38853885
* ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE to ON, and then the camera device will provide lens
3886-
* shading map data in ACAMERA_STATISTICS_LENS_SHADING_CORRECTION_MAP; the returned shading map
3886+
* shading map data in android.statistics.lensShadingCorrectionMap; the returned shading map
38873887
* data will be the one applied by the camera device for this capture request.</p>
38883888
* <p>The shading map data may depend on the auto-exposure (AE) and AWB statistics, therefore
38893889
* the reliability of the map data may be affected by the AE and AWB algorithms. When AE and
@@ -3893,7 +3893,6 @@ typedef enum acamera_metadata_tag {
38933893
*
38943894
* @see ACAMERA_CONTROL_AE_MODE
38953895
* @see ACAMERA_CONTROL_AWB_MODE
3896-
* @see ACAMERA_STATISTICS_LENS_SHADING_CORRECTION_MAP
38973896
* @see ACAMERA_STATISTICS_LENS_SHADING_MAP_MODE
38983897
*/
38993898
ACAMERA_SHADING_MODE = // byte (enum)
@@ -4018,57 +4017,6 @@ typedef enum acamera_metadata_tag {
40184017
*/
40194018
ACAMERA_STATISTICS_FACE_SCORES = // byte[n]
40204019
ACAMERA_STATISTICS_START + 7,
4021-
/**
4022-
* <p>The shading map is a low-resolution floating-point map
4023-
* that lists the coefficients used to correct for vignetting, for each
4024-
* Bayer color channel.</p>
4025-
*
4026-
* <p>This tag may appear in:</p>
4027-
* <ul>
4028-
* <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li>
4029-
* </ul>
4030-
*
4031-
* <p>The least shaded section of the image should have a gain factor
4032-
* of 1; all other sections should have gains above 1.</p>
4033-
* <p>When ACAMERA_COLOR_CORRECTION_MODE = TRANSFORM_MATRIX, the map
4034-
* must take into account the colorCorrection settings.</p>
4035-
* <p>The shading map is for the entire active pixel array, and is not
4036-
* affected by the crop region specified in the request. Each shading map
4037-
* entry is the value of the shading compensation map over a specific
4038-
* pixel on the sensor. Specifically, with a (N x M) resolution shading
4039-
* map, and an active pixel array size (W x H), shading map entry
4040-
* (x,y) ϵ (0 ... N-1, 0 ... M-1) is the value of the shading map at
4041-
* pixel ( ((W-1)/(N-1)) * x, ((H-1)/(M-1)) * y) for the four color channels.
4042-
* The map is assumed to be bilinearly interpolated between the sample points.</p>
4043-
* <p>The channel order is [R, Geven, Godd, B], where Geven is the green
4044-
* channel for the even rows of a Bayer pattern, and Godd is the odd rows.
4045-
* The shading map is stored in a fully interleaved format.</p>
4046-
* <p>The shading map should have on the order of 30-40 rows and columns,
4047-
* and must be smaller than 64x64.</p>
4048-
* <p>As an example, given a very small map defined as:</p>
4049-
* <pre><code>width,height = [ 4, 3 ]
4050-
* values =
4051-
* [ 1.3, 1.2, 1.15, 1.2, 1.2, 1.2, 1.15, 1.2,
4052-
* 1.1, 1.2, 1.2, 1.2, 1.3, 1.2, 1.3, 1.3,
4053-
* 1.2, 1.2, 1.25, 1.1, 1.1, 1.1, 1.1, 1.0,
4054-
* 1.0, 1.0, 1.0, 1.0, 1.2, 1.3, 1.25, 1.2,
4055-
* 1.3, 1.2, 1.2, 1.3, 1.2, 1.15, 1.1, 1.2,
4056-
* 1.2, 1.1, 1.0, 1.2, 1.3, 1.15, 1.2, 1.3 ]
4057-
* </code></pre>
4058-
* <p>The low-resolution scaling map images for each channel are
4059-
* (displayed using nearest-neighbor interpolation):</p>
4060-
* <p><img alt="Red lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png" />
4061-
* <img alt="Green (even rows) lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png" />
4062-
* <img alt="Green (odd rows) lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png" />
4063-
* <img alt="Blue lens shading map" src="../images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png" /></p>
4064-
* <p>As a visualization only, inverting the full-color map to recover an
4065-
* image of a gray wall (using bicubic interpolation for visual quality) as captured by the sensor gives:</p>
4066-
* <p><img alt="Image of a uniform white wall (inverse shading map)" src="../images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png" /></p>
4067-
*
4068-
* @see ACAMERA_COLOR_CORRECTION_MODE
4069-
*/
4070-
ACAMERA_STATISTICS_LENS_SHADING_CORRECTION_MAP = // byte
4071-
ACAMERA_STATISTICS_START + 10,
40724020
/**
40734021
* <p>The shading map is a low-resolution floating-point map
40744022
* that lists the coefficients used to correct for vignetting and color shading,
@@ -4079,20 +4027,21 @@ typedef enum acamera_metadata_tag {
40794027
* <li>ACameraMetadata from ACameraCaptureSession_captureCallback_result callbacks</li>
40804028
* </ul>
40814029
*
4082-
* <p>The lens shading correction is defined as a full shading correction that
4083-
* corrects both color shading for the output non-RAW images. After the
4084-
* shading map is applied, the output non-RAW images will be flat-field images
4085-
* for flat scenes under uniform illumination.</p>
4086-
* <p>When there is no lens shading correction applied to RAW output images
4087-
* (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED <code>==</code> false), this map is a full lens
4088-
* shading correction map; when there is some lens shading correction applied
4089-
* to the RAW output image (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED <code>==</code> true),
4090-
* this map reports the remaining lens shading correction map that needs to be
4091-
* applied to get fully shading corrected images.</p>
4092-
* <p>For a full shading correction map, the least shaded section of the image
4093-
* should have a gain factor of 1; all other sections should have gains above 1.</p>
4030+
* <p>The map provided here is the same map that is used by the camera device to
4031+
* correct both color shading and vignetting for output non-RAW images.</p>
4032+
* <p>When there is no lens shading correction applied to RAW
4033+
* output images (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED <code>==</code>
4034+
* false), this map is the complete lens shading correction
4035+
* map; when there is some lens shading correction applied to
4036+
* the RAW output image (ACAMERA_SENSOR_INFO_LENS_SHADING_APPLIED<code>==</code> true), this map reports the remaining lens shading
4037+
* correction map that needs to be applied to get shading
4038+
* corrected images that match the camera device's output for
4039+
* non-RAW formats.</p>
4040+
* <p>For a complete shading correction map, the least shaded
4041+
* section of the image will have a gain factor of 1; all
4042+
* other sections will have gains above 1.</p>
40944043
* <p>When ACAMERA_COLOR_CORRECTION_MODE = TRANSFORM_MATRIX, the map
4095-
* must take into account the colorCorrection settings.</p>
4044+
* will take into account the colorCorrection settings.</p>
40964045
* <p>The shading map is for the entire active pixel array, and is not
40974046
* affected by the crop region specified in the request. Each shading map
40984047
* entry is the value of the shading compensation map over a specific
@@ -4105,8 +4054,8 @@ typedef enum acamera_metadata_tag {
41054054
* channel for the even rows of a Bayer pattern, and Godd is the odd rows.
41064055
* The shading map is stored in a fully interleaved format, and its size
41074056
* is provided in the camera static metadata by ACAMERA_LENS_INFO_SHADING_MAP_SIZE.</p>
4108-
* <p>The shading map should have on the order of 30-40 rows and columns,
4109-
* and must be smaller than 64x64.</p>
4057+
* <p>The shading map will generally have on the order of 30-40 rows and columns,
4058+
* and will be smaller than 64x64.</p>
41104059
* <p>As an example, given a very small map defined as:</p>
41114060
* <pre><code>ACAMERA_LENS_INFO_SHADING_MAP_SIZE = [ 4, 3 ]
41124061
* ACAMERA_STATISTICS_LENS_SHADING_MAP =

0 commit comments

Comments
 (0)