| 1008 | } |
| 1009 | |
| 1010 | stbir__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? |
| 1018 | static void stbir__calculate_sample_range_upsample( |
no test coverage detected