Lines Matching refs:width
101 Sensor::Sensor(uint32_t width, uint32_t height): in Sensor() argument
103 mResolution{width, height}, in Sensor()
104 mActiveArray{0, 0, width, height},
114 mSceneWidth((width < Scene::kMaxWidth) ? width : Scene::kMaxWidth),
118 ALOGV("Sensor created with pixel array %d x %d", width, height);
324 i, b.streamId, b.width, b.height, b.format, b.stride, in threadLoop()
331 captureRGB(b.img, gain, b.width, b.height); in threadLoop()
334 captureRGBA(b.img, gain, b.width, b.height); in threadLoop()
343 bAux.width = b.width; in threadLoop()
346 bAux.stride = b.width; in threadLoop()
349 bAux.img = new uint8_t[b.width * b.height * 3]; in threadLoop()
356 captureYU12(b.img, gain, b.width, b.height); in threadLoop()
363 captureDepth(b.img, gain, b.width, b.height); in threadLoop()
434 void Sensor::captureRGBA(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureRGBA() argument
440 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureRGBA()
444 uint8_t *px = img + outY * width * 4; in captureRGBA()
448 for (unsigned int outX = 0; outX < width; outX++) { in captureRGBA()
473 void Sensor::captureRGB(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureRGB() argument
479 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureRGB()
483 uint8_t *px = img + outY * width * 3; in captureRGB()
487 for (unsigned int outX = 0; outX < width; outX++) { in captureRGB()
509 void Sensor::captureYU12(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureYU12() argument
534 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureYU12()
537 uint8_t *pxY = img + outY * width; in captureYU12()
538 uint8_t *pxU = img + height * width + (outY / 2) * (width / 2); in captureYU12()
539 uint8_t *pxV = pxU + (height / 2) * (width / 2); in captureYU12()
543 for (unsigned int outX = 0; outX < width; outX++) { in captureYU12()
568 void Sensor::captureDepth(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureDepth() argument
574 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureDepth()
578 uint16_t *px = ((uint16_t*)img) + outY * width; in captureDepth()
582 for (unsigned int outX = 0; outX < width; outX++) { in captureDepth()