tree: f385555f70a94434c4830b94bc7d5a8369a3a7f5 [path history] [tgz]
  1. images/
  2. .gitignore
  3. __init__.py
  4. ACameraMetadata.mako
  5. camera_device_info.mako
  6. camera_device_info.proto
  7. camera_metadata_tag_info.mako
  8. camera_metadata_tags.mako
  9. CameraCharacteristicsKeys.mako
  10. CameraDeviceInfo.mako
  11. CameraMetadataEnums.mako
  12. CameraMetadataKeys.mako
  13. CaptureRequestKeys.mako
  14. CaptureResultKeys.mako
  15. CaptureResultTest.mako
  16. docs.html
  17. html.mako
  18. metadata-check-dependencies
  19. metadata-generate
  20. metadata-parser-sanity-check
  21. metadata-validate
  22. metadata_helpers.py
  23. metadata_helpers_test.py
  24. metadata_model.py
  25. metadata_model_test.py
  26. metadata_parser_xml.py
  27. metadata_properties.xml
  28. metadata_properties.xsd
  29. metadata_template.mako
  30. metadata_validate.py
  31. ndk_camera_metadata_tags.mako
  32. ndk_metadata_properties.xml
  33. README.md
camera/docs/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 sanity check).

Dependencies

  • Python 2.7.x+
  • Beautiful Soup 4+ - HTML/XML parser, used to parse metadata_properties.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