Home | History | Annotate | Download | only in pixelflinger2

Lines Matching defs:Pixel

36 union Pixel { unsigned char channels[4]; unsigned int val; };
38 static inline void PixelRGBAToVector4 (const Pixel *pixel, Vector4 * color) __attribute__((always_inline));
39 static inline void PixelRGBAToVector4 (const Pixel *pixel, Vector4 * color)
43 c = vsetq_lane_s32(pixel->channels[0], c, 0);
44 c = vsetq_lane_s32(pixel->channels[1], c, 1);
45 c = vsetq_lane_s32(pixel->channels[2], c, 2);
46 c = vsetq_lane_s32(pixel->channels[3], c, 3);
50 color->r = (float)pixel->channels[0] / 255;
51 color->g = (float)pixel->channels[1] / 255;
52 color->b = (float)pixel->channels[2] / 255;
53 color->a = (float)pixel->channels[3] / 255;
59 PixelRGBAToVector4((const Pixel *)&rgba, color);