Lines Matching refs:outBuffer
309 ANativeWindow_Buffer outBuffer;
312 mOutputSurface->lock(&outBuffer, &inOutDirtyBounds);
313 uint8_t* bytePointer = reinterpret_cast<uint8_t*>(outBuffer.bits);
314 for (int y = 0; y < outBuffer.height; ++y) {
315 int rowOffset = y * outBuffer.stride; // pixels
316 for (int x = 0; x < outBuffer.width; ++x) {
333 ANativeWindow_Buffer outBuffer;
335 mOutputSurface->lock(&outBuffer, &outBufferBounds);
336 ASSERT_EQ(mLockedBuffer.width, static_cast<uint32_t>(outBuffer.width));
337 ASSERT_EQ(mLockedBuffer.height, static_cast<uint32_t>(outBuffer.height));
338 ASSERT_EQ(mLockedBuffer.stride, static_cast<uint32_t>(outBuffer.stride));
340 if (mLockedBuffer.format == outBuffer.format) {
341 memcpy(outBuffer.bits, mLockedBuffer.data, bufferSize);
345 ASSERT_EQ(outBuffer.format, PIXEL_FORMAT_RGBA_8888);
346 uint8_t* outPointer = reinterpret_cast<uint8_t*>(outBuffer.bits);
347 for (int y = 0; y < outBuffer.height; ++y) {
348 int rowOffset = y * outBuffer.stride; // pixels
349 for (int x = 0; x < outBuffer.width; ++x) {