Lines Matching refs:attrib

547     const struct attrib {  in hwcTestColor2Pixel()  struct
568 const struct attrib *attrib; in hwcTestColor2Pixel() local
569 for (attrib = attributes; attrib < attributes + NUMA(attributes); in hwcTestColor2Pixel()
570 attrib++) { in hwcTestColor2Pixel()
571 if (attrib->format == format) { break; } in hwcTestColor2Pixel()
573 if (attrib >= attributes + NUMA(attributes)) { in hwcTestColor2Pixel()
579 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) in hwcTestColor2Pixel()
581 - (attrib->c1Offset + attrib->c1Size))); in hwcTestColor2Pixel()
582 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2())) in hwcTestColor2Pixel()
584 - (attrib->c2Offset + attrib->c2Size))); in hwcTestColor2Pixel()
585 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3())) in hwcTestColor2Pixel()
587 - (attrib->c3Offset + attrib->c3Size))); in hwcTestColor2Pixel()
588 if (attrib->aSize) { in hwcTestColor2Pixel()
589 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha)) in hwcTestColor2Pixel()
591 - (attrib->aOffset + attrib->aSize))); in hwcTestColor2Pixel()
593 if (attrib->hostByteOrder) { in hwcTestColor2Pixel()
595 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE; in hwcTestColor2Pixel()
608 const struct attrib { in hwcTestSetPixel() struct
637 const struct attrib *attrib; in hwcTestSetPixel() local
638 for (attrib = attributes; attrib < attributes + NUMA(attributes); in hwcTestSetPixel()
639 attrib++) { in hwcTestSetPixel()
640 if (attrib->format == gBuf->getPixelFormat()) { break; } in hwcTestSetPixel()
642 if (attrib >= attributes + NUMA(attributes)) { in hwcTestSetPixel()
648 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) in hwcTestSetPixel()
649 + (attrib->bytes * x), &pixel, attrib->bytes); in hwcTestSetPixel()
795 const struct attrib { in hwcTestColorConvert() struct
817 const struct attrib *fromAttrib; in hwcTestColorConvert()
828 const struct attrib *toAttrib; in hwcTestColorConvert()