Module: E:\SOURCE\TMP\LABGEN\smooth.cpp Group: 'DGROUP' CONST,CONST2,_DATA,_BSS Segment: _TEXT PARA USE32 000001e2 bytes #include "smooth.hpp" #include "genpixel.hpp" void SmoothPixelMap(const PixelMap& src, PixelMap& dst) { 0000 void near SmoothPixelMap( PixelMap const near &, PixelMap near & ): 0000 53 push ebx 0001 51 push ecx 0002 56 push esi 0003 57 push edi 0004 55 push ebp 0005 83 ec 28 sub esp,00000028H 0008 89 c1 mov ecx,eax 000a 89 54 24 14 mov +14H[esp],edx unsigned w=src.queryWidth(), h=src.queryHeight(); 000e 8b 40 04 mov eax,+4H[eax] 0011 8b 51 08 mov edx,+8H[ecx] for(int x=0; x0 && y>0 ) { colorsum+=src.queryPixel(x-1,y-1); colors++; } 0064 85 ff test edi,edi 0066 7e 21 jle L5 0068 85 f6 test esi,esi 006a 7e 1d jle L5 006c 8b 44 24 04 mov eax,+4H[esp] 0070 0f af 41 04 imul eax,+4H[ecx] 0074 8b 6c 24 24 mov ebp,+24H[esp] 0078 8b 11 mov edx,[ecx] 007a 01 e8 add eax,ebp 007c 8a 04 02 mov al,[edx+eax] 007f bb 01 00 00 00 mov ebx,00000001H 0084 25 ff 00 00 00 and eax,000000ffH if( y>0 ) { colorsum+=src.queryPixel(x,y-1); colors++; } 0089 85 f6 L5 test esi,esi 008b 7e 19 jle L6 008d 8b 54 24 04 mov edx,+4H[esp] 0091 0f af 51 04 imul edx,+4H[ecx] 0095 8b 29 mov ebp,[ecx] 0097 01 fa add edx,edi 0099 01 ea add edx,ebp 009b 8a 12 mov dl,[edx] 009d 81 e2 ff 00 00 00 and edx,000000ffH 00a3 43 inc ebx 00a4 01 d0 add eax,edx 00a6 3b 7c 24 18 L6 cmp edi,+18H[esp] 00aa 73 1f jae L7 00ac 85 f6 test esi,esi 00ae 7e 1b jle L7 00b0 8b 54 24 04 mov edx,+4H[esp] 00b4 0f af 51 04 imul edx,+4H[ecx] 00b8 03 54 24 20 add edx,+20H[esp] 00bc 8b 29 mov ebp,[ecx] 00be 01 ea add edx,ebp 00c0 8a 12 mov dl,[edx] 00c2 81 e2 ff 00 00 00 and edx,000000ffH if(x0 ) { colorsum+=src.queryPixel(x+1,y-1); colors++; } 00c8 43 inc ebx 00c9 01 d0 add eax,edx if(x>0 ) { colorsum+=src.queryPixel(x-1,y); colors++; } 00cb 85 ff L7 test edi,edi 00cd 7e 19 jle L8 00cf 8b 51 04 mov edx,+4H[ecx] 00d2 0f af d6 imul edx,esi 00d5 03 54 24 24 add edx,+24H[esp] 00d9 8b 29 mov ebp,[ecx] 00db 01 ea add edx,ebp 00dd 8a 12 mov dl,[edx] 00df 81 e2 ff 00 00 00 and edx,000000ffH 00e5 43 inc ebx 00e6 01 d0 add eax,edx { colorsum+=src.queryPixel(x,y); colors++; } 00e8 8b 51 04 L8 mov edx,+4H[ecx] 00eb 0f af d6 imul edx,esi 00ee 89 54 24 08 mov +8H[esp],edx 00f2 8d 2c 3a lea ebp,[edx+edi] 00f5 8b 11 mov edx,[ecx] 00f7 01 d5 add ebp,edx 00f9 89 14 24 mov [esp],edx 00fc 8a 55 00 mov dl,+0H[ebp] 00ff 8b 6c 24 18 mov ebp,+18H[esp] 0103 81 e2 ff 00 00 00 and edx,000000ffH 0109 43 inc ebx 010a 01 d0 add eax,edx 010c 39 ef cmp edi,ebp 010e 73 16 jae L9 0110 8b 54 24 08 mov edx,+8H[esp] 0114 03 54 24 20 add edx,+20H[esp] 0118 03 14 24 add edx,[esp] 011b 8a 12 mov dl,[edx] 011d 81 e2 ff 00 00 00 and edx,000000ffH if(x0 && y10) colordifference=10; dst.setPixel(x,y, src.queryPixel(x,y) - colordifference); } } 018d 43 inc ebx 018e 01 d0 add eax,edx 0190 31 d2 L12 xor edx,edx 0192 f7 f3 div ebx 0194 8b 51 04 mov edx,+4H[ecx] 0197 0f af d6 imul edx,esi 019a 8b 19 mov ebx,[ecx] 019c 01 fa add edx,edi 019e 8a 1c 1a mov bl,[edx+ebx] 01a1 31 d2 xor edx,edx 01a3 88 da mov dl,bl 01a5 29 c2 sub edx,eax 01a7 8b 44 24 14 mov eax,+14H[esp] 01ab 8b 40 04 mov eax,+4H[eax] 01ae 0f af c6 imul eax,esi 01b1 28 d3 sub bl,dl 01b3 8b 54 24 14 mov edx,+14H[esp] 01b7 8b 6c 24 04 mov ebp,+4H[esp] 01bb 8b 12 mov edx,[edx] 01bd 01 f8 add eax,edi 01bf 45 inc ebp 01c0 46 inc esi 01c1 88 1c 02 mov [edx+eax],bl 01c4 8b 44 24 10 mov eax,+10H[esp] 01c8 89 6c 24 04 mov +4H[esp],ebp 01cc 39 c6 cmp esi,eax 01ce 0f 83 66 fe ff ff jae L2 01d4 e9 87 fe ff ff jmp L4 } 01d9 83 c4 28 L13 add esp,00000028H 01dc 5d pop ebp 01dd 5f pop edi 01de 5e pop esi 01df 59 pop ecx 01e0 5b pop ebx 01e1 c3 ret No disassembly errors ------------------------------------------------------------