summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-03-18 11:10:48 -0700
committerIgor Murashkin <iam@google.com>2013-03-18 11:10:48 -0700
commit46ee76c093796924de4e0d356220844a99d10707 (patch)
treecbd1ba69b133eda39601a1c8486eb15756b533db /camera
parent26bb1d3702e01779c5ef481c2ad38568d4cc2aa8 (diff)
downloadframeworks_av-46ee76c093796924de4e0d356220844a99d10707.zip
frameworks_av-46ee76c093796924de4e0d356220844a99d10707.tar.gz
frameworks_av-46ee76c093796924de4e0d356220844a99d10707.tar.bz2
ProCameraTests: Minor add grey/frame count debug-only print outs
Change-Id: I0f7b7f3c083a644e9bb0c2302244a5ad434e96a8
Diffstat (limited to 'camera')
-rw-r--r--camera/tests/ProCameraTests.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/camera/tests/ProCameraTests.cpp b/camera/tests/ProCameraTests.cpp
index 71813ae..ecc0854 100644
--- a/camera/tests/ProCameraTests.cpp
+++ b/camera/tests/ProCameraTests.cpp
@@ -1015,6 +1015,9 @@ TEST_F(ProCameraTest, WaitForDualStreamBuffer) {
ASSERT_NO_FATAL_FAILURE(createSubmitRequestForStreams(streams, /*count*/2,
/*requests*/REQUEST_COUNT));
+ int depthFrames = 0;
+ int greyFrames = 0;
+
// Consume two frames simultaneously. Unsynchronized by timestamps.
for (int i = 0; i < REQUEST_COUNT; ++i) {
@@ -1041,6 +1044,8 @@ TEST_F(ProCameraTest, WaitForDualStreamBuffer) {
EXPECT_OK(depthConsumer->unlockBuffer(depthBuffer));
+ depthFrames++;
+
/** Consume Greyscale frames if there are any.
* There may not be since it runs at half FPS */
@@ -1053,9 +1058,14 @@ TEST_F(ProCameraTest, WaitForDualStreamBuffer) {
", timestamp = " << greyBuffer.timestamp << std::endl;
EXPECT_OK(consumer->unlockBuffer(greyBuffer));
+
+ greyFrames++;
}
}
+ dout << "Done, summary: depth frames " << std::dec << depthFrames
+ << ", grey frames " << std::dec << greyFrames << std::endl;
+
// Done: clean up
EXPECT_OK(mCamera->deleteStream(streamId));
EXPECT_OK(mCamera->exclusiveUnlock());