// // png_gamma_8bit_correct from 0x650448 to 0x6504c0 (120 bytes) // // 10 xrefs: // > png_gamma_correct @ 0x650576 // > png_build_gamma_table @ 0x6506c6 // > png_build_gamma_table @ 0x6509ac // > png_build_gamma_table @ 0x6509ee // > png_init_read_transformations @ 0x65a0d0 // > png_init_read_transformations @ 0x65a0dc // > png_init_read_transformations @ 0x65a0e8 // > png_init_read_transformations @ 0x65a0f4 // > png_init_read_transformations @ 0x65a100 // > png_init_read_transformations @ 0x65a10c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall png_gamma_8bit_correct(int result, int a2) { double v2; // r0 if ( (unsigned int)(result - 1) > 0xFD ) return (unsigned __int8)result; v2 = pow((double)result / 255.0, (double)a2 * 0.00001); return (unsigned __int8)(unsigned int)floor(v2 * 255.0 + 0.5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source