Lines Matching refs:width
77 QemuSensor::QemuSensor(const char *deviceName, uint32_t width, uint32_t height, in QemuSensor() argument
80 mWidth(width), in QemuSensor()
82 mActiveArray{0, 0, width, height}, in QemuSensor()
97 ALOGV("QemuSensor created with pixel array %d x %d", width, height);
309 i, b.streamId, b.width, b.height, b.format, b.stride, in threadLoop()
313 captureRGB(b.img, b.width, b.height, b.stride, ×tamp); in threadLoop()
317 captureRGBA(b.width, b.height, b.stride, ×tamp, b.buffer); in threadLoop()
319 captureRGBA(b.img, b.width, b.height, b.stride, ×tamp); in threadLoop()
332 bAux.width = b.width; in threadLoop()
335 bAux.stride = b.width; in threadLoop()
347 bAux.width, bAux.height, bAux.format, in threadLoop()
358 Rect(0, 0, bAux.width, bAux.height), in threadLoop()
367 bAux.img = new uint8_t[b.width * b.height * 3]; in threadLoop()
374 captureYU12(b.width, b.height, b.stride, ×tamp, b.buffer); in threadLoop()
376 captureYU12(b.img, b.width, b.height, b.stride, ×tamp); in threadLoop()
415 void QemuSensor::captureRGBA(uint8_t *img, uint32_t width, uint32_t height, in captureRGBA() argument
419 if (width != (uint32_t)mLastRequestWidth || in captureRGBA()
423 __FUNCTION__, width, height, mLastRequestWidth, in captureRGBA()
447 res = mCameraQemuClient.queryStart(pixFmt, width, height); in captureRGBA()
449 mLastRequestWidth = width; in captureRGBA()
464 if (width != stride) { in captureRGBA()
466 width, stride); in captureRGBA()
470 size_t bufferSize = width * height * 4; in captureRGBA()
482 void QemuSensor::captureRGBA(uint32_t width, uint32_t height, in captureRGBA() argument
490 mLastRequestWidth = width; in captureRGBA()
505 if (width != stride) { in captureRGBA()
507 width, stride); in captureRGBA()
515 mCameraQemuClient.queryFrame(width, height, V4L2_PIX_FMT_RGB32, offset, in captureRGBA()
522 void QemuSensor::captureRGB(uint8_t *img, uint32_t width, uint32_t height, uint32_t stride, int64_t… in captureRGB() argument
526 void QemuSensor::captureYU12(uint8_t *img, uint32_t width, uint32_t height, uint32_t stride, in captureYU12() argument
530 if (width != (uint32_t)mLastRequestWidth || in captureYU12()
534 __FUNCTION__, width, height, mLastRequestWidth, in captureYU12()
557 res = mCameraQemuClient.queryStart(pixFmt, width, height); in captureYU12()
559 mLastRequestWidth = width; in captureYU12()
574 if (width != stride) { in captureYU12()
576 width, stride); in captureYU12()
580 size_t bufferSize = (width * height * 12) / 8; in captureYU12()
592 void QemuSensor::captureYU12(uint32_t width, uint32_t height, uint32_t stride, in captureYU12() argument
600 mLastRequestWidth = width; in captureYU12()
615 if (width != stride) { in captureYU12()
617 width, stride); in captureYU12()
625 mCameraQemuClient.queryFrame(width, height, V4L2_PIX_FMT_YUV420, offset, in captureYU12()