summaryrefslogtreecommitdiffstats
path: root/camera/tests
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
commit475391897f0886aae1833d5e8b2e5aea47cc36bb (patch)
treec425abf53898f2804e9f8adc7ae813d0784fcda4 /camera/tests
parentacd695c42749f8821b0a0cc27739ddf096c6d4e8 (diff)
downloadframeworks_av-475391897f0886aae1833d5e8b2e5aea47cc36bb.zip
frameworks_av-475391897f0886aae1833d5e8b2e5aea47cc36bb.tar.gz
frameworks_av-475391897f0886aae1833d5e8b2e5aea47cc36bb.tar.bz2
ProCameraTests: Minor add grey/frame count debug-only print outs
Change-Id: I0f7b7f3c083a644e9bb0c2302244a5ad434e96a8
Diffstat (limited to 'camera/tests')
-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());