OSDN Git Service

DngCreator: Fix calculation of date/time stamps
authorEino-Ville Talvala <etalvala@google.com>
Sun, 18 Sep 2016 00:48:04 +0000 (17:48 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Mon, 19 Sep 2016 00:11:41 +0000 (17:11 -0700)
commit3fc21ef78bb7b913a203394cbb870086696c8fa3
treee6cdac494f2223923e3aade13dac343031e8c914
parent492450c88ae3e4810b4e6b4856fb1fb1bc347fa1
DngCreator: Fix calculation of date/time stamps

Converting the sensor timestamp to date/time requires checking
what the timebase of those timestamps is; getting it wrong will
create drift that increases with device uptime.

Test: android.hardware.camera2.cts.
      DngCreatorTest#testSingleImageThumbnail
Bug: 30125412
Change-Id: Ia5db86012bc9e1c06463b8dc4434d3e063f62cf5
core/java/android/hardware/camera2/DngCreator.java