tree: a10e4e65d35b4606b7ae4f4b2c08e6fc93647727 [path history] [tgz]
  1. aidl/
  2. images/
  3. .gitignore
  4. __init__.py
  5. ACameraMetadata.mako
  6. camera_device_info.mako
  7. camera_device_info.proto
  8. camera_metadata_asserts.mako
  9. camera_metadata_tag_info.mako
  10. camera_metadata_tags.mako
  11. CameraCharacteristicsKeys.mako
  12. CameraDeviceInfo.mako
  13. CameraMetadataEnums.mako
  14. CameraMetadataKeys.mako
  15. CaptureRequestKeys.mako
  16. CaptureResultKeys.mako
  17. CaptureResultTest.mako
  18. docs.html
  19. HidlMetadata.mako
  20. html.mako
  21. metadata-check-dependencies
  22. metadata-generate
  23. metadata-parser-validity-check
  24. metadata-validate
  25. metadata_definitions.xml
  26. metadata_definitions.xsd
  27. metadata_enums.py
  28. metadata_helpers.py
  29. metadata_helpers_test.py
  30. metadata_model.py
  31. metadata_model_test.py
  32. metadata_parser_xml.py
  33. metadata_template.mako
  34. metadata_validate.py
  35. ndk_camera_metadata_tags.mako
  36. plots.py
  37. README.md
  38. vndk_camera_metadata_tags.mako
  39. zoom_ratio_diagrams.graffle
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 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