OSDN Git Service

Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION
authorEino-Ville Talvala <etalvala@google.com>
Wed, 14 Mar 2018 02:10:23 +0000 (19:10 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Fri, 16 Mar 2018 21:07:17 +0000 (14:07 -0700)
commit245e2796956edd42992a700440cb62569e1e26aa
tree81da88e08b59f3e01e08b17951c4917af5908616
parente33828b07329c3da501062ab52cfd8a3a203da1c
Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION

LENS_RADIAL_DISTORTION is inconsistently defined: in some places, it
is documented to operate on the range [-1...1], and in others, on a
range dependent on the camera lens's intrinsic calibration and focal
length.

Since fixing just the definition will not fix any existing devices
that define this value, deprecate the old key and add a new consistent
one to make sure applications only reference the consistent
definition.

Also add support for adding a deprecation description to the metadata
entries, and add descriptions for all the existing deprecated entries.

Test: Adjusted camera CTS passes
Bug: 74641761

Change-Id: I410cef73974bdd02f89051812730424b50fb9430
camera/docs/CameraMetadataKeys.mako
camera/docs/docs.html
camera/docs/metadata_definitions.xml
camera/docs/metadata_definitions.xsd
camera/docs/metadata_helpers.py
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