Home
last modified time | relevance | path

Searched refs:mFrameWidth (Results 1 – 9 of 9) sorted by relevance

/device/generic/goldfish/camera/
DEmulatedCameraDevice.cpp184 if (mYStride == mFrameWidth) { in getCurrentFrameImpl()
190 memcpy(dest + y * mFrameWidth, in getCurrentFrameImpl()
192 mFrameWidth); in getCurrentFrameImpl()
196 if (mUVStride == mFrameWidth / 2) { in getCurrentFrameImpl()
202 uint8_t* uvDest = dest + mFrameWidth * mFrameHeight; in getCurrentFrameImpl()
207 memcpy(uvDest + y * (mFrameWidth / 2), in getCurrentFrameImpl()
209 mFrameWidth / 2); in getCurrentFrameImpl()
211 uvDest += (mFrameHeight / 2) * (mFrameWidth / 2); in getCurrentFrameImpl()
278 YV12ToRGB32(currentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
281 YU12ToRGB32(currentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
[all …]
DEmulatedFakeCameraDevice.cpp242 const int size = std::min(mFrameWidth, mFrameHeight) / 10; in drawCheckerboard()
286 for(int x = 0; x < mFrameWidth; x += 2) { in drawCheckerboard()
307 const int squareSize = std::min(mFrameWidth, mFrameHeight) / 4; in drawCheckerboard()
310 int squareX = mSquareX * mFrameWidth; in drawCheckerboard()
312 if (squareX + squareSize > mFrameWidth) { in drawCheckerboard()
314 double relativeWidth = static_cast<double>(squareSize) / mFrameWidth; in drawCheckerboard()
316 squareX = mSquareX * mFrameWidth; in drawCheckerboard()
320 squareX = mSquareX * mFrameWidth; in drawCheckerboard()
352 const int square_xstop = std::min(mFrameWidth, x + size); in drawSquare()
391 for (int x = 0; x < mFrameWidth / 2; ++x, U += mUVStep, V += mUVStep) { in drawSolid()
[all …]
DEmulatedCameraDevice.h254 return mFrameWidth; in getFrameWidth()
294 return (mFrameWidth * mFrameHeight * 12) / 8; in getVideoFrameBufferSize()
594 int mFrameWidth; variable
DEmulatedQemuCameraDevice.cpp167 res = mQemuClient.queryStart(mPixelFormat, mFrameWidth, mFrameHeight); in startDevice()
172 mFrameWidth, mFrameHeight); in startDevice()
DEmulatedFakeRotatingCameraDevice.cpp523 init_gl_surface(mFrameWidth, mFrameHeight); in produceFrame()
525 int width=mFrameWidth; in produceFrame()
531 render(mFrameWidth, mFrameHeight); in produceFrame()
543 rgba8888_to_nv21(mPixelBuf, currentFrame, mFrameWidth, mFrameHeight); in fillBuffer()
/device/google/cuttlefish/guest/hals/camera/
DEmulatedFakeCameraDevice.cpp238 const int size = mFrameWidth / 10; in drawCheckerboard()
264 for (int x = 0; x < mFrameWidth; x += 2) { in drawCheckerboard()
301 const int sqsize = mFrameWidth / 10; in drawCheckerboard()
309 const int square_xstop = std::min(mFrameWidth, x + size); in drawSquare()
311 uint8_t* Y_pos = mCurrentFrame + y * mFrameWidth + x; in drawSquare()
330 Y_pos += mFrameWidth; in drawSquare()
357 for (int y = 0; y < mFrameHeight; y++, pY += mFrameWidth) { in drawStripes()
377 memset(pY, changeExposure(color->Y), mFrameWidth); in drawStripes()
DEmulatedCameraDevice.cpp178 YV12ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
181 YU12ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
184 NV21ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
187 NV12ToRGB32(mCurrentFrame, buffer, mFrameWidth, mFrameHeight); in getCurrentPreviewFrame()
219 mFrameWidth = width; in commonStartDevice()
233 reinterpret_cast<const char*>(&mPixelFormat), mFrameWidth, in commonStartDevice()
239 mFrameWidth = mFrameHeight = mTotalPixels = 0; in commonStopDevice()
DEmulatedCameraDevice.h204 return mFrameWidth; in getFrameWidth()
514 int mFrameWidth; variable
DEmulatedQemuCameraDevice.cpp161 res = mQemuClient.queryStart(mPixelFormat, mFrameWidth, mFrameHeight); in startDevice()
165 reinterpret_cast<const char*>(&mPixelFormat), mFrameWidth, in startDevice()