Loading camera/tests/ProCameraTests.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -1001,11 +1001,6 @@ TEST_F(ProCameraTest, WaitForSingleStreamBufferAndDropFrames) { // Consume a couple of results for (int i = 0; i < NUM_REQUESTS; ++i) { // Process at 10fps, stream is at 15fps. // This means we will definitely fill up the buffer queue with // extra buffers and need to drop them. usleep(TEST_FRAME_PROCESSING_DELAY_US); int numFrames; EXPECT_TRUE((numFrames = mCamera->waitForFrameBuffer(streamId)) > 0); Loading @@ -1025,6 +1020,11 @@ TEST_F(ProCameraTest, WaitForSingleStreamBufferAndDropFrames) { ", dataPtr = " << (void*)buf.data << ", timestamp = " << buf.timestamp << std::endl; // Process at 10fps, stream is at 15fps. // This means we will definitely fill up the buffer queue with // extra buffers and need to drop them. usleep(TEST_FRAME_PROCESSING_DELAY_US); EXPECT_OK(consumer->unlockBuffer(buf)); } Loading Loading
camera/tests/ProCameraTests.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -1001,11 +1001,6 @@ TEST_F(ProCameraTest, WaitForSingleStreamBufferAndDropFrames) { // Consume a couple of results for (int i = 0; i < NUM_REQUESTS; ++i) { // Process at 10fps, stream is at 15fps. // This means we will definitely fill up the buffer queue with // extra buffers and need to drop them. usleep(TEST_FRAME_PROCESSING_DELAY_US); int numFrames; EXPECT_TRUE((numFrames = mCamera->waitForFrameBuffer(streamId)) > 0); Loading @@ -1025,6 +1020,11 @@ TEST_F(ProCameraTest, WaitForSingleStreamBufferAndDropFrames) { ", dataPtr = " << (void*)buf.data << ", timestamp = " << buf.timestamp << std::endl; // Process at 10fps, stream is at 15fps. // This means we will definitely fill up the buffer queue with // extra buffers and need to drop them. usleep(TEST_FRAME_PROCESSING_DELAY_US); EXPECT_OK(consumer->unlockBuffer(buf)); } Loading