OSDN Git Service

Make camera metadata tag definitions more robust to mismatches.
authorEino-Ville Talvala <etalvala@google.com>
Wed, 11 Apr 2012 23:15:50 +0000 (16:15 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Mon, 16 Apr 2012 17:52:27 +0000 (10:52 -0700)
commit623ff65afea34612498dcf33887ffaf8b194c281
tree5a65fc5484a8919682aefa49aec1f45eee9ce220
parent94c1901a96c268f55012809f8261f2ec89c16dea
Make camera metadata tag definitions more robust to mismatches.

Use array assignment-by-index syntax to make sure we match the desired
index to the entry, so it's easier to keep the metadata header and the
info structures in sync.

Change-Id: I06d1ea3d52c651b447cc167cd551e907c8e001ab
camera/include/system/camera_metadata_tags.h
camera/src/camera_metadata.c
camera/src/camera_metadata_tag_info.c