Lines Matching refs:pixel
544 // single pixel of the given color and alpha values.
578 uint32_t pixel;
579 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1()))
580 << ((sizeof(pixel) * BITSPERBYTE)
582 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2()))
583 << ((sizeof(pixel) * BITSPERBYTE)
585 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3()))
586 << ((sizeof(pixel) * BITSPERBYTE)
589 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha))
590 << ((sizeof(pixel) * BITSPERBYTE)
594 pixel = ntohl(pixel);
595 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE;
598 return pixel;
601 // Sets the pixel at the given x and y coordinates to the color and alpha
602 // value given by pixel. The contents of pixel is format specific. It's
605 uint32_t x, uint32_t y, uint32_t pixel)
628 *(buf + yPlaneOffset + y * yPlaneStride + x) = pixel & 0xff;
630 = (pixel & 0xff00) >> 8;
632 = (pixel & 0xff0000) >> 16;
649 + (attrib->bytes * x), &pixel, attrib->bytes);
657 uint32_t pixel;
659 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, alpha);
670 ? pixel : testRand());
705 uint32_t pixel;
720 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, 1.0);
723 pixel = testRand();
727 hwcTestSetPixel(gBuf, buf, x, y, pixel);