Home
last modified time | relevance | path

Searched refs:bytesPerPixel (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/cpp/computepipe/runner/stream_manager/
DPixelStreamManager.cpp109 int bytesPerPixel = numBytesPerPixel(static_cast<AHardwareBuffer_Format>(mDesc.format)); in setFrameData() local
112 if (mDesc.stride * bytesPerPixel == frameInfo.stride) { in setFrameData()
113 memcpy(mappedBuffer, inputFrame.getFramePtr(), mDesc.stride * mDesc.height * bytesPerPixel); in setFrameData()
116 memcpy((uint8_t*)mappedBuffer + mDesc.stride * y * bytesPerPixel, in setFrameData()
118 std::min(frameInfo.stride, mDesc.stride * bytesPerPixel)); in setFrameData()
/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
DPixelStreamManagerTest.cpp81 int bytesPerPixel = numBytesPerPixel(expectedFormat); variable
83 uint8_t* mappedRow = (uint8_t*)mappedBuffer + y * desc.stride * bytesPerPixel;
85 std::min(info.stride, desc.stride * bytesPerPixel))) {
/packages/services/Car/cpp/evs/manager/1.1/emul/
DEvsEmulatedCamera.cpp104 const unsigned bytesPerPixel = 4; in fillBufferCopy() local
105 const unsigned dstStride = pDesc->stride * bytesPerPixel; in fillBufferCopy()