MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbir__edge_wrap

Function stbir__edge_wrap

lite/example/cpp_example/mge/cv/stb_image_resize.h:1010–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008}
1009
1010stbir__inline static int stbir__edge_wrap(stbir_edge edge, int n, int max) {
1011 // avoid per-pixel switch
1012 if (n >= 0 && n < max)
1013 return n;
1014 return stbir__edge_wrap_slow(edge, n, max);
1015}
1016
1017// What input pixels contribute to this output pixel?
1018static void stbir__calculate_sample_range_upsample(

Callers 1

stbir__decode_scanlineFunction · 0.85

Calls 1

stbir__edge_wrap_slowFunction · 0.85

Tested by

no test coverage detected