OSDN Git Service

Camera2: Add distortion correction support
authorEino-Ville Talvala <etalvala@google.com>
Wed, 14 Mar 2018 02:46:57 +0000 (19:46 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 27 Mar 2018 17:41:37 +0000 (10:41 -0700)
commitd4c0fe30d67b7597d77079a0304647b6ea74284f
tree210c50fcc77cc241d2d8a50d0679723705bfae1d
parent245e2796956edd42992a700440cb62569e1e26aa
Camera2: Add distortion correction support

This allows camera devices to correct geometric distortion in their
optics, when requested by the application.

The correction only applies to processed (YUV, JPEG, etc) outputs,
not RAW buffers, or the result metadata.

Also fix metadata generation code to handle <clone> entries and their
hal_versions, to fix code generation for the HIDL layer. A clone entry
inherits its target entry's hal version, but can override it to a
higher version if necessary; an error is generated if the version is
less than the target entry. In addition, fix bug in generating HIDL
output when there are multiple new sections in a new HAL version.

Test: New CTS test passes
Bug: 74434422
Change-Id: I6154e9757310636565aec5344a8988408234c164
camera/docs/HidlMetadata.mako
camera/docs/camera_device_info.proto
camera/docs/docs.html
camera/docs/metadata_definitions.xml
camera/docs/metadata_definitions.xsd
camera/docs/metadata_model.py
camera/docs/metadata_parser_xml.py
camera/docs/metadata_template.mako
camera/docs/metadata_validate.py
camera/include/system/camera_metadata_tags.h
camera/src/camera_metadata_tag_info.c