Lines Matching full:argb
66 static uint32 ARGBDetectRow_C(const uint8* argb, int width) {
69 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB.
72 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA.
75 if (argb[4] != 255) { // Second pixel first byte is not Alpha of 255.
78 if (argb[7] != 255) { // Second pixel 4th byte is not Alpha of 255.
81 argb += 8;
84 if (argb[0] != 255) { // First byte is not Alpha of 255, so not ARGB.
87 if (argb[3] != 255) { // 4th byte is not Alpha of 255, so not BGRA.
94 // Scan an opaque argb image and return fourcc based on alpha offset.
97 uint32 ARGBDetect(const uint8* argb, int stride_argb, int width, int height) {
108 fourcc = ARGBDetectRow_C(argb, width);
109 argb += stride_argb;