Camera: update NDK metadata tag documents
- Create a separate ndk_metadata_properties.xml to convert java
API specific documents to NDK specific.
- Replace link to public SDK by NDK counterparts or hyperlink
to public SDK website.
- Disable markdown->html rendering on tables because doxygen
supports markdown syntax and does not support thead/tbody tag.
- Add descriptions to rectangle keys to specify their data
representation is (left, top, width, height)
Bug: 27102995
Change-Id: I6b6da019dde66f28fce72937f05bd984638ec2ba
diff --git a/camera/docs/metadata-generate b/camera/docs/metadata-generate
index a013eaf..0e4dfc2 100755
--- a/camera/docs/metadata-generate
+++ b/camera/docs/metadata-generate
@@ -61,8 +61,14 @@
local in="$1"
local out="$2"
local intermediates="$3"
+ local ndk="$4"
+ local spec_file=$thisdir/metadata_properties.xml
- python $thisdir/metadata_parser_xml.py $thisdir/metadata_properties.xml $in $out
+ if [[ "$ndk" == "yes" ]]; then
+ spec_file=$thisdir/ndk_metadata_properties.xml
+ fi
+
+ python $thisdir/metadata_parser_xml.py $spec_file $in $out
local succ=$?
@@ -197,7 +203,7 @@
gen_file camera_metadata_tags.mako ../include/system/camera_metadata_tags.h || exit 1
#Generate NDK header
-gen_file_abs ndk_camera_metadata_tags.mako "$ndk_header_dir/NdkCameraMetadataTags.h" || exit 1
+gen_file_abs ndk_camera_metadata_tags.mako "$ndk_header_dir/NdkCameraMetadataTags.h" yes yes || exit 1
# Generate Java API definitions
mkdir -p "${outdir}"