OSDN Git Service

Camera: Fix metadata data alignment, other minor bugs.
authorEino-Ville Talvala <etalvala@google.com>
Thu, 8 Nov 2012 00:36:50 +0000 (16:36 -0800)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 13 Nov 2012 18:26:13 +0000 (10:26 -0800)
commit3154036acd2cc809388d08ff856198a8512f05f0
tree0ede894b4f153ee1d4f2b94fda00c61a297c9aa7
parent6c94a620035d8e719bf4e5040e39db92700bff6c
Camera: Fix metadata data alignment, other minor bugs.

- When a metadata entry needs to overflow into the data buffer, make
 sure the starting offset is aligned to the maximum needed by all the
 metadata types.
- Bounds check the data buffer size when adding a new entry
- Add new test for the bounds check
- Print out doubles correctly.

Bug: 7498597

Change-Id: Ic8645a998c096f5b803839ee8076b97862127021
camera/src/camera_metadata.c
camera/tests/camera_metadata_tests.cpp