Home | History | Annotate | Download | only in dsp

Lines Matching refs:argb

580                                    uint32_t* const argb) {
608 argb[pix] = VP8LSubPixels(current_row[col], predict);
614 uint32_t* const argb, uint32_t* const argb_scratch,
633 memcpy(current_tile_rows, &argb[tile_y_offset * width],
647 argb_scratch, argb);
657 const uint32_t a = argb[ix];
735 const uint32_t argb = argb_data[i];
736 const uint32_t green = (argb >> 8) & 0xff;
737 const uint32_t new_r = (((argb >> 16) & 0xff) - green) & 0xff;
738 const uint32_t new_b = ((argb & 0xff) - green) & 0xff;
739 argb_data[i] = (argb & 0xff00ff00) | (new_r << 16) | new_b;
763 const uint32_t argb = *data;
764 const uint32_t green = ((argb >> 8) & 0xff);
765 uint32_t red_blue = (argb & 0x00ff00ffu);
768 *data++ = (argb & 0xff00ff00u) | red_blue;
806 uint32_t argb, int inverse) {
807 const uint32_t green = argb >> 8;
808 const uint32_t red = argb >> 16;
810 uint32_t new_blue = argb;
825 return (argb & 0xff00ff00u) | (new_red << 16) | (new_blue);
829 uint32_t argb) {
830 const uint32_t green = argb >> 8;
831 uint32_t new_red = argb >> 16;
838 uint32_t argb) {
839 const uint32_t green = argb >> 8;
840 const uint32_t red = argb >> 16;
841 uint8_t new_blue = argb;
847 static WEBP_INLINE int SkipRepeatedPixels(const uint32_t* const argb,
849 const uint32_t v = argb[ix];
851 if (v == argb[ix - xsize] &&
852 argb[ix - 1] == argb[ix - xsize - 1] &&
853 argb[ix - 2] == argb[ix - xsize - 2] &&
854 argb[ix - 3] == argb[ix - xsize - 3]) {
857 return v == argb[ix - 3] && v == argb[ix - 2] && v == argb[ix - 1];
859 return v == argb[ix - 3] && v == argb[ix - 2] && v == argb[ix - 1];
880 const uint32_t* const argb) {
909 if (SkipRepeatedPixels(argb, ix, xsize)) {
912 ++histo[TransformColorRed(green_to_red, argb[ix])]; // red.
939 if (SkipRepeatedPixels(argb, ix, xsize)) {
942 ++histo[TransformColorBlue(green_to_blue, red_to_blue, argb[ix])];
978 uint32_t* const argb) {
995 argb[ix] = TransformColor(&color_transform, argb[ix], 0);
1001 uint32_t* const argb, uint32_t* image) {
1033 argb);
1037 color_transform, argb);
1054 argb[ix] == argb[ix - 2] &&
1055 argb[ix] == argb[ix - 1]) {
1059 argb[ix - 2] == argb[ix - width - 2] &&
1060 argb[ix - 1] == argb[ix - width - 1] &&
1061 argb[ix] == argb[ix - width]) {
1064 ++accumulated_red_histo[(argb[ix] >> 16) & 0xff];
1065 ++accumulated_blue_histo[argb[ix] & 0xff];
1098 // We define two methods for ARGB data (uint32_t) and alpha-only data (uint8_t).
1213 const uint32_t argb = *src++;
1214 *dst++ = (argb >> 16) & 0xff;
1215 *dst++ = (argb >> 8) & 0xff;
1216 *dst++ = (argb >> 0) & 0xff;
1224 const uint32_t argb = *src++;
1225 *dst++ = (argb >> 16) & 0xff;
1226 *dst++ = (argb >> 8) & 0xff;
1227 *dst++ = (argb >> 0) & 0xff;
1228 *dst++ = (argb >> 24) & 0xff;
1236 const uint32_t argb = *src++;
1237 const uint8_t rg = ((argb >> 16) & 0xf0) | ((argb >> 12) & 0xf);
1238 const uint8_t ba = ((argb >> 0) & 0xf0) | ((argb >> 28) & 0xf);
1253 const uint32_t argb = *src++;
1254 const uint8_t rg = ((argb >> 16) & 0xf8) | ((argb >> 13) & 0x7);
1255 const uint8_t gb = ((argb >> 5) & 0xe0) | ((argb >> 3) & 0x1f);
1270 const uint32_t argb = *src++;
1271 *dst++ = (argb >> 0) & 0xff;
1272 *dst++ = (argb >> 8) & 0xff;
1273 *dst++ = (argb >> 16) & 0xff;
1282 uint32_t argb = *src++;
1287 __asm__ volatile("bswap %0" : "=r"(argb) : "0"(argb));
1288 *(uint32_t*)dst = argb;
1290 argb = _byteswap_ulong(argb);
1291 *(uint32_t*)dst = argb;
1293 dst[0] = (argb >> 24) & 0xff;
1294 dst[1] = (argb >> 16) & 0xff;
1295 dst[2] = (argb >> 8) & 0xff;
1296 dst[3] = (argb >> 0) & 0xff;
1299 dst[0] = (argb >> 24) & 0xff;
1300 dst[1] = (argb >> 16) & 0xff;
1301 dst[2] = (argb >> 8) & 0xff;
1302 dst[3] = (argb >> 0) & 0xff;
1305 dst[0] = (argb >> 0) & 0xff;
1306 dst[1] = (argb >> 8) & 0xff;
1307 dst[2] = (argb >> 16) & 0xff;
1308 dst[3] = (argb >> 24) & 0xff;
1310 dst += sizeof(argb);