OSDN Git Service

camera_metadata: Update the aberration correction related tag names
authorZhijun He <zhijunhe@google.com>
Mon, 18 Aug 2014 17:55:33 +0000 (10:55 -0700)
committerZhijun He <zhijunhe@google.com>
Mon, 18 Aug 2014 17:55:33 +0000 (10:55 -0700)
Bug: 17008587
Change-Id: I9e635198f150de1f079c17b27c83c7e9c85f018f

camera/docs/docs.html
camera/docs/metadata_properties.xml
camera/include/system/camera_metadata_tags.h
camera/src/camera_metadata_tag_info.c

index b7c0caf..77d9ad1 100644 (file)
             <li
             ><a href="#controls_android.colorCorrection.gains">android.colorCorrection.gains</a></li>
             <li
-            ><a href="#controls_android.colorCorrection.aberrationCorrectionMode">android.colorCorrection.aberrationCorrectionMode</a></li>
+            ><a href="#controls_android.colorCorrection.aberrationMode">android.colorCorrection.aberrationMode</a></li>
           </ul>
         </li>
         <li>
             <li
             ><a href="#dynamic_android.colorCorrection.gains">android.colorCorrection.gains</a></li>
             <li
-            ><a href="#dynamic_android.colorCorrection.aberrationCorrectionMode">android.colorCorrection.aberrationCorrectionMode</a></li>
+            ><a href="#dynamic_android.colorCorrection.aberrationMode">android.colorCorrection.aberrationMode</a></li>
           </ul>
         </li>
         <li>
           <span class="toc_kind_header">static</span>
           <ul class="toc_section">
             <li
-            ><a href="#static_android.colorCorrection.availableAberrationCorrectionModes">android.colorCorrection.availableAberrationCorrectionModes</a></li>
+            ><a href="#static_android.colorCorrection.availableAberrationModes">android.colorCorrection.availableAberrationModes</a></li>
           </ul>
         </li>
       </ul> <!-- toc_section -->
@@ -1324,10 +1324,10 @@ channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
            <!-- end of entry -->
         
                 
-          <tr class="entry" id="controls_android.colorCorrection.aberrationCorrectionMode">
+          <tr class="entry" id="controls_android.colorCorrection.aberrationMode">
             <td class="entry_name
              " rowspan="3">
-              android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Correction<wbr/>Mode
+              android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
             </td>
             <td class="entry_type">
                 <span class="entry_type_name entry_type_name_enum">byte</span>
@@ -1376,7 +1376,7 @@ capture rate (relative to sensor raw output).<wbr/></p></span>
           <tr class="entry_cont">
             <td class="entry_details" colspan="5">
               <p>This must be set to a valid mode from
-<a href="#static_android.colorCorrection.availableAberrationCorrectionModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Correction<wbr/>Modes</a>.<wbr/></p>
+<a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a>.<wbr/></p>
 <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
 can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
 the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
@@ -1665,10 +1665,10 @@ channels,<wbr/> it must use the <code>G_<wbr/>even</code> value,<wbr/> and write
            <!-- end of entry -->
         
                 
-          <tr class="entry" id="dynamic_android.colorCorrection.aberrationCorrectionMode">
+          <tr class="entry" id="dynamic_android.colorCorrection.aberrationMode">
             <td class="entry_name
              " rowspan="3">
-              android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Correction<wbr/>Mode
+              android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode
             </td>
             <td class="entry_type">
                 <span class="entry_type_name entry_type_name_enum">byte</span>
@@ -1717,7 +1717,7 @@ capture rate (relative to sensor raw output).<wbr/></p></span>
           <tr class="entry_cont">
             <td class="entry_details" colspan="5">
               <p>This must be set to a valid mode from
-<a href="#static_android.colorCorrection.availableAberrationCorrectionModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Correction<wbr/>Modes</a>.<wbr/></p>
+<a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a>.<wbr/></p>
 <p>Chromatic (color) aberration is caused by the fact that different wavelengths of light
 can not focus on the same point after exiting from the lens.<wbr/> This metadata defines
 the high level control of chromatic aberration correction algorithm,<wbr/> which aims to
@@ -1763,10 +1763,10 @@ applying aberration correction.<wbr/></p>
         
 
                 
-          <tr class="entry" id="static_android.colorCorrection.availableAberrationCorrectionModes">
+          <tr class="entry" id="static_android.colorCorrection.availableAberrationModes">
             <td class="entry_name
              " rowspan="3">
-              android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Correction<wbr/>Modes
+              android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes
             </td>
             <td class="entry_type">
                 <span class="entry_type_name">byte</span>
@@ -1793,7 +1793,7 @@ applying aberration correction.<wbr/></p>
 
             <td class="entry_range">
               <p>The subset of aberration correction mode from those specified in
-<a href="#controls_android.colorCorrection.aberrationCorrectionMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Correction<wbr/>Mode</a>.<wbr/></p>
+<a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a>.<wbr/></p>
             </td>
 
             <td class="entry_tags">
@@ -1808,7 +1808,7 @@ applying aberration correction.<wbr/></p>
           </tr>
           <tr class="entry_cont">
             <td class="entry_details" colspan="5">
-              <p>This metadata lists the valid modes for <a href="#controls_android.colorCorrection.aberrationCorrectionMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Correction<wbr/>Mode</a>.<wbr/>
+              <p>This metadata lists the valid modes for <a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a>.<wbr/>
 If no aberration correction modes are available for a device,<wbr/> this list will solely include
 OFF mode.<wbr/></p>
 <p>For FULL capability device (<a href="#static_android.info.supportedHardwareLevel">android.<wbr/>info.<wbr/>supported<wbr/>Hardware<wbr/>Level</a> <code>==</code> FULL),<wbr/> OFF must be
@@ -3108,7 +3108,8 @@ use case.<wbr/></p></span>
 image while recording video) use case.<wbr/></p>
 <p>The camera device should take the highest-quality image
 possible (given the other settings) without disrupting the
-frame rate of video recording.<wbr/>  </p></span>
+frame rate of video recording.<wbr/><br/>
+</p></span>
                   </li>
                   <li>
                     <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
@@ -6765,7 +6766,8 @@ use case.<wbr/></p></span>
 image while recording video) use case.<wbr/></p>
 <p>The camera device should take the highest-quality image
 possible (given the other settings) without disrupting the
-frame rate of video recording.<wbr/>  </p></span>
+frame rate of video recording.<wbr/><br/>
+</p></span>
                   </li>
                   <li>
                     <span class="entry_type_enum_name">ZERO_SHUTTER_LAG</span>
@@ -13074,8 +13076,8 @@ stages.<wbr/> This means the following controls are guaranteed to be supported:<
 </ul>
 </li>
 <li>Manual aberration correction control (if aberration correction is supported)<ul>
-<li><a href="#controls_android.colorCorrection.aberrationCorrectionMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Correction<wbr/>Mode</a></li>
-<li><a href="#static_android.colorCorrection.availableAberrationCorrectionModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Correction<wbr/>Modes</a></li>
+<li><a href="#controls_android.colorCorrection.aberrationMode">android.<wbr/>color<wbr/>Correction.<wbr/>aberration<wbr/>Mode</a></li>
+<li><a href="#static_android.colorCorrection.availableAberrationModes">android.<wbr/>color<wbr/>Correction.<wbr/>available<wbr/>Aberration<wbr/>Modes</a></li>
 </ul>
 </li>
 </ul>
@@ -22433,7 +22435,7 @@ to know when sensor settings have been applied.<wbr/></p>
         New features for first camera 2 release (API1)
     
         <ul class="tags_entries">
-          <li><a href="#static_android.colorCorrection.availableAberrationCorrectionModes">android.colorCorrection.availableAberrationCorrectionModes</a> (static)</li>
+          <li><a href="#static_android.colorCorrection.availableAberrationModes">android.colorCorrection.availableAberrationModes</a> (static)</li>
           <li><a href="#static_android.control.availableHighSpeedVideoConfigurations">android.control.availableHighSpeedVideoConfigurations</a> (static)</li>
           <li><a href="#controls_android.edge.mode">android.edge.mode</a> (controls)</li>
           <li><a href="#static_android.edge.availableEdgeModes">android.edge.availableEdgeModes</a> (static)</li>
index b98a116..b0b345b 100644 (file)
@@ -269,7 +269,7 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata
           `G_odd` equal to `G_even` in the output result metadata.
           </hal_details>
         </entry>
-        <entry name="aberrationCorrectionMode" type="byte" visibility="public" enum="true">
+        <entry name="aberrationMode" type="byte" visibility="public" enum="true">
           <enum>
             <value>OFF
               <notes>
@@ -294,7 +294,7 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata
           </description>
           <details>
             This must be set to a valid mode from
-            android.colorCorrection.availableAberrationCorrectionModes.
+            android.colorCorrection.availableAberrationModes.
 
             Chromatic (color) aberration is caused by the fact that different wavelengths of light
             can not focus on the same point after exiting from the lens. This metadata defines
@@ -317,11 +317,11 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata
         </clone>
         <clone entry="android.colorCorrection.gains" kind="controls">
         </clone>
-        <clone entry="android.colorCorrection.aberrationCorrectionMode" kind="controls">
+        <clone entry="android.colorCorrection.aberrationMode" kind="controls">
         </clone>
       </dynamic>
       <static>
-        <entry name="availableAberrationCorrectionModes" type="byte" visibility="public"
+        <entry name="availableAberrationModes" type="byte" visibility="public"
         type_notes="list of enums" container="array" typedef="enumList">
           <array>
             <size>n</size>
@@ -331,10 +331,10 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata
           </description>
           <range>
             The subset of aberration correction mode from those specified in
-            android.colorCorrection.aberrationCorrectionMode.
+            android.colorCorrection.aberrationMode.
           </range>
           <details>
-            This metadata lists the valid modes for android.colorCorrection.aberrationCorrectionMode.
+            This metadata lists the valid modes for android.colorCorrection.aberrationMode.
             If no aberration correction modes are available for a device, this list will solely include
             OFF mode.
 
@@ -3632,8 +3632,8 @@ xsi:schemaLocation="http://schemas.android.com/service/camera/metadata/ metadata
                     * android.statistics.lensShadingMap
                     * android.lens.info.shadingMapSize
               * Manual aberration correction control (if aberration correction is supported)
-                    * android.colorCorrection.aberrationCorrectionMode
-                    * android.colorCorrection.availableAberrationCorrectionModes
+                    * android.colorCorrection.aberrationMode
+                    * android.colorCorrection.availableAberrationModes
 
               If auto white balance is enabled, then the camera device
               will accurately report the values applied by AWB in the result.
index 3f3213a..c66ae3e 100644 (file)
@@ -107,9 +107,8 @@ typedef enum camera_metadata_tag {
             ANDROID_COLOR_CORRECTION_START,
     ANDROID_COLOR_CORRECTION_TRANSFORM,               // rational[]   | public
     ANDROID_COLOR_CORRECTION_GAINS,                   // float[]      | public
-    ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE,
-                                                      // enum         | public
-    ANDROID_COLOR_CORRECTION_AVAILABLE_ABERRATION_CORRECTION_MODES,
+    ANDROID_COLOR_CORRECTION_ABERRATION_MODE,         // enum         | public
+    ANDROID_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES,
                                                       // byte[]       | public
     ANDROID_COLOR_CORRECTION_END,
 
@@ -390,12 +389,12 @@ typedef enum camera_metadata_enum_android_color_correction_mode {
     ANDROID_COLOR_CORRECTION_MODE_HIGH_QUALITY,
 } camera_metadata_enum_android_color_correction_mode_t;
 
-// ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE
-typedef enum camera_metadata_enum_android_color_correction_aberration_correction_mode {
-    ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_OFF,
-    ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_FAST,
-    ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_HIGH_QUALITY,
-} camera_metadata_enum_android_color_correction_aberration_correction_mode_t;
+// ANDROID_COLOR_CORRECTION_ABERRATION_MODE
+typedef enum camera_metadata_enum_android_color_correction_aberration_mode {
+    ANDROID_COLOR_CORRECTION_ABERRATION_MODE_OFF,
+    ANDROID_COLOR_CORRECTION_ABERRATION_MODE_FAST,
+    ANDROID_COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY,
+} camera_metadata_enum_android_color_correction_aberration_mode_t;
 
 
 // ANDROID_CONTROL_AE_ANTIBANDING_MODE
index 0e68e09..ec383e3 100644 (file)
@@ -117,11 +117,10 @@ static tag_info_t android_color_correction[ANDROID_COLOR_CORRECTION_END -
                 },
     [ ANDROID_COLOR_CORRECTION_GAINS - ANDROID_COLOR_CORRECTION_START ] =
     { "gains",                         TYPE_FLOAT  },
-    [ ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE - ANDROID_COLOR_CORRECTION_START ] =
-    { "aberrationCorrectionMode",      TYPE_BYTE   },
-    [ ANDROID_COLOR_CORRECTION_AVAILABLE_ABERRATION_CORRECTION_MODES - ANDROID_COLOR_CORRECTION_START ] =
-    { "availableAberrationCorrectionModes",
-                                        TYPE_BYTE   },
+    [ ANDROID_COLOR_CORRECTION_ABERRATION_MODE - ANDROID_COLOR_CORRECTION_START ] =
+    { "aberrationMode",                TYPE_BYTE   },
+    [ ANDROID_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES - ANDROID_COLOR_CORRECTION_START ] =
+    { "availableAberrationModes",      TYPE_BYTE   },
 };
 
 static tag_info_t android_control[ANDROID_CONTROL_END -
@@ -671,17 +670,17 @@ int camera_metadata_enum_snprint(uint32_t tag,
         case ANDROID_COLOR_CORRECTION_GAINS: {
             break;
         }
-        case ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE: {
+        case ANDROID_COLOR_CORRECTION_ABERRATION_MODE: {
             switch (value) {
-                case ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_OFF:
+                case ANDROID_COLOR_CORRECTION_ABERRATION_MODE_OFF:
                     msg = "OFF";
                     ret = 0;
                     break;
-                case ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_FAST:
+                case ANDROID_COLOR_CORRECTION_ABERRATION_MODE_FAST:
                     msg = "FAST";
                     ret = 0;
                     break;
-                case ANDROID_COLOR_CORRECTION_ABERRATION_CORRECTION_MODE_HIGH_QUALITY:
+                case ANDROID_COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY:
                     msg = "HIGH_QUALITY";
                     ret = 0;
                     break;
@@ -690,7 +689,7 @@ int camera_metadata_enum_snprint(uint32_t tag,
             }
             break;
         }
-        case ANDROID_COLOR_CORRECTION_AVAILABLE_ABERRATION_CORRECTION_MODES: {
+        case ANDROID_COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES: {
             break;
         }