// // png_gamma_8bit_correct from 0x8604c8 to 0x860540 (120 bytes) // // 10 xrefs: // > png_gamma_correct @ 0x8605f6 // > png_build_gamma_table @ 0x860746 // > png_build_gamma_table @ 0x860a2c // > png_build_gamma_table @ 0x860a6e // > png_init_read_transformations @ 0x86a150 // > png_init_read_transformations @ 0x86a15c // > png_init_read_transformations @ 0x86a168 // > png_init_read_transformations @ 0x86a174 // > png_init_read_transformations @ 0x86a180 // > png_init_read_transformations @ 0x86a18c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:02:42 +0000 // 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