Lines Matching refs:imgBuffer
100 long long TotalBrightness(const CpuConsumer::LockedBuffer& imgBuffer,
104 const uint8_t* buf = imgBuffer.data;
105 size_t stride = imgBuffer.stride;
113 for (size_t y = 0; y < imgBuffer.height; ++y) {
114 for (size_t x = 0; x < imgBuffer.width; ++x) {
243 CpuConsumer::LockedBuffer imgBuffer;
244 ASSERT_EQ(OK, mCpuConsumer->lockNextBuffer(&imgBuffer));
247 long long brightness = TotalBrightness(imgBuffer, &underexposed,
258 ASSERT_EQ(OK, mCpuConsumer->unlockBuffer(imgBuffer));
657 CpuConsumer::LockedBuffer imgBuffer;
658 ASSERT_EQ(OK, mCpuConsumer->lockNextBuffer(&imgBuffer));
662 long long brightness = TotalBrightness(imgBuffer, &underexposed,
716 DumpYuvToFile(dumpName, imgBuffer);
719 ASSERT_EQ(OK, mCpuConsumer->unlockBuffer(imgBuffer));