liiir1985 7f62dcda9f | ||
---|---|---|
.. | ||
aidl | ||
images/camera2/metadata | ||
.gitignore | ||
ACameraMetadata.mako | ||
CameraCharacteristicsKeys.mako | ||
CameraDeviceInfo.mako | ||
CameraMetadataEnums.mako | ||
CameraMetadataKeys.mako | ||
CaptureRequestKeys.mako | ||
CaptureResultKeys.mako | ||
CaptureResultTest.mako | ||
HidlMetadata.mako | ||
README.md | ||
__init__.py | ||
camera_device_info.mako | ||
camera_device_info.proto | ||
camera_metadata_asserts.mako | ||
camera_metadata_tag_info.mako | ||
camera_metadata_tags.mako | ||
docs.html | ||
html.mako | ||
metadata-check-dependencies | ||
metadata-generate | ||
metadata-parser-validity-check | ||
metadata-validate | ||
metadata_definitions.xml | ||
metadata_definitions.xsd | ||
metadata_enums.py | ||
metadata_helpers.py | ||
metadata_helpers_test.py | ||
metadata_model.py | ||
metadata_model_test.py | ||
metadata_parser_xml.py | ||
metadata_template.mako | ||
metadata_validate.py | ||
ndk_camera_metadata_tags.mako | ||
plots.py | ||
vndk_camera_metadata_tags.mako | ||
zoom_ratio_diagrams.graffle |
README.md
Camera Metadata XML
Introduction
This is a set of scripts to manipulate the camera metadata in an XML form.
Generated Files
Many files can be generated from XML, such as the documentation (html/pdf), C code, Java code, and even XML itself (as a round-trip validity check).
Dependencies
- Python 2.7.x+
- Beautiful Soup 4+ - HTML/XML parser, used to parse
metadata_definitions.xml
- Mako 0.7+ - Template engine, needed to do file generation.
- Markdown 2.1+ - Plain text to HTML converter, for docs formatting.
- Tidy - Cleans up the XML/HTML files.
- XML Lint - Validates XML against XSD schema.
Quick Setup (Ubuntu Precise):
sudo apt-get install python-mako sudo apt-get install python-bs4 sudo apt-get install python-markdown sudo apt-get install tidy sudo apt-get install libxml2-utils #xmllint
Quick Setup (MacPorts)
sudo port install py27-beautifulsoup4 sudo port install py27-mako sudo port install py27-markdown sudo port install tidy sudo port install libxml2 #xmllint