Loading camera/tests/ProCameraTests.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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 */ Loading @@ -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()); Loading Loading
camera/tests/ProCameraTests.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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 */ Loading @@ -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()); Loading