Lines Matching refs:add
122 To add your name to the credits, pick a random blank space in the middle and fill it.
1021 // returns 1 if "a*b + add" has no negative terms/factors and doesn't overflow
1022 static int stbi__mad2sizes_valid(int a, int b, int add)
1024 return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a*b, add);
1028 // returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow
1029 static int stbi__mad3sizes_valid(int a, int b, int c, int add)
1032 stbi__addsizes_valid(a*b*c, add);
1035 // returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow
1037 static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)
1040 stbi__mul2sizes_valid(a*b*c, d) && stbi__addsizes_valid(a*b*c*d, add);
1046 static void *stbi__malloc_mad2(int a, int b, int add)
1048 if (!stbi__mad2sizes_valid(a, b, add)) return NULL;
1049 return stbi__malloc(a*b + add);
1053 static void *stbi__malloc_mad3(int a, int b, int c, int add)
1055 if (!stbi__mad3sizes_valid(a, b, c, add)) return NULL;
1056 return stbi__malloc(a*b*c + add);
1060 static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)
1062 if (!stbi__mad4sizes_valid(a, b, c, d, add)) return NULL;
1063 return stbi__malloc(a*b*c*d + add);
1137 memset(ri, 0, sizeof(*ri)); // make sure it's initialized if we add new fields
1139 ri->channel_order = STBI_ORDER_RGB; // all current input & output are this, but this is here so we can add BGR order
2018 // compute delta to add to code to compute symbol id
2506 // to encode as 0..255 by adding 128, so we'll add that before the shift
2552 // wide add
2562 // butterfly a/b, add bias, then shift by "s" and pack
2738 // wide add
2807 // add DC bias
3750 // in this version, step=3 support would be easy to add. but is there demand?
7790 2.13 (2016-11-29) add 16-bit API, only supported for PNG right now
7849 add support for BMP version 5 (more ignored fields)
7927 0.98 TGA loader by lonesock; dynamically add loaders (untested)