Searched refs:bytesPerPixel (Results 1 – 3 of 3) sorted by relevance
109 int bytesPerPixel = numBytesPerPixel(static_cast<AHardwareBuffer_Format>(mDesc.format)); in setFrameData() local112 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()
81 int bytesPerPixel = numBytesPerPixel(expectedFormat); variable83 uint8_t* mappedRow = (uint8_t*)mappedBuffer + y * desc.stride * bytesPerPixel;85 std::min(info.stride, desc.stride * bytesPerPixel))) {
104 const unsigned bytesPerPixel = 4; in fillBufferCopy() local105 const unsigned dstStride = pDesc->stride * bytesPerPixel; in fillBufferCopy()