Lines Matching defs:good
227 // 3. good performance
229 // Sometimes I let "good performance" creep up in priority over "easy to maintain",
1756 unsigned char *good;
1761 good = (unsigned char *) stbi__malloc_mad3(req_comp, x, y, 0);
1762 if (good == NULL) {
1769 unsigned char *dest = good + j * x * req_comp;
1788 default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return stbi__errpuc("unsupported", "Unsupported format conversion");
1794 return good;
1813 stbi__uint16 *good;
1818 good = (stbi__uint16 *) stbi__malloc(req_comp * x * y * 2);
1819 if (good == NULL) {
1826 stbi__uint16 *dest = good + j * x * req_comp;
1845 default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return (stbi__uint16*) stbi__errpuc("unsupported", "Unsupported format conversion");
1851 return good;
1922 // - allows good upsampling (see next)
5843 res = 1; // if we got this far, everything's good and we can return 1 instead of 0
7919 1.05 fix TGA loading to return correct *comp and use good luminance calc