commit | c31dc7e61eb37214ad186f6a2bc43d7b92bd236e | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Tue Jan 31 17:35:41 2017 -0800 |
committer | Eino-Ville Talvala <etalvala@google.com> | Tue Jan 31 17:59:47 2017 -0800 |
tree | c278e63c123a07aef08fc8e175bd14a226369e88 | |
parent | d00111e3b0c2ee59736fda992dd9ea24b23ef46a [diff] [blame] |
Camera3Device: Update frame counters/timestamps for dumpsys info For output streams, increment frame count and update timestamp when a filled buffer is queued to the output buffer queue. For input streams, increment frame count and update timestamp when a buffer is acquired from the input buffer queue. Test: Manual inspection of adb shell dumpsys media.camera while running DevCamera Change-Id: I8dc1d134baf5ad467e169f3ba6ffe0d1486df9dc
diff --git a/services/camera/libcameraservice/device3/Camera3OutputStream.cpp b/services/camera/libcameraservice/device3/Camera3OutputStream.cpp index b5883e3..f971116 100644 --- a/services/camera/libcameraservice/device3/Camera3OutputStream.cpp +++ b/services/camera/libcameraservice/device3/Camera3OutputStream.cpp
@@ -239,6 +239,7 @@ } mLastTimestamp = timestamp; + mFrameCount++; return OK; }