• Home
  • Raw
  • Download

Lines Matching refs:pixel

578     uint32_t pixel;  in hwcTestColor2Pixel()  local
579 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) in hwcTestColor2Pixel()
580 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
582 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2())) in hwcTestColor2Pixel()
583 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
585 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3())) in hwcTestColor2Pixel()
586 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
589 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha)) in hwcTestColor2Pixel()
590 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
594 pixel = ntohl(pixel); in hwcTestColor2Pixel()
595 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE; in hwcTestColor2Pixel()
598 return pixel; in hwcTestColor2Pixel()
605 uint32_t x, uint32_t y, uint32_t pixel) in hwcTestSetPixel() argument
628 *(buf + yPlaneOffset + y * yPlaneStride + x) = pixel & 0xff; in hwcTestSetPixel()
630 = (pixel & 0xff00) >> 8; in hwcTestSetPixel()
632 = (pixel & 0xff0000) >> 16; in hwcTestSetPixel()
649 + (attrib->bytes * x), &pixel, attrib->bytes); in hwcTestSetPixel()
657 uint32_t pixel; in hwcTestFillColor() local
659 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, alpha); in hwcTestFillColor()
670 ? pixel : testRand()); in hwcTestFillColor()
705 uint32_t pixel; in hwcTestFillColorHBlend() local
720 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, 1.0); in hwcTestFillColorHBlend()
723 pixel = testRand(); in hwcTestFillColorHBlend()
727 hwcTestSetPixel(gBuf, buf, x, y, pixel); in hwcTestFillColorHBlend()