Advertisement
Guest User

Untitled

a guest
Apr 4th, 2011
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. int __cdecl MakeRadiusQuantizationTables(int a1, unsigned __int8 *a2, unsigned __int8 *a3)
  2. {
  3.   signed int v3; // esi@1
  4.   unsigned __int8 *v4; // edi@1
  5.   signed int v5; // ecx@2
  6.   unsigned __int8 v6; // al@3
  7.   int result; // eax@7
  8.   int v8; // [sp+4h] [bp-14h]@2
  9.   unsigned __int8 *v9; // [sp+8h] [bp-10h]@1
  10.  
  11.   v3 = 1;
  12.   v9 = radiusLumaQuantizer;
  13.   v4 = radiusChromaQuantizer;
  14.   do
  15.   {
  16.     v8 = (a1 * *v9 + 25) / 50;
  17.     v5 = (a1 * *v4 + 25) / 50;
  18.     if ( v8 > 0 )
  19.     {
  20.       v6 = -1;
  21.       if ( v8 < 256 )
  22.         v6 = v8;
  23.     }
  24.     else
  25.     {
  26.       v6 = 1;
  27.     }
  28.     a2[v3 - 1] = v6;
  29.     if ( v5 > 0 )
  30.     {
  31.       result = -1;
  32.       if ( v5 < 256 )
  33.         result = v5;
  34.     }
  35.     else
  36.     {
  37.       result = 1;
  38.     }
  39.     a3[v3++ - 1] = result;
  40.     ++v9;
  41.     ++v4;
  42.   }
  43.   while ( v3 != 65 );
  44.   return result;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement