Lines Matching refs:dst

478                       int x, int y, uint8_t *dst,
493 dst[0] = dst[1] = dst[2] = dst[3] = 0;
497 dst[3] = 255;
505 dst[0] = etc2_clamp(base_color[0] + modifier);
506 dst[1] = etc2_clamp(base_color[1] + modifier);
507 dst[2] = etc2_clamp(base_color[2] + modifier);
513 dst[0] = dst[1] = dst[2] = dst[3] = 0;
517 dst[3] = 255;
521 dst[0] = block->paint_colors[idx][0];
522 dst[1] = block->paint_colors[idx][1];
523 dst[2] = block->paint_colors[idx][2];
543 dst[0] = etc2_clamp(red);
544 dst[1] = etc2_clamp(green);
545 dst[2] = etc2_clamp(blue);
549 dst[3] = 255;
557 int x, int y, uint8_t *dst)
564 dst[3] = etc2_clamp(alpha);
569 int x, int y, uint8_t *dst)
590 ((GLushort *)dst)[0] = color;
595 int x, int y, uint8_t *dst)
628 ((GLshort *)dst)[0] = color;
664 int x, int y, uint8_t *dst)
666 etc2_rgb8_fetch_texel(block, x, y, dst,
668 etc2_alpha8_fetch_texel(block, x, y, dst);
702 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps;
704 etc2_rgb8_fetch_texel(&block, i, j, dst,
706 dst[3] = 255;
707 dst += comps;
743 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps;
745 etc2_rgb8_fetch_texel(&block, i, j, dst,
750 tmp = dst[0];
751 dst[0] = dst[2];
752 dst[2] = tmp;
754 dst[3] = 255;
756 dst += comps;
791 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps;
793 etc2_rgba8_fetch_texel(&block, i, j, dst);
794 dst += comps;
831 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps;
833 etc2_rgba8_fetch_texel(&block, i, j, dst);
837 tmp = dst[0];
838 dst[0] = dst[2];
839 dst[2] = tmp;
840 dst[3] = dst[3];
843 dst += comps;
877 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps * comp_size;
879 etc2_r11_fetch_texel(&block, i, j, dst);
880 dst += comps * comp_size;
915 uint8_t *dst = dst_row + (y + j) * dst_stride +
918 etc2_r11_fetch_texel(&block, i, j, dst);
919 dst += comps * comp_size;
926 uint8_t *dst = dst_row + (y + j) * dst_stride +
929 etc2_r11_fetch_texel(&block, i, j, dst + comp_size);
930 dst += comps * comp_size;
964 uint8_t *dst = dst_row + (y + j) * dst_stride +
967 etc2_signed_r11_fetch_texel(&block, i, j, dst);
968 dst += comps * comp_size;
1003 uint8_t *dst = dst_row + (y + j) * dst_stride +
1006 etc2_signed_r11_fetch_texel(&block, i, j, dst);
1007 dst += comps * comp_size;
1014 uint8_t *dst = dst_row + (y + j) * dst_stride +
1017 etc2_signed_r11_fetch_texel(&block, i, j, dst + comp_size);
1018 dst += comps * comp_size;
1049 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps;
1051 etc2_rgb8_fetch_texel(&block, i, j, dst,
1053 dst += comps;
1087 uint8_t *dst = dst_row + (y + j) * dst_stride + x * comps;
1089 etc2_rgb8_fetch_texel(&block, i, j, dst,
1094 tmp = dst[0];
1095 dst[0] = dst[2];
1096 dst[2] = tmp;
1097 dst[3] = dst[3];
1100 dst += comps;
1275 GLubyte dst[3];
1281 etc1_fetch_texel(&block, i % 4, j % 4, dst);
1283 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]);
1284 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]);
1285 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]);
1295 uint8_t dst[3];
1302 etc2_rgb8_fetch_texel(&block, i % 4, j % 4, dst,
1305 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]);
1306 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]);
1307 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]);
1316 uint8_t dst[3];
1323 etc2_rgb8_fetch_texel(&block, i % 4, j % 4, dst,
1326 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]);
1327 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(dst[1]);
1328 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]);
1337 uint8_t dst[4];
1343 etc2_rgba8_fetch_texel(&block, i % 4, j % 4, dst);
1345 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]);
1346 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]);
1347 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]);
1348 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]);
1356 uint8_t dst[4];
1362 etc2_rgba8_fetch_texel(&block, i % 4, j % 4, dst);
1364 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]);
1365 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(dst[1]);
1366 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]);
1367 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]);
1375 GLushort dst;
1381 etc2_r11_fetch_texel(&block, i % 4, j % 4, (uint8_t *)&dst);
1383 texel[RCOMP] = USHORT_TO_FLOAT(dst);
1394 GLushort dst[2];
1401 etc2_r11_fetch_texel(&block, i % 4, j % 4, (uint8_t *)dst);
1405 etc2_r11_fetch_texel(&block, i % 4, j % 4, (uint8_t *)(dst + 1));
1407 texel[RCOMP] = USHORT_TO_FLOAT(dst[0]);
1408 texel[GCOMP] = USHORT_TO_FLOAT(dst[1]);
1418 GLushort dst;
1424 etc2_signed_r11_fetch_texel(&block, i % 4, j % 4, (uint8_t *)&dst);
1426 texel[RCOMP] = SHORT_TO_FLOAT(dst);
1437 GLushort dst[2];
1444 etc2_signed_r11_fetch_texel(&block, i % 4, j % 4, (uint8_t *)dst);
1448 etc2_signed_r11_fetch_texel(&block, i % 4, j % 4, (uint8_t *)(dst + 1));
1450 texel[RCOMP] = SHORT_TO_FLOAT(dst[0]);
1451 texel[GCOMP] = SHORT_TO_FLOAT(dst[1]);
1462 uint8_t dst[4];
1469 etc2_rgb8_fetch_texel(&block, i % 4, j % 4, dst,
1471 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]);
1472 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]);
1473 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]);
1474 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]);
1483 uint8_t dst[4];
1490 etc2_rgb8_fetch_texel(&block, i % 4, j % 4, dst,
1492 texel[RCOMP] = util_format_srgb_8unorm_to_linear_float(dst[0]);
1493 texel[GCOMP] = util_format_srgb_8unorm_to_linear_float(dst[1]);
1494 texel[BCOMP] = util_format_srgb_8unorm_to_linear_float(dst[2]);
1495 texel[ACOMP] = UBYTE_TO_FLOAT(dst[3]);