Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int __cdecl MakeRadiusQuantizationTables(int a1, unsigned __int8 *a2, unsigned __int8 *a3)
- {
- signed int v3; // esi@1
- unsigned __int8 *v4; // edi@1
- signed int v5; // ecx@2
- unsigned __int8 v6; // al@3
- int result; // eax@7
- int v8; // [sp+4h] [bp-14h]@2
- unsigned __int8 *v9; // [sp+8h] [bp-10h]@1
- v3 = 1;
- v9 = radiusLumaQuantizer;
- v4 = radiusChromaQuantizer;
- do
- {
- v8 = (a1 * *v9 + 25) / 50;
- v5 = (a1 * *v4 + 25) / 50;
- if ( v8 > 0 )
- {
- v6 = -1;
- if ( v8 < 256 )
- v6 = v8;
- }
- else
- {
- v6 = 1;
- }
- a2[v3 - 1] = v6;
- if ( v5 > 0 )
- {
- result = -1;
- if ( v5 < 256 )
- result = v5;
- }
- else
- {
- result = 1;
- }
- a3[v3++ - 1] = result;
- ++v9;
- ++v4;
- }
- while ( v3 != 65 );
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement