• Home
  • Raw
  • Download

Lines Matching refs:width

120 Sensor::Sensor(uint32_t width, uint32_t height):  in Sensor()  argument
122 mResolution{width, height}, in Sensor()
123 mActiveArray{0, 0, width, height},
134 mSceneWidth((width < Scene::kMaxWidth) ? width : Scene::kMaxWidth),
138 ALOGV("Sensor created with pixel array %d x %d", width, height);
344 i, b.streamId, b.width, b.height, b.format, b.stride, in threadLoop()
351 captureRGB(b.img, gain, b.width, b.height); in threadLoop()
354 captureRGBA(b.img, gain, b.width, b.height); in threadLoop()
363 bAux.width = b.width; in threadLoop()
366 bAux.stride = b.width; in threadLoop()
369 bAux.img = new uint8_t[b.width * b.height * 3]; in threadLoop()
377 captureNV12(b.img, gain, b.width, b.height); in threadLoop()
379 captureYU12(b.img, gain, b.width, b.height); in threadLoop()
387 captureDepth(b.img, gain, b.width, b.height); in threadLoop()
458 void Sensor::captureRGBA(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureRGBA() argument
464 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureRGBA()
468 uint8_t *px = img + outY * width * 4; in captureRGBA()
472 for (unsigned int outX = 0; outX < width; outX++) { in captureRGBA()
497 void Sensor::captureRGB(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureRGB() argument
503 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureRGB()
507 uint8_t *px = img + outY * width * 3; in captureRGB()
511 for (unsigned int outX = 0; outX < width; outX++) { in captureRGB()
533 void Sensor::captureYU12(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureYU12() argument
558 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureYU12()
561 uint8_t *pxY = img + outY * width; in captureYU12()
562 uint8_t *pxU = img + height * width + (outY / 2) * (width / 2); in captureYU12()
563 uint8_t *pxV = pxU + (height / 2) * (width / 2); in captureYU12()
567 for (unsigned int outX = 0; outX < width; outX++) { in captureYU12()
592 void Sensor::captureNV12(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureNV12() argument
617 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureNV12()
620 uint8_t *pxY = img + outY * width; in captureNV12()
621 uint8_t *pxVU = img + (height + outY / 2) * width; in captureNV12()
625 for (unsigned int outX = 0; outX < width; outX++) { in captureNV12()
650 void Sensor::captureDepth(uint8_t *img, uint32_t gain, uint32_t width, uint32_t height) { in captureDepth() argument
656 unsigned int DivW = (float)mSceneWidth/width * (0x1 << 10); in captureDepth()
660 uint16_t *px = ((uint16_t*)img) + outY * width; in captureDepth()
664 for (unsigned int outX = 0; outX < width; outX++) { in captureDepth()