Lines Matching defs:STAGE

762     #define STAGE(name, ...)                                                          \
775 #define STAGE(name, ...) \
910 STAGE(seed_shader, const float* iota) {
921 STAGE(dither, const float* rate) {
954 STAGE(uniform_color, const SkJumper_UniformColorCtx* c) {
962 STAGE(black_color, Ctx::None) {
967 STAGE(white_color, Ctx::None) {
972 STAGE(load_rgba, const float* ptr) {
980 STAGE(store_rgba, float* ptr) {
990 STAGE(name, Ctx::None) { \
1022 STAGE(name, Ctx::None) { \
1120 STAGE(hue, Ctx::None) {
1134 STAGE(saturation, Ctx::None) {
1148 STAGE(color, Ctx::None) {
1161 STAGE(luminosity, Ctx::None) {
1175 STAGE(srcover_rgba_8888, const SkJumper_MemoryCtx* ctx) {
1200 STAGE(srcover_bgra_8888, const SkJumper_MemoryCtx* ctx) {
1225 STAGE(clamp_0, Ctx::None) {
1232 STAGE(clamp_1, Ctx::None) {
1239 STAGE(clamp_a, Ctx::None) {
1246 STAGE(clamp_a_dst, Ctx::None) {
1253 STAGE(set_rgb, const float* rgb) {
1258 STAGE(swap_rb, Ctx::None) {
1263 STAGE(invert, Ctx::None) {
1270 STAGE(move_src_dst, Ctx::None) {
1276 STAGE(move_dst_src, Ctx::None) {
1283 STAGE(premul, Ctx::None) {
1288 STAGE(premul_dst, Ctx::None) {
1293 STAGE(unpremul, Ctx::None) {
1301 STAGE(force_opaque , Ctx::None) { a = 1; }
1302 STAGE(force_opaque_dst, Ctx::None) { da = 1; }
1310 STAGE(from_srgb, Ctx::None) {
1315 STAGE(from_srgb_dst, Ctx::None) {
1320 STAGE(to_srgb, Ctx::None) {
1348 STAGE(rgb_to_hsl, Ctx::None) {
1368 STAGE(hsl_to_rgb, Ctx::None) {
1397 STAGE(scale_1_float, const float* c) {
1403 STAGE(scale_u8, const SkJumper_MemoryCtx* ctx) {
1414 STAGE(scale_565, const SkJumper_MemoryCtx* ctx) {
1432 STAGE(lerp_1_float, const float* c) {
1438 STAGE(lerp_u8, const SkJumper_MemoryCtx* ctx) {
1449 STAGE(lerp_565, const SkJumper_MemoryCtx* ctx) {
1463 STAGE(load_tables, const SkJumper_LoadTablesCtx* c) {
1470 STAGE(load_tables_u16_be, const SkJumper_LoadTablesCtx* c) {
1482 STAGE(load_tables_rgb_u16_be, const SkJumper_LoadTablesCtx* c) {
1495 STAGE(byte_tables, const void* ctx) { // TODO: rename Tables SkJumper_ByteTablesCtx
1505 STAGE(byte_tables_rgb, const void* ctx) { // TODO: rename Tables SkJumper_ByteTablesRGBCtx
1518 STAGE(table_r, const SkJumper_TableCtx* ctx) { r = table(r, ctx); }
1519 STAGE(table_g, const SkJumper_TableCtx* ctx) { g = table(g, ctx); }
1520 STAGE(table_b, const SkJumper_TableCtx* ctx) { b = table(b, ctx); }
1521 STAGE(table_a, const SkJumper_TableCtx* ctx) { a = table(a, ctx); }
1528 STAGE(parametric_r, const SkJumper_ParametricTransferFunction* ctx) { r = parametric(r, ctx); }
1529 STAGE(parametric_g, const SkJumper_ParametricTransferFunction* ctx) { g = parametric(g, ctx); }
1530 STAGE(parametric_b, const SkJumper_ParametricTransferFunction* ctx) { b = parametric(b, ctx); }
1531 STAGE(parametric_a, const SkJumper_ParametricTransferFunction* ctx) { a = parametric(a, ctx); }
1533 STAGE(gamma, const float* G) {
1538 STAGE(gamma_dst, const float* G) {
1544 STAGE(lab_to_xyz, Ctx::None) {
1563 STAGE(load_a8, const SkJumper_MemoryCtx* ctx) {
1569 STAGE(load_a8_dst, const SkJumper_MemoryCtx* ctx) {
1575 STAGE(gather_a8, const SkJumper_GatherCtx* ctx) {
1581 STAGE(store_a8, const SkJumper_MemoryCtx* ctx) {
1588 STAGE(load_g8, const SkJumper_MemoryCtx* ctx) {
1594 STAGE(load_g8_dst, const SkJumper_MemoryCtx* ctx) {
1600 STAGE(gather_g8, const SkJumper_GatherCtx* ctx) {
1607 STAGE(load_565, const SkJumper_MemoryCtx* ctx) {
1613 STAGE(load_565_dst, const SkJumper_MemoryCtx* ctx) {
1619 STAGE(gather_565, const SkJumper_GatherCtx* ctx) {
1625 STAGE(store_565, const SkJumper_MemoryCtx* ctx) {
1634 STAGE(load_4444, const SkJumper_MemoryCtx* ctx) {
1638 STAGE(load_4444_dst, const SkJumper_MemoryCtx* ctx) {
1642 STAGE(gather_4444, const SkJumper_GatherCtx* ctx) {
1647 STAGE(store_4444, const SkJumper_MemoryCtx* ctx) {
1656 STAGE(load_8888, const SkJumper_MemoryCtx* ctx) {
1660 STAGE(load_8888_dst, const SkJumper_MemoryCtx* ctx) {
1664 STAGE(gather_8888, const SkJumper_GatherCtx* ctx) {
1669 STAGE(store_8888, const SkJumper_MemoryCtx* ctx) {
1679 STAGE(load_bgra, const SkJumper_MemoryCtx* ctx) {
1683 STAGE(load_bgra_dst, const SkJumper_MemoryCtx* ctx) {
1687 STAGE(gather_bgra, const SkJumper_GatherCtx* ctx) {
1692 STAGE(store_bgra, const SkJumper_MemoryCtx* ctx) {
1702 STAGE(load_1010102, const SkJumper_MemoryCtx* ctx) {
1706 STAGE(load_1010102_dst, const SkJumper_MemoryCtx* ctx) {
1710 STAGE(gather_1010102, const SkJumper_GatherCtx* ctx) {
1715 STAGE(store_1010102, const SkJumper_MemoryCtx* ctx) {
1725 STAGE(load_f16, const SkJumper_MemoryCtx* ctx) {
1735 STAGE(load_f16_dst, const SkJumper_MemoryCtx* ctx) {
1745 STAGE(gather_f16, const SkJumper_GatherCtx* ctx) {
1757 STAGE(store_f16, const SkJumper_MemoryCtx* ctx) {
1765 STAGE(load_u16_be, const SkJumper_MemoryCtx* ctx) {
1776 STAGE(load_rgb_u16_be, const SkJumper_MemoryCtx* ctx) {
1787 STAGE(store_u16_be, const SkJumper_MemoryCtx* ctx) {
1798 STAGE(load_f32, const SkJumper_MemoryCtx* ctx) {
1802 STAGE(load_f32_dst, const SkJumper_MemoryCtx* ctx) {
1806 STAGE(store_f32, const SkJumper_MemoryCtx* ctx) {
1822 STAGE(repeat_x, const SkJumper_TileCtx* ctx) { r = exclusive_repeat(r, ctx); }
1823 STAGE(repeat_y, const SkJumper_TileCtx* ctx) { g = exclusive_repeat(g, ctx); }
1824 STAGE(mirror_x, const SkJumper_TileCtx* ctx) { r = exclusive_mirror(r, ctx); }
1825 STAGE(mirror_y, const SkJumper_TileCtx* ctx) { g = exclusive_mirror(g, ctx); }
1831 STAGE( clamp_x_1, Ctx::None) { r = clamp_01(r); }
1832 STAGE(repeat_x_1, Ctx::None) { r = clamp_01(r - floor_(r)); }
1833 STAGE(mirror_x_1, Ctx::None) { r = clamp_01(abs_( (r-1.0f) - two(floor_((r-1.0f)*0.5f)) - 1.0f )); }
1835 STAGE(luminance_to_alpha, Ctx::None) {
1840 STAGE(matrix_translate, const float* m) {
1844 STAGE(matrix_scale_translate, const float* m) {
1848 STAGE(matrix_2x3, const float* m) {
1854 STAGE(matrix_3x4, const float* m) {
1862 STAGE(matrix_4x5, const float* m) {
1872 STAGE(matrix_4x3, const float* m) {
1881 STAGE(matrix_perspective, const float* m) {
1922 STAGE(evenly_spaced_gradient, const SkJumper_GradientCtx* c) {
1928 STAGE(gradient, const SkJumper_GradientCtx* c) {
1940 STAGE(evenly_spaced_2_stop_gradient, const void* ctx) {
1952 STAGE(xy_to_unit_angle, Ctx::None) {
1978 STAGE(xy_to_radius, Ctx::None) {
1986 STAGE(negate_x, Ctx::None) { r = -r; }
1988 STAGE(xy_to_2pt_conical_strip, const SkJumper_2PtConicalCtx* ctx) {
1993 STAGE(xy_to_2pt_conical_focal_on_circle, Ctx::None) {
1998 STAGE(xy_to_2pt_conical_well_behaved, const SkJumper_2PtConicalCtx* ctx) {
2003 STAGE(xy_to_2pt_conical_greater, const SkJumper_2PtConicalCtx* ctx) {
2008 STAGE(xy_to_2pt_conical_smaller, const SkJumper_2PtConicalCtx* ctx) {
2013 STAGE(alter_2pt_conical_compensate_focal, const SkJumper_2PtConicalCtx* ctx) {
2018 STAGE(alter_2pt_conical_unswap, Ctx::None) {
2023 STAGE(mask_2pt_conical_nan, SkJumper_2PtConicalCtx* c) {
2030 STAGE(mask_2pt_conical_degenerates, SkJumper_2PtConicalCtx* c) {
2037 STAGE(apply_vector_mask, const uint32_t* ctx) {
2045 STAGE(save_xy, SkJumper_SamplerCtx* c) {
2059 STAGE(accumulate, const SkJumper_SamplerCtx* c) {
2096 STAGE(bilinear_nx, SkJumper_SamplerCtx* ctx) { bilinear_x<-1>(ctx, &r); }
2097 STAGE(bilinear_px, SkJumper_SamplerCtx* ctx) { bilinear_x<+1>(ctx, &r); }
2098 STAGE(bilinear_ny, SkJumper_SamplerCtx* ctx) { bilinear_y<-1>(ctx, &g); }
2099 STAGE(bilinear_py, SkJumper_SamplerCtx* ctx) { bilinear_y<+1>(ctx, &g); }
2142 STAGE(bicubic_n3x, SkJumper_SamplerCtx* ctx) { bicubic_x<-3>(ctx, &r); }
2143 STAGE(bicubic_n1x, SkJumper_SamplerCtx* ctx) { bicubic_x<-1>(ctx, &r); }
2144 STAGE(bicubic_p1x, SkJumper_SamplerCtx* ctx) { bicubic_x<+1>(ctx, &r); }
2145 STAGE(bicubic_p3x, SkJumper_SamplerCtx* ctx) { bicubic_x<+3>(ctx, &r); }
2147 STAGE(bicubic_n3y, SkJumper_SamplerCtx* ctx) { bicubic_y<-3>(ctx, &g); }
2148 STAGE(bicubic_n1y, SkJumper_SamplerCtx* ctx) { bicubic_y<-1>(ctx, &g); }
2149 STAGE(bicubic_p1y, SkJumper_SamplerCtx* ctx) { bicubic_y<+1>(ctx, &g); }
2150 STAGE(bicubic_p3y, SkJumper_SamplerCtx* ctx) { bicubic_y<+3>(ctx, &g); }
2152 STAGE(callback, SkJumper_CallbackCtx* c) {
2200 STAGE(clut_3D, const SkJumper_ColorLookupTableCtx* ctx) {
2204 STAGE(clut_4D, const SkJumper_ColorLookupTableCtx* ctx) {
2210 STAGE(gauss_a_to_rgba, Ctx::None) {
2227 STAGE(bilerp_clamp_8888, SkJumper_GatherCtx* ctx) {