ref: 3b48079fd4326acb0b4771ff7fc62e1965282492
parent: 417aaddf58751d731709803032ed2dd09fa68896
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Apr 23 06:42:18 EDT 2021
redefine a few more as macros
--- a/stb_image_resize.h
+++ b/stb_image_resize.h
@@ -883,20 +883,9 @@
{ stbir__filter_mitchell, stbir__support_two },
};
-stbir__inline static int stbir__use_upsampling(float ratio)
-{
- return ratio > 1;
-}
-
-stbir__inline static int stbir__use_width_upsampling(stbir__info* stbir_info)
-{
- return stbir__use_upsampling(stbir_info->horizontal_scale);
-}
-
-stbir__inline static int stbir__use_height_upsampling(stbir__info* stbir_info)
-{
- return stbir__use_upsampling(stbir_info->vertical_scale);
-}
+#define stbir__use_upsampling(ratio) ((ratio) > 1)
+#define stbir__use_width_upsampling(info) stbir__use_upsampling((info)->horizontal_scale)
+#define stbir__use_height_upsampling(info) stbir__use_upsampling((info)->vertical_scale)
// This is the maximum number of input samples that can affect an output sample
// with the given filter