__text:00000900 MakeRadiusQuantizationTables(int, unsigned char *, unsigned char *) proc near __text:00000900 ; CODE XREF: AddMJPGFrame(codecGlobalsRec **,long,long,char *,char *,long,long,uchar)+82p __text:00000900 __text:00000900 var_18 = dword ptr -18h __text:00000900 var_14 = dword ptr -14h __text:00000900 var_10 = dword ptr -10h __text:00000900 arg_0 = dword ptr 8 __text:00000900 arg_4 = dword ptr 0Ch __text:00000900 arg_8 = dword ptr 10h __text:00000900 __text:00000900 000 push ebp __text:00000901 004 mov ebp, esp __text:00000903 004 push edi __text:00000904 008 push esi __text:00000905 00C push ebx __text:00000906 010 sub esp, 0Ch __text:00000909 01C call ___i686_get_pc_thunk_bx __text:0000090E 01C mov esi, 1 __text:00000913 01C lea eax, (_radiusLumaQuantizer - 90Eh)[ebx] __text:00000919 01C mov [ebp+var_10], eax __text:0000091C 01C lea edi, (_radiusChromaQuantizer - 90Eh)[ebx] __text:00000922 __text:00000922 loc_922: ; CODE XREF: MakeRadiusQuantizationTables(int,uchar *,uchar *)+BFj __text:00000922 01C mov edx, [ebp+var_10] __text:00000925 01C movzx eax, byte ptr [edx] __text:00000928 01C imul eax, [ebp+arg_0] __text:0000092C 01C add eax, 19h __text:0000092F 01C mov [ebp+var_18], eax __text:00000932 01C mov eax, 51EB851Fh __text:00000937 01C imul [ebp+var_18] __text:0000093A 01C sar edx, 4 __text:0000093D 01C mov eax, [ebp+var_18] __text:00000940 01C sar eax, 1Fh __text:00000943 01C sub edx, eax __text:00000945 01C mov [ebp+var_14], edx __text:00000948 01C movzx eax, byte ptr [edi] __text:0000094B 01C imul eax, [ebp+arg_0] __text:0000094F 01C add eax, 19h __text:00000952 01C mov [ebp+var_18], eax __text:00000955 01C mov eax, 51EB851Fh __text:0000095A 01C imul [ebp+var_18] __text:0000095D 01C mov ecx, edx __text:0000095F 01C sar ecx, 4 __text:00000962 01C mov eax, [ebp+var_18] __text:00000965 01C sar eax, 1Fh __text:00000968 01C sub ecx, eax __text:0000096A 01C mov eax, [ebp+var_14] __text:0000096D 01C test eax, eax __text:0000096F 01C jg short loc_978 __text:00000971 01C mov eax, 1 __text:00000976 01C jmp short loc_98B __text:00000978 ; --------------------------------------------------------------------------- __text:00000978 __text:00000978 loc_978: ; CODE XREF: MakeRadiusQuantizationTables(int,uchar *,uchar *)+6Fj __text:00000978 01C mov eax, 0FFFFFFFFh __text:0000097D 01C cmp [ebp+var_14], 100h __text:00000984 01C movzx edx, byte ptr [ebp+var_14] __text:00000988 01C cmovl eax, edx __text:0000098B __text:0000098B loc_98B: ; CODE XREF: MakeRadiusQuantizationTables(int,uchar *,uchar *)+76j __text:0000098B 01C mov edx, [ebp+arg_4] __text:0000098E 01C mov [edx+esi-1], al __text:00000992 01C test ecx, ecx __text:00000994 01C jg short loc_99D __text:00000996 01C mov eax, 1 __text:0000099B 01C jmp short loc_9AB __text:0000099D ; --------------------------------------------------------------------------- __text:0000099D __text:0000099D loc_99D: ; CODE XREF: MakeRadiusQuantizationTables(int,uchar *,uchar *)+94j __text:0000099D 01C mov eax, 0FFFFFFFFh __text:000009A2 01C cmp ecx, 100h __text:000009A8 01C cmovl eax, ecx __text:000009AB __text:000009AB loc_9AB: ; CODE XREF: MakeRadiusQuantizationTables(int,uchar *,uchar *)+9Bj __text:000009AB 01C mov ecx, [ebp+arg_8] __text:000009AE 01C mov [ecx+esi-1], al __text:000009B2 01C add esi, 1 __text:000009B5 01C add [ebp+var_10], 1 __text:000009B9 01C add edi, 1 __text:000009BC 01C cmp esi, 41h ; 'A' __text:000009BF 01C jnz loc_922 __text:000009C5 01C add esp, 0Ch __text:000009C8 010 pop ebx __text:000009C9 00C pop esi __text:000009CA 008 pop edi __text:000009CB 004 pop ebp __text:000009CC 000 retn __text:000009CC MakeRadiusQuantizationTables(int, unsigned char *, unsigned char *) endp