Mercurial > mm7
comparison mm7_2.cpp @ 1126:5f59f1cba5f5
sub_451007_scale_image_bicubic cleanup - dozens of duplicate/unused variables
author | Grumpy7 |
---|---|
date | Fri, 31 May 2013 05:25:38 +0200 |
parents | f87e7d1aa9ec |
children | 1c65d99d224d |
comparison
equal
deleted
inserted
replaced
1125:f87e7d1aa9ec | 1126:5f59f1cba5f5 |
---|---|
2165 //----- (00451007) -------------------------------------------------------- | 2165 //----- (00451007) -------------------------------------------------------- |
2166 int stru350::sub_451007_scale_image_bicubic(unsigned short *pSrc, int srcWidth, int srcHeight, int srcPitch, | 2166 int stru350::sub_451007_scale_image_bicubic(unsigned short *pSrc, int srcWidth, int srcHeight, int srcPitch, |
2167 unsigned short *pDst, int dstWidth, int dstHeight, int dstPitch, | 2167 unsigned short *pDst, int dstWidth, int dstHeight, int dstPitch, |
2168 int a10, int a11) | 2168 int a10, int a11) |
2169 { | 2169 { |
2170 int v11; // esi@1 | 2170 //int v11; // esi@1 |
2171 int result; // eax@1 | 2171 int result; // eax@1 |
2172 int v13; // edi@8 | 2172 //int v13; // edi@8 |
2173 int v14; // ecx@10 | 2173 int v14; // ecx@10 |
2174 double v15; // st7@11 | 2174 double v15; // st7@11 |
2175 double v16; // st6@11 | 2175 //double v16; // st6@11 |
2176 float v17; // ST3C_4@12 | 2176 float v17; // ST3C_4@12 |
2177 float v18; // ST38_4@12 | 2177 float v18; // ST38_4@12 |
2178 unsigned int v19; // esi@12 | 2178 unsigned int v19; // esi@12 |
2179 int v20; // eax@16 | 2179 //int v20; // eax@16 |
2180 int v21; // eax@18 | 2180 int v21; // eax@18 |
2181 unsigned int v22; // ecx@25 | 2181 unsigned int v22; // ecx@25 |
2182 unsigned int v23; // eax@29 | 2182 unsigned int v23; // eax@29 |
2183 unsigned __int16 *v24; // ecx@29 | 2183 //unsigned __int16 *v24; // ecx@29 |
2184 int v25; // edi@33 | 2184 //int v25; // edi@33 |
2185 int v26; // ecx@35 | 2185 int v26; // ecx@35 |
2186 double v27; // st7@36 | 2186 //double v27; // st7@36 |
2187 double v28; // st6@36 | 2187 //double v28; // st6@36 |
2188 float v29; // ST34_4@37 | 2188 float v29; // ST34_4@37 |
2189 float v30; // ST30_4@37 | 2189 float v30; // ST30_4@37 |
2190 unsigned int v31; // esi@37 | 2190 unsigned int v31; // esi@37 |
2191 int v32; // eax@41 | 2191 //int v32; // eax@41 |
2192 int v33; // eax@43 | 2192 int v33; // eax@43 |
2193 unsigned int v34; // ecx@50 | 2193 unsigned int v34; // ecx@50 |
2194 unsigned __int16 v35; // ax@54 | 2194 unsigned __int16 v35; // ax@54 |
2195 unsigned __int16 *v36; // ecx@54 | 2195 //unsigned __int16 *v36; // ecx@54 |
2196 int v37; // edi@58 | 2196 //int v37; // edi@58 |
2197 int v38; // ecx@60 | 2197 int v38; // ecx@60 |
2198 double v39; // st7@61 | 2198 //double v39; // st7@61 |
2199 double v40; // st6@61 | 2199 //double v40; // st6@61 |
2200 float v41; // ST34_4@62 | 2200 float v41; // ST34_4@62 |
2201 float v42; // ST30_4@62 | 2201 float v42; // ST30_4@62 |
2202 unsigned int v43; // esi@62 | 2202 unsigned int v43; // esi@62 |
2203 int v44; // eax@66 | 2203 //int v44; // eax@66 |
2204 int v45; // eax@68 | 2204 int v45; // eax@68 |
2205 unsigned int v46; // ecx@75 | 2205 unsigned int v46; // ecx@75 |
2206 char v47; // al@79 | 2206 char v47; // al@79 |
2207 unsigned __int16 *v48; // ecx@79 | 2207 //unsigned __int16 *v48; // ecx@79 |
2208 int v49; // edi@86 | 2208 //int v49; // edi@86 |
2209 int v50; // ecx@88 | 2209 int v50; // ecx@88 |
2210 double v51; // st7@89 | 2210 //double v51; // st7@89 |
2211 double v52; // st6@89 | 2211 //double v52; // st6@89 |
2212 float v53; // ST34_4@90 | 2212 float v53; // ST34_4@90 |
2213 float v54; // ST30_4@90 | 2213 float v54; // ST30_4@90 |
2214 unsigned int v55; // esi@90 | 2214 unsigned int v55; // esi@90 |
2215 int v56; // eax@94 | 2215 //int v56; // eax@94 |
2216 int v57; // eax@96 | 2216 int v57; // eax@96 |
2217 unsigned int v58; // ecx@103 | 2217 unsigned int v58; // ecx@103 |
2218 unsigned int v59; // eax@107 | 2218 unsigned int v59; // eax@107 |
2219 unsigned __int16 *v60; // ecx@107 | 2219 //unsigned __int16 *v60; // ecx@107 |
2220 int v61; // edi@111 | 2220 //int v61; // edi@111 |
2221 int v62; // ecx@113 | 2221 int v62; // ecx@113 |
2222 double v63; // st7@114 | 2222 // double v63; // st7@114 |
2223 double v64; // st6@114 | 2223 // double v64; // st6@114 |
2224 float v65; // ST34_4@115 | 2224 float v65; // ST34_4@115 |
2225 float v66; // ST30_4@115 | 2225 float v66; // ST30_4@115 |
2226 unsigned int v67; // esi@115 | 2226 unsigned int v67; // esi@115 |
2227 int v68; // eax@119 | 2227 int v68; // eax@119 |
2228 int v69; // eax@121 | 2228 int v69; // eax@121 |
2229 unsigned int v70; // ecx@128 | 2229 unsigned int v70; // ecx@128 |
2230 unsigned __int16 v71; // ax@132 | 2230 unsigned __int16 v71; // ax@132 |
2231 unsigned __int16 *v72; // ecx@132 | 2231 //unsigned __int16 *v72; // ecx@132 |
2232 int v73; // edi@136 | 2232 //int v73; // edi@136 |
2233 int v74; // ecx@138 | 2233 int v74; // ecx@138 |
2234 double v75; // st7@139 | 2234 //double v75; // st7@139 |
2235 double v76; // st6@139 | 2235 //double v76; // st6@139 |
2236 float v77; // ST34_4@140 | 2236 float v77; // ST34_4@140 |
2237 float v78; // ST30_4@140 | 2237 float v78; // ST30_4@140 |
2238 unsigned int v79; // esi@140 | 2238 unsigned int v79; // esi@140 |
2239 int v80; // eax@144 | 2239 //int v80; // eax@144 |
2240 int v81; // eax@146 | 2240 int v81; // eax@146 |
2241 unsigned int v82; // ecx@153 | 2241 unsigned int v82; // ecx@153 |
2242 char v83; // al@157 | 2242 char v83; // al@157 |
2243 unsigned __int16 *v84; // ecx@157 | 2243 //unsigned __int16 *v84; // ecx@157 |
2244 int v85; // edi@164 | 2244 //int v85; // edi@164 |
2245 int v86; // ecx@166 | 2245 //int v86; // ecx@166 |
2246 double v87; // st7@167 | 2246 //double v87; // st7@167 |
2247 double v88; // st6@167 | 2247 //double v88; // st6@167 |
2248 float v89; // ST34_4@168 | 2248 //float v89; // ST34_4@168 |
2249 float v90; // ST30_4@168 | 2249 //float v90; // ST30_4@168 |
2250 unsigned int v91; // esi@168 | 2250 //unsigned int v91; // esi@168 |
2251 signed int v92; // eax@170 | 2251 //signed int v92; // eax@170 |
2252 int v93; // eax@171 | 2252 //int v93; // eax@171 |
2253 int v94; // eax@173 | 2253 //int v94; // eax@173 |
2254 unsigned int v95; // ecx@181 | 2254 //unsigned int v95; // ecx@181 |
2255 unsigned int v96; // eax@185 | 2255 //unsigned int v96; // eax@185 |
2256 unsigned __int16 *v97; // ecx@185 | 2256 //unsigned __int16 *v97; // ecx@185 |
2257 int v98; // edi@189 | 2257 //int v98; // edi@189 |
2258 int v99; // ecx@191 | 2258 //int v99; // ecx@191 |
2259 double v100; // st7@192 | 2259 //double v100; // st7@192 |
2260 double v101; // st6@192 | 2260 //double v101; // st6@192 |
2261 float v102; // ST34_4@193 | 2261 //float v102; // ST34_4@193 |
2262 float v103; // ST30_4@193 | 2262 //float v103; // ST30_4@193 |
2263 unsigned int v104; // esi@193 | 2263 //unsigned int v104; // esi@193 |
2264 signed int v105; // eax@195 | 2264 //signed int v105; // eax@195 |
2265 int v106; // eax@196 | 2265 //int v106; // eax@196 |
2266 int v107; // eax@198 | 2266 //int v107; // eax@198 |
2267 unsigned int v108; // ecx@206 | 2267 //unsigned int v108; // ecx@206 |
2268 unsigned __int16 v109; // ax@210 | 2268 //unsigned __int16 v109; // ax@210 |
2269 unsigned __int16 *v110; // ecx@210 | 2269 //unsigned __int16 *v110; // ecx@210 |
2270 int v111; // edi@214 | 2270 //int v111; // edi@214 |
2271 int v112; // ecx@216 | 2271 int v112; // ecx@216 |
2272 double v113; // st7@217 | 2272 //double v113; // st7@217 |
2273 double v114; // st6@217 | 2273 //double v114; // st6@217 |
2274 float v115; // ST34_4@218 | 2274 float v115; // ST34_4@218 |
2275 float v116; // ST30_4@218 | 2275 float v116; // ST30_4@218 |
2276 unsigned int v117; // esi@218 | 2276 unsigned int v117; // esi@218 |
2277 signed int v118; // eax@220 | 2277 signed int v118; // eax@220 |
2278 int v119; // eax@221 | 2278 int v119; // eax@221 |
2279 int v120; // eax@223 | 2279 int v120; // eax@223 |
2280 unsigned int v121; // ecx@231 | 2280 unsigned int v121; // ecx@231 |
2281 char v122; // al@235 | 2281 char v122; // al@235 |
2282 unsigned __int16 *v123; // ecx@235 | 2282 //unsigned __int16 *v123; // ecx@235 |
2283 double v124; // [sp+Ch] [bp-7Ch]@12 | 2283 double v124; // [sp+Ch] [bp-7Ch]@12 |
2284 double v125; // [sp+Ch] [bp-7Ch]@37 | 2284 double v125; // [sp+Ch] [bp-7Ch]@37 |
2285 double v126; // [sp+Ch] [bp-7Ch]@62 | 2285 double v126; // [sp+Ch] [bp-7Ch]@62 |
2286 double v127; // [sp+Ch] [bp-7Ch]@90 | 2286 double v127; // [sp+Ch] [bp-7Ch]@90 |
2287 //double v128; // [sp+Ch] [bp-7Ch]@115 | 2287 //double v128; // [sp+Ch] [bp-7Ch]@115 |
2288 uint _v128; | 2288 uint _v128; |
2289 double v129; // [sp+Ch] [bp-7Ch]@140 | 2289 double v129; // [sp+Ch] [bp-7Ch]@140 |
2290 double v130; // [sp+Ch] [bp-7Ch]@168 | 2290 //double v130; // [sp+Ch] [bp-7Ch]@168 |
2291 double v131; // [sp+Ch] [bp-7Ch]@193 | 2291 //double v131; // [sp+Ch] [bp-7Ch]@193 |
2292 double v132; // [sp+Ch] [bp-7Ch]@218 | 2292 double v132; // [sp+Ch] [bp-7Ch]@218 |
2293 double v133; // [sp+14h] [bp-74h]@12 | 2293 double v133; // [sp+14h] [bp-74h]@12 |
2294 double v134; // [sp+14h] [bp-74h]@37 | 2294 double v134; // [sp+14h] [bp-74h]@37 |
2295 double v135; // [sp+14h] [bp-74h]@62 | 2295 double v135; // [sp+14h] [bp-74h]@62 |
2296 double v136; // [sp+14h] [bp-74h]@90 | 2296 double v136; // [sp+14h] [bp-74h]@90 |
2297 //double v137; // [sp+14h] [bp-74h]@115 | 2297 //double v137; // [sp+14h] [bp-74h]@115 |
2298 uint _v137; | 2298 uint _v137; |
2299 double v138; // [sp+14h] [bp-74h]@140 | 2299 double v138; // [sp+14h] [bp-74h]@140 |
2300 double v139; // [sp+14h] [bp-74h]@168 | 2300 //double v139; // [sp+14h] [bp-74h]@168 |
2301 double v140; // [sp+14h] [bp-74h]@193 | 2301 //double v140; // [sp+14h] [bp-74h]@193 |
2302 double v141; // [sp+14h] [bp-74h]@218 | 2302 double v141; // [sp+14h] [bp-74h]@218 |
2303 double v142; // [sp+1Ch] [bp-6Ch]@12 | 2303 double v142; // [sp+1Ch] [bp-6Ch]@12 |
2304 double v143; // [sp+1Ch] [bp-6Ch]@37 | 2304 double v143; // [sp+1Ch] [bp-6Ch]@37 |
2305 double v144; // [sp+1Ch] [bp-6Ch]@62 | 2305 double v144; // [sp+1Ch] [bp-6Ch]@62 |
2306 double v145; // [sp+1Ch] [bp-6Ch]@90 | 2306 double v145; // [sp+1Ch] [bp-6Ch]@90 |
2307 //double v146; // [sp+1Ch] [bp-6Ch]@115 | 2307 //double v146; // [sp+1Ch] [bp-6Ch]@115 |
2308 uint _v146; | 2308 uint _v146; |
2309 double v147; // [sp+1Ch] [bp-6Ch]@140 | 2309 double v147; // [sp+1Ch] [bp-6Ch]@140 |
2310 double v148; // [sp+1Ch] [bp-6Ch]@168 | 2310 //double v148; // [sp+1Ch] [bp-6Ch]@168 |
2311 double v149; // [sp+1Ch] [bp-6Ch]@193 | 2311 //double v149; // [sp+1Ch] [bp-6Ch]@193 |
2312 double v150; // [sp+1Ch] [bp-6Ch]@218 | 2312 double v150; // [sp+1Ch] [bp-6Ch]@218 |
2313 double v151; // [sp+24h] [bp-64h]@12 | 2313 double v151; // [sp+24h] [bp-64h]@12 |
2314 double v152; // [sp+24h] [bp-64h]@37 | 2314 double v152; // [sp+24h] [bp-64h]@37 |
2315 double v153; // [sp+24h] [bp-64h]@62 | 2315 double v153; // [sp+24h] [bp-64h]@62 |
2316 double v154; // [sp+24h] [bp-64h]@90 | 2316 double v154; // [sp+24h] [bp-64h]@90 |
2317 //double v155; // [sp+24h] [bp-64h]@115 | 2317 //double v155; // [sp+24h] [bp-64h]@115 |
2318 uint _v155; | 2318 uint _v155; |
2319 double v156; // [sp+24h] [bp-64h]@140 | 2319 double v156; // [sp+24h] [bp-64h]@140 |
2320 double v157; // [sp+24h] [bp-64h]@168 | 2320 //double v157; // [sp+24h] [bp-64h]@168 |
2321 double v158; // [sp+24h] [bp-64h]@193 | 2321 //double v158; // [sp+24h] [bp-64h]@193 |
2322 double v159; // [sp+24h] [bp-64h]@218 | 2322 double v159; // [sp+24h] [bp-64h]@218 |
2323 int v160; // [sp+3Ch] [bp-4Ch]@13 | 2323 int v160; // [sp+3Ch] [bp-4Ch]@13 |
2324 int v161; // [sp+40h] [bp-48h]@15 | 2324 int v161; // [sp+40h] [bp-48h]@15 |
2325 int v162; // [sp+44h] [bp-44h]@40 | 2325 int v162; // [sp+44h] [bp-44h]@40 |
2326 int v163; // [sp+44h] [bp-44h]@65 | 2326 int v163; // [sp+44h] [bp-44h]@65 |
2327 int v164; // [sp+44h] [bp-44h]@93 | 2327 int v164; // [sp+44h] [bp-44h]@93 |
2328 int v165; // [sp+44h] [bp-44h]@118 | 2328 int v165; // [sp+44h] [bp-44h]@118 |
2329 int v166; // [sp+44h] [bp-44h]@143 | 2329 int v166; // [sp+44h] [bp-44h]@143 |
2330 int v167; // [sp+44h] [bp-44h]@169 | 2330 int v167; // [sp+44h] [bp-44h]@169 |
2331 int v168; // [sp+44h] [bp-44h]@194 | 2331 // int v168; // [sp+44h] [bp-44h]@194 |
2332 int v169; // [sp+44h] [bp-44h]@219 | 2332 int v169; // [sp+44h] [bp-44h]@219 |
2333 int v170; // [sp+48h] [bp-40h]@38 | 2333 int v170; // [sp+48h] [bp-40h]@38 |
2334 int v171; // [sp+48h] [bp-40h]@63 | 2334 int v171; // [sp+48h] [bp-40h]@63 |
2335 int v172; // [sp+48h] [bp-40h]@91 | 2335 int v172; // [sp+48h] [bp-40h]@91 |
2336 int v173; // [sp+48h] [bp-40h]@116 | 2336 int v173; // [sp+48h] [bp-40h]@116 |
2340 int *v177; // [sp+50h] [bp-38h]@40 | 2340 int *v177; // [sp+50h] [bp-38h]@40 |
2341 int *v178; // [sp+50h] [bp-38h]@65 | 2341 int *v178; // [sp+50h] [bp-38h]@65 |
2342 int *v179; // [sp+50h] [bp-38h]@93 | 2342 int *v179; // [sp+50h] [bp-38h]@93 |
2343 int *v180; // [sp+50h] [bp-38h]@118 | 2343 int *v180; // [sp+50h] [bp-38h]@118 |
2344 int *v181; // [sp+50h] [bp-38h]@143 | 2344 int *v181; // [sp+50h] [bp-38h]@143 |
2345 char *v182; // [sp+50h] [bp-38h]@169 | 2345 //char *v182; // [sp+50h] [bp-38h]@169 |
2346 char *v183; // [sp+50h] [bp-38h]@194 | 2346 //char *v183; // [sp+50h] [bp-38h]@194 |
2347 char *v184; // [sp+50h] [bp-38h]@219 | 2347 char *v184; // [sp+50h] [bp-38h]@219 |
2348 unsigned __int16 *v185; // [sp+54h] [bp-34h]@38 | 2348 unsigned __int16 *v185; // [sp+54h] [bp-34h]@38 |
2349 unsigned __int16 *v186; // [sp+54h] [bp-34h]@63 | 2349 unsigned __int16 *v186; // [sp+54h] [bp-34h]@63 |
2350 unsigned __int16 *v187; // [sp+54h] [bp-34h]@91 | 2350 unsigned __int16 *v187; // [sp+54h] [bp-34h]@91 |
2351 unsigned __int16 *v188; // [sp+54h] [bp-34h]@116 | 2351 unsigned __int16 *v188; // [sp+54h] [bp-34h]@116 |
2352 unsigned __int16 *v189; // [sp+54h] [bp-34h]@141 | 2352 unsigned __int16 *v189; // [sp+54h] [bp-34h]@141 |
2353 signed int v190; // [sp+54h] [bp-34h]@170 | 2353 //signed int v190; // [sp+54h] [bp-34h]@170 |
2354 signed int v191; // [sp+54h] [bp-34h]@195 | 2354 //signed int v191; // [sp+54h] [bp-34h]@195 |
2355 signed int v192; // [sp+54h] [bp-34h]@220 | 2355 //signed int v192; // [sp+54h] [bp-34h]@220 |
2356 unsigned __int16 *v193; // [sp+5Ch] [bp-2Ch]@7 | 2356 unsigned __int16 *v193; // [sp+5Ch] [bp-2Ch]@7 |
2357 unsigned __int16 *v194; // [sp+5Ch] [bp-2Ch]@32 | 2357 unsigned __int16 *v194; // [sp+5Ch] [bp-2Ch]@32 |
2358 unsigned __int16 *v195; // [sp+5Ch] [bp-2Ch]@57 | 2358 unsigned __int16 *v195; // [sp+5Ch] [bp-2Ch]@57 |
2359 unsigned __int16 *v196; // [sp+5Ch] [bp-2Ch]@85 | 2359 unsigned __int16 *v196; // [sp+5Ch] [bp-2Ch]@85 |
2360 unsigned __int16 *v197; // [sp+5Ch] [bp-2Ch]@110 | 2360 unsigned __int16 *v197; // [sp+5Ch] [bp-2Ch]@110 |
2361 unsigned __int16 *v198; // [sp+5Ch] [bp-2Ch]@135 | 2361 unsigned __int16 *v198; // [sp+5Ch] [bp-2Ch]@135 |
2362 unsigned __int16 *v199; // [sp+5Ch] [bp-2Ch]@163 | 2362 //unsigned __int16 *v199; // [sp+5Ch] [bp-2Ch]@163 |
2363 unsigned __int16 *v200; // [sp+5Ch] [bp-2Ch]@188 | 2363 //unsigned __int16 *v200; // [sp+5Ch] [bp-2Ch]@188 |
2364 unsigned __int16 *v201; // [sp+5Ch] [bp-2Ch]@213 | 2364 unsigned __int16 *v201; // [sp+5Ch] [bp-2Ch]@213 |
2365 //stru350 *v202; // [sp+60h] [bp-28h]@1 | 2365 //stru350 *v202; // [sp+60h] [bp-28h]@1 |
2366 int v203; // [sp+64h] [bp-24h]@12 | 2366 //int v203; // [sp+64h] [bp-24h]@12 |
2367 int v204; // [sp+64h] [bp-24h]@37 | 2367 //int v204; // [sp+64h] [bp-24h]@37 |
2368 int v205; // [sp+64h] [bp-24h]@62 | 2368 //int v205; // [sp+64h] [bp-24h]@62 |
2369 int v206; // [sp+64h] [bp-24h]@90 | 2369 //int v206; // [sp+64h] [bp-24h]@90 |
2370 int v207; // [sp+64h] [bp-24h]@115 | 2370 //int v207; // [sp+64h] [bp-24h]@115 |
2371 int v208; // [sp+64h] [bp-24h]@140 | 2371 //int v208; // [sp+64h] [bp-24h]@140 |
2372 int v209; // [sp+64h] [bp-24h]@168 | 2372 //int v209; // [sp+64h] [bp-24h]@168 |
2373 int v210; // [sp+64h] [bp-24h]@193 | 2373 //int v210; // [sp+64h] [bp-24h]@193 |
2374 int v211; // [sp+64h] [bp-24h]@218 | 2374 //int v211; // [sp+64h] [bp-24h]@218 |
2375 float v212; // [sp+6Ch] [bp-1Ch]@11 | 2375 /*float v212; // [sp+6Ch] [bp-1Ch]@11 |
2376 float v213; // [sp+6Ch] [bp-1Ch]@36 | 2376 float v213; // [sp+6Ch] [bp-1Ch]@36 |
2377 float v214; // [sp+6Ch] [bp-1Ch]@61 | 2377 float v214; // [sp+6Ch] [bp-1Ch]@61 |
2378 float v215; // [sp+6Ch] [bp-1Ch]@89 | 2378 float v215; // [sp+6Ch] [bp-1Ch]@89 |
2379 float v216; // [sp+6Ch] [bp-1Ch]@114 | 2379 float v216; // [sp+6Ch] [bp-1Ch]@114 |
2380 float v217; // [sp+6Ch] [bp-1Ch]@139 | 2380 float v217; // [sp+6Ch] [bp-1Ch]@139*/ |
2381 float v218; // [sp+6Ch] [bp-1Ch]@167 | 2381 //float v218; // [sp+6Ch] [bp-1Ch]@167 |
2382 float v219; // [sp+6Ch] [bp-1Ch]@192 | 2382 //float v219; // [sp+6Ch] [bp-1Ch]@192 |
2383 float v220; // [sp+6Ch] [bp-1Ch]@217 | 2383 /*float v220; // [sp+6Ch] [bp-1Ch]@217 |
2384 float v221; // [sp+70h] [bp-18h]@11 | 2384 float v221; // [sp+70h] [bp-18h]@11 |
2385 float v222; // [sp+70h] [bp-18h]@36 | 2385 float v222; // [sp+70h] [bp-18h]@36 |
2386 float v223; // [sp+70h] [bp-18h]@61 | 2386 float v223; // [sp+70h] [bp-18h]@61 |
2387 float v224; // [sp+70h] [bp-18h]@89 | 2387 float v224; // [sp+70h] [bp-18h]@89 |
2388 float v225; // [sp+70h] [bp-18h]@114 | 2388 float v225; // [sp+70h] [bp-18h]@114 |
2389 float v226; // [sp+70h] [bp-18h]@139 | 2389 float v226; // [sp+70h] [bp-18h]@139*/ |
2390 float v227; // [sp+70h] [bp-18h]@167 | 2390 //float v227; // [sp+70h] [bp-18h]@167 |
2391 float v228; // [sp+70h] [bp-18h]@192 | 2391 //float v228; // [sp+70h] [bp-18h]@192 |
2392 float v229; // [sp+70h] [bp-18h]@217 | 2392 float v229; // [sp+70h] [bp-18h]@217 |
2393 signed int v230; // [sp+74h] [bp-14h]@1 | 2393 //signed int v230; // [sp+74h] [bp-14h]@1 |
2394 signed int v231; // [sp+78h] [bp-10h]@7 | 2394 signed int v231; // [sp+78h] [bp-10h]@7 |
2395 signed int v232; // [sp+78h] [bp-10h]@32 | 2395 signed int v232; // [sp+78h] [bp-10h]@32 |
2396 signed int v233; // [sp+78h] [bp-10h]@57 | 2396 signed int v233; // [sp+78h] [bp-10h]@57 |
2397 signed int v234; // [sp+78h] [bp-10h]@85 | 2397 signed int v234; // [sp+78h] [bp-10h]@85 |
2398 signed int v235; // [sp+78h] [bp-10h]@110 | 2398 signed int v235; // [sp+78h] [bp-10h]@110 |
2399 signed int v236; // [sp+78h] [bp-10h]@135 | 2399 signed int v236; // [sp+78h] [bp-10h]@135 |
2400 signed int v237; // [sp+78h] [bp-10h]@163 | 2400 //signed int v237; // [sp+78h] [bp-10h]@163 |
2401 signed int v238; // [sp+78h] [bp-10h]@188 | 2401 //signed int v238; // [sp+78h] [bp-10h]@188 |
2402 signed int v239; // [sp+78h] [bp-10h]@213 | 2402 signed int v239; // [sp+78h] [bp-10h]@213 |
2403 __int64 v240; // [sp+7Ch] [bp-Ch]@12 | 2403 __int64 v240; // [sp+7Ch] [bp-Ch]@12 |
2404 __int64 v241; // [sp+7Ch] [bp-Ch]@37 | 2404 __int64 v241; // [sp+7Ch] [bp-Ch]@37 |
2405 __int64 v242; // [sp+7Ch] [bp-Ch]@62 | 2405 __int64 v242; // [sp+7Ch] [bp-Ch]@62 |
2406 __int64 v243; // [sp+7Ch] [bp-Ch]@90 | 2406 __int64 v243; // [sp+7Ch] [bp-Ch]@90 |
2407 __int64 v244; // [sp+7Ch] [bp-Ch]@115 | 2407 __int64 v244; // [sp+7Ch] [bp-Ch]@115 |
2408 __int64 v245; // [sp+7Ch] [bp-Ch]@140 | 2408 __int64 v245; // [sp+7Ch] [bp-Ch]@140 |
2409 unsigned int v246; // [sp+7Ch] [bp-Ch]@168 | 2409 //unsigned int v246; // [sp+7Ch] [bp-Ch]@168 |
2410 unsigned int v247; // [sp+7Ch] [bp-Ch]@193 | 2410 //unsigned int v247; // [sp+7Ch] [bp-Ch]@193 |
2411 unsigned int v248; // [sp+7Ch] [bp-Ch]@218 | 2411 unsigned int v248; // [sp+7Ch] [bp-Ch]@218 |
2412 unsigned int v249; // [sp+80h] [bp-8h]@168 | 2412 //unsigned int v249; // [sp+80h] [bp-8h]@168 |
2413 unsigned int v250; // [sp+80h] [bp-8h]@193 | 2413 //unsigned int v250; // [sp+80h] [bp-8h]@193 |
2414 unsigned int v251; // [sp+80h] [bp-8h]@218 | 2414 unsigned int v251; // [sp+80h] [bp-8h]@218 |
2415 unsigned int v252; // [sp+84h] [bp-4h]@12 | 2415 unsigned int v252; // [sp+84h] [bp-4h]@12 |
2416 unsigned int v253; // [sp+84h] [bp-4h]@37 | 2416 unsigned int v253; // [sp+84h] [bp-4h]@37 |
2417 unsigned int v254; // [sp+84h] [bp-4h]@62 | 2417 unsigned int v254; // [sp+84h] [bp-4h]@62 |
2418 unsigned int v255; // [sp+84h] [bp-4h]@90 | 2418 unsigned int v255; // [sp+84h] [bp-4h]@90 |
2419 unsigned int v256; // [sp+84h] [bp-4h]@115 | 2419 unsigned int v256; // [sp+84h] [bp-4h]@115 |
2420 unsigned int v257; // [sp+84h] [bp-4h]@140 | 2420 unsigned int v257; // [sp+84h] [bp-4h]@140 |
2421 unsigned int v258; // [sp+84h] [bp-4h]@168 | 2421 //unsigned int v258; // [sp+84h] [bp-4h]@168 |
2422 unsigned int v259; // [sp+84h] [bp-4h]@193 | 2422 //unsigned int v259; // [sp+84h] [bp-4h]@193 |
2423 unsigned int v260; // [sp+84h] [bp-4h]@218 | 2423 unsigned int v260; // [sp+84h] [bp-4h]@218 |
2424 signed int a6a; // [sp+A0h] [bp+18h]@10 | 2424 //signed int a6a; // [sp+A0h] [bp+18h]@10 |
2425 float a6s; // [sp+A0h] [bp+18h]@12 | 2425 float a6s; // [sp+A0h] [bp+18h]@12 |
2426 float a6t; // [sp+A0h] [bp+18h]@12 | 2426 float a6t; // [sp+A0h] [bp+18h]@12 |
2427 unsigned int a6b; // [sp+A0h] [bp+18h]@12 | 2427 unsigned int a6b; // [sp+A0h] [bp+18h]@12 |
2428 signed int a6c; // [sp+A0h] [bp+18h]@35 | 2428 //signed int a6c; // [sp+A0h] [bp+18h]@35 |
2429 float a6u; // [sp+A0h] [bp+18h]@37 | 2429 float a6u; // [sp+A0h] [bp+18h]@37 |
2430 float a6v; // [sp+A0h] [bp+18h]@37 | 2430 float a6v; // [sp+A0h] [bp+18h]@37 |
2431 unsigned int a6d; // [sp+A0h] [bp+18h]@37 | 2431 unsigned int a6d; // [sp+A0h] [bp+18h]@37 |
2432 signed int a6e; // [sp+A0h] [bp+18h]@60 | 2432 //signed int a6e; // [sp+A0h] [bp+18h]@60 |
2433 float a6w; // [sp+A0h] [bp+18h]@62 | 2433 float a6w; // [sp+A0h] [bp+18h]@62 |
2434 float a6x; // [sp+A0h] [bp+18h]@62 | 2434 float a6x; // [sp+A0h] [bp+18h]@62 |
2435 unsigned int a6f; // [sp+A0h] [bp+18h]@62 | 2435 unsigned int a6f; // [sp+A0h] [bp+18h]@62 |
2436 signed int a6g; // [sp+A0h] [bp+18h]@88 | 2436 //signed int a6g; // [sp+A0h] [bp+18h]@88 |
2437 float a6y; // [sp+A0h] [bp+18h]@90 | 2437 float a6y; // [sp+A0h] [bp+18h]@90 |
2438 float a6z; // [sp+A0h] [bp+18h]@90 | 2438 float a6z; // [sp+A0h] [bp+18h]@90 |
2439 unsigned int a6h; // [sp+A0h] [bp+18h]@90 | 2439 unsigned int a6h; // [sp+A0h] [bp+18h]@90 |
2440 signed int a6i; // [sp+A0h] [bp+18h]@113 | 2440 //signed int a6i; // [sp+A0h] [bp+18h]@113 |
2441 float a6ba; // [sp+A0h] [bp+18h]@115 | 2441 float a6ba; // [sp+A0h] [bp+18h]@115 |
2442 float a6bb; // [sp+A0h] [bp+18h]@115 | 2442 float a6bb; // [sp+A0h] [bp+18h]@115 |
2443 unsigned int a6j; // [sp+A0h] [bp+18h]@115 | 2443 unsigned int a6j; // [sp+A0h] [bp+18h]@115 |
2444 signed int a6k; // [sp+A0h] [bp+18h]@138 | 2444 //signed int a6k; // [sp+A0h] [bp+18h]@138 |
2445 float a6bc; // [sp+A0h] [bp+18h]@140 | 2445 float a6bc; // [sp+A0h] [bp+18h]@140 |
2446 float a6bd; // [sp+A0h] [bp+18h]@140 | 2446 float a6bd; // [sp+A0h] [bp+18h]@140 |
2447 unsigned int a6l; // [sp+A0h] [bp+18h]@140 | 2447 unsigned int a6l; // [sp+A0h] [bp+18h]@140 |
2448 signed int a6m; // [sp+A0h] [bp+18h]@166 | 2448 //signed int a6m; // [sp+A0h] [bp+18h]@166 |
2449 float a6be; // [sp+A0h] [bp+18h]@168 | 2449 //float a6be; // [sp+A0h] [bp+18h]@168 |
2450 float a6bf; // [sp+A0h] [bp+18h]@168 | 2450 //float a6bf; // [sp+A0h] [bp+18h]@168 |
2451 unsigned int a6n; // [sp+A0h] [bp+18h]@168 | 2451 //unsigned int a6n; // [sp+A0h] [bp+18h]@168 |
2452 signed int a6o; // [sp+A0h] [bp+18h]@191 | 2452 //signed int a6o; // [sp+A0h] [bp+18h]@191 |
2453 float a6bg; // [sp+A0h] [bp+18h]@193 | 2453 //float a6bg; // [sp+A0h] [bp+18h]@193 |
2454 float a6bh; // [sp+A0h] [bp+18h]@193 | 2454 //float a6bh; // [sp+A0h] [bp+18h]@193 |
2455 unsigned int a6p; // [sp+A0h] [bp+18h]@193 | 2455 //unsigned int a6p; // [sp+A0h] [bp+18h]@193 |
2456 signed int a6q; // [sp+A0h] [bp+18h]@216 | 2456 //signed int a6q; // [sp+A0h] [bp+18h]@216 |
2457 float a6bi; // [sp+A0h] [bp+18h]@218 | 2457 float a6bi; // [sp+A0h] [bp+18h]@218 |
2458 float a6bj; // [sp+A0h] [bp+18h]@218 | 2458 float a6bj; // [sp+A0h] [bp+18h]@218 |
2459 unsigned int a6r; // [sp+A0h] [bp+18h]@218 | 2459 unsigned int a6r; // [sp+A0h] [bp+18h]@218 |
2460 int a9a; // [sp+ACh] [bp+24h]@8 | 2460 int a9a; // [sp+ACh] [bp+24h]@8 |
2461 int a9b; // [sp+ACh] [bp+24h]@33 | 2461 int a9b; // [sp+ACh] [bp+24h]@33 |
2463 int a9d; // [sp+ACh] [bp+24h]@111 | 2463 int a9d; // [sp+ACh] [bp+24h]@111 |
2464 int a9e; // [sp+ACh] [bp+24h]@164 | 2464 int a9e; // [sp+ACh] [bp+24h]@164 |
2465 int a9f; // [sp+ACh] [bp+24h]@189 | 2465 int a9f; // [sp+ACh] [bp+24h]@189 |
2466 int vxx; | 2466 int vxx; |
2467 | 2467 |
2468 v11 = 0; | 2468 //v11 = 0; |
2469 result = this->field_0.field_C; | 2469 result = this->field_0.field_C; |
2470 //v202 = this; | 2470 //v202 = this; |
2471 v230 = 0; | 2471 /*v230 = 0;*/ |
2472 if ( result != 8 ) | 2472 if ( result != 8 ) |
2473 { | 2473 { |
2474 if ( result != 16 ) | 2474 if ( result != 16 ) |
2475 { | 2475 { |
2476 if ( result != 32 ) | 2476 if ( result != 32 ) |
2478 result = this->field_20.field_C; | 2478 result = this->field_20.field_C; |
2479 if ( result != 8 ) | 2479 if ( result != 8 ) |
2480 { | 2480 { |
2481 if ( result != 16 ) | 2481 if ( result != 16 ) |
2482 { | 2482 { |
2483 if ( result != 32 || (result = (int)pDst, v193 = pDst, v231 = 0, dstHeight <= 0) ) | 2483 if ( result != 32) |
2484 return result; | 2484 return result; |
2485 v13 = dstWidth; | 2485 result = (int)pDst; |
2486 v193 = pDst; | |
2487 v231 = 0; | |
2488 if ( dstHeight <= 0 ) | |
2489 return result; | |
2490 //v13 = dstWidth; | |
2486 a9a = 4 * (dstPitch - dstWidth); | 2491 a9a = 4 * (dstPitch - dstWidth); |
2487 while ( 1 ) | 2492 while ( 1 ) |
2488 { | 2493 { |
2489 v14 = 0; | 2494 v14 = 0; |
2490 a6a = 0; | 2495 //a6a = 0; |
2491 if ( dstWidth > v11 ) | 2496 if ( dstWidth > 0 ) |
2492 break; | 2497 break; |
2493 LABEL_30: | 2498 LABEL_30: |
2494 v193 = (unsigned __int16 *)((char *)v193 + a9a); | 2499 v193 = (unsigned __int16 *)((char *)v193 + a9a); |
2495 ++v231; | 2500 ++v231; |
2496 result = v231; | 2501 result = v231; |
2497 if ( v231 >= dstHeight ) | 2502 if ( v231 >= dstHeight ) |
2498 return result; | 2503 return result; |
2499 v11 = 0; | 2504 //v11 = 0; |
2500 } | 2505 } |
2501 v221 = (double)dstWidth; | |
2502 v212 = (double)srcWidth; | |
2503 v15 = (double)dstHeight; | |
2504 v16 = (double)srcHeight; | |
2505 while ( 1 ) | 2506 while ( 1 ) |
2506 { | 2507 { |
2507 a6s = (double)a6a / v221 * v212; | 2508 a6s = (double)v14 / (double)dstWidth * (double)srcWidth; |
2508 v151 = floorf(a6s + 0.5f);//a6s + 6.7553994e15; | 2509 v151 = floorf(a6s + 0.5f);//a6s + 6.7553994e15; |
2509 v203 = v14 + 1; | 2510 //v203 = v14 + 1; |
2510 a6t = (double)(v14 + 1) / v221 * v212; | 2511 a6t = (double)(v14 + 1) / (double)dstWidth * (double)srcWidth; |
2511 v142 = floorf(a6t + 0.5f);//a6t + 6.7553994e15; | 2512 v142 = floorf(a6t + 0.5f);//a6t + 6.7553994e15; |
2512 v17 = (double)v231 / v15 * v16; | 2513 v17 = (double)v231 / (double)dstHeight * (double)srcHeight; |
2513 v133 = floorf(v17 + 0.5f);//v17 + 6.7553994e15; | 2514 v133 = floorf(v17 + 0.5f);//v17 + 6.7553994e15; |
2514 v18 = (double)(v231 + 1) / v15 * v16; | 2515 v18 = (double)(v231 + 1) / (double)dstHeight * (double)srcHeight; |
2515 v124 = floorf(v18 + 0.5f);//v18 + 6.7553994e15; | 2516 v124 = floorf(v18 + 0.5f);//v18 + 6.7553994e15; |
2516 v19 = (LODWORD(v124) - LODWORD(v133)) * (LODWORD(v142) - LODWORD(v151)); | 2517 v19 = (LODWORD(v124) - LODWORD(v133)) * (LODWORD(v142) - LODWORD(v151)); |
2517 v252 = 0; | 2518 v252 = 0; |
2518 a6b = 0; | 2519 a6b = 0; |
2519 v240 = 0i64; | 2520 v240 = 0i64; |
2528 HIDWORD(v240) /= v19; | 2529 HIDWORD(v240) /= v19; |
2529 } | 2530 } |
2530 if ( v22 != 255 ) | 2531 if ( v22 != 255 ) |
2531 v22 &= 0x7FFFFFFFu; | 2532 v22 &= 0x7FFFFFFFu; |
2532 v23 = _450F55(HIDWORD(v240) | ((v252 | ((a6b | (v22 << 8)) << 8)) << 8)); | 2533 v23 = _450F55(HIDWORD(v240) | ((v252 | ((a6b | (v22 << 8)) << 8)) << 8)); |
2533 v24 = v193; | 2534 *(_DWORD *)v193 = v23; |
2534 v193 += 2; | 2535 v193 += 2; |
2535 *(_DWORD *)v24 = v23; | 2536 //*(_DWORD *)v24 = v23; |
2536 v14 = v203; | 2537 ++v14; |
2537 a6a = v203; | 2538 //a6a = v203; |
2538 if ( v203 >= dstWidth ) | 2539 if ( v14 >= dstWidth ) |
2539 goto LABEL_30; | 2540 goto LABEL_30; |
2540 } | 2541 } |
2541 v160 = LODWORD(v124) - LODWORD(v133); | 2542 v160 = LODWORD(v124) - LODWORD(v133); |
2542 v175 = &pSrc[2 * (LODWORD(v151) + srcPitch * LODWORD(v133))]; | 2543 v175 = &pSrc[2 * (LODWORD(v151) + srcPitch * LODWORD(v133))]; |
2543 while ( SLODWORD(v151) >= SLODWORD(v142) ) | 2544 while ( SLODWORD(v151) >= SLODWORD(v142) ) |
2550 } | 2551 } |
2551 v176 = (int *)v175; | 2552 v176 = (int *)v175; |
2552 v161 = LODWORD(v142) - LODWORD(v151); | 2553 v161 = LODWORD(v142) - LODWORD(v151); |
2553 while ( 1 ) | 2554 while ( 1 ) |
2554 { | 2555 { |
2555 v20 = *v176; | 2556 //v20 = *v176; |
2556 if ( a10 ) | 2557 /*if ( a10 ) |
2557 { | 2558 { |
2558 v230 = 1; | 2559 v230 = 1; |
2559 v13 = v20 != a11 ? 0xFF : 0; | 2560 v13 = v20 != a11 ? 0xFF : 0; |
2560 } | 2561 }*/ |
2561 v21 = _450FB1(v20); | 2562 v21 = _450FB1(*v176); |
2562 if ( !v230 ) | 2563 /*if ( !v230 )*/ |
2563 break; | 2564 break; |
2564 LODWORD(v240) = v13 + v240; | 2565 /*LODWORD(v240) = dstWidth + v240; |
2565 v230 = 0; | 2566 /*v230 = 0; |
2566 if ( v13 ) | 2567 if ( dstWidth ) |
2567 goto LABEL_22; | 2568 goto LABEL_22; |
2568 --v19; | 2569 --v19;*/ |
2569 LABEL_23: | 2570 LABEL_23: |
2570 ++v176; | 2571 ++v176; |
2571 --v161; | 2572 --v161; |
2572 if ( !v161 ) | 2573 if ( !v161 ) |
2573 goto LABEL_24; | 2574 goto LABEL_24; |
2582 result = (int)pDst; | 2583 result = (int)pDst; |
2583 v194 = pDst; | 2584 v194 = pDst; |
2584 v232 = 0; | 2585 v232 = 0; |
2585 if ( dstHeight <= 0 ) | 2586 if ( dstHeight <= 0 ) |
2586 return result; | 2587 return result; |
2587 v25 = dstWidth; | 2588 //v25 = dstWidth; |
2588 a9b = 2 * (dstPitch - dstWidth); | 2589 a9b = 2 * (dstPitch - dstWidth); |
2589 while ( 1 ) | 2590 while ( 1 ) |
2590 { | 2591 { |
2591 v26 = 0; | 2592 v26 = 0; |
2592 a6c = 0; | 2593 //a6c = 0; |
2593 if ( dstWidth > v11 ) | 2594 if ( dstWidth > 0 ) |
2594 break; | 2595 break; |
2595 LABEL_55: | 2596 LABEL_55: |
2596 v194 = (unsigned __int16 *)((char *)v194 + a9b); | 2597 v194 = (unsigned __int16 *)((char *)v194 + a9b); |
2597 ++v232; | 2598 ++v232; |
2598 result = v232; | 2599 result = v232; |
2599 if ( v232 >= dstHeight ) | 2600 if ( v232 >= dstHeight ) |
2600 return result; | 2601 return result; |
2601 v11 = 0; | 2602 //v11 = 0; |
2602 } | 2603 } |
2603 v222 = (double)dstWidth; | |
2604 v213 = (double)srcWidth; | |
2605 v27 = (double)dstHeight; | |
2606 v28 = (double)srcHeight; | |
2607 while ( 1 ) | 2604 while ( 1 ) |
2608 { | 2605 { |
2609 a6u = (double)a6c / v222 * v213; | 2606 a6u = (double)v26 / (double)dstWidth * (double)srcWidth; |
2610 v125 = a6u + 6.7553994e15; | 2607 v125 = a6u + 6.7553994e15; |
2611 v204 = v26 + 1; | 2608 //v204 = v26 + 1; |
2612 a6v = (double)(v26 + 1) / v222 * v213; | 2609 a6v = (double)(v26 + 1) / (double)dstWidth * (double)srcWidth; |
2613 v134 = a6v + 6.7553994e15; | 2610 v134 = a6v + 6.7553994e15; |
2614 v29 = (double)v232 / v27 * v28; | 2611 v29 = (double)v232 / (double)dstHeight * (double)srcHeight; |
2615 v143 = v29 + 6.7553994e15; | 2612 v143 = v29 + 6.7553994e15; |
2616 v30 = (double)(v232 + 1) / v27 * v28; | 2613 v30 = (double)(v232 + 1) / (double)dstHeight * (double)srcHeight; |
2617 v152 = v30 + 6.7553994e15; | 2614 v152 = v30 + 6.7553994e15; |
2618 v31 = (LODWORD(v152) - LODWORD(v143)) * (LODWORD(v134) - LODWORD(v125)); | 2615 v31 = (LODWORD(v152) - LODWORD(v143)) * (LODWORD(v134) - LODWORD(v125)); |
2619 v253 = 0; | 2616 v253 = 0; |
2620 a6d = 0; | 2617 a6d = 0; |
2621 v241 = 0i64; | 2618 v241 = 0i64; |
2630 HIDWORD(v241) /= v31; | 2627 HIDWORD(v241) /= v31; |
2631 } | 2628 } |
2632 if ( v34 != 255 ) | 2629 if ( v34 != 255 ) |
2633 v34 &= 0x7FFFFFFFu; | 2630 v34 &= 0x7FFFFFFFu; |
2634 v35 = _450F55(HIDWORD(v241) | ((v253 | ((a6d | (v34 << 8)) << 8)) << 8)); | 2631 v35 = _450F55(HIDWORD(v241) | ((v253 | ((a6d | (v34 << 8)) << 8)) << 8)); |
2635 v36 = v194; | 2632 *v194 = v35; |
2636 ++v194; | 2633 ++v194; |
2637 *v36 = v35; | 2634 ++v26; |
2638 v26 = v204; | 2635 //a6c = v204; |
2639 a6c = v204; | 2636 if ( v26 >= dstWidth ) |
2640 if ( v204 >= dstWidth ) | |
2641 goto LABEL_55; | 2637 goto LABEL_55; |
2642 } | 2638 } |
2643 v170 = LODWORD(v152) - LODWORD(v143); | 2639 v170 = LODWORD(v152) - LODWORD(v143); |
2644 v185 = &pSrc[2 * (LODWORD(v125) + srcPitch * LODWORD(v143))]; | 2640 v185 = &pSrc[2 * (LODWORD(v125) + srcPitch * LODWORD(v143))]; |
2645 while ( SLODWORD(v125) >= SLODWORD(v134) ) | 2641 while ( SLODWORD(v125) >= SLODWORD(v134) ) |
2652 } | 2648 } |
2653 v177 = (int *)v185; | 2649 v177 = (int *)v185; |
2654 v162 = LODWORD(v134) - LODWORD(v125); | 2650 v162 = LODWORD(v134) - LODWORD(v125); |
2655 while ( 1 ) | 2651 while ( 1 ) |
2656 { | 2652 { |
2657 v32 = *v177; | 2653 //v32 = *v177; |
2658 if ( a10 ) | 2654 /*if ( a10 ) |
2659 { | 2655 { |
2660 v230 = 1; | 2656 v230 = 1; |
2661 v25 = v32 != a11 ? 0xFF : 0; | 2657 v25 = v32 != a11 ? 0xFF : 0; |
2662 } | 2658 }*/ |
2663 v33 = _450FB1(v32); | 2659 v33 = _450FB1(*v177); |
2664 if ( !v230 ) | 2660 /*if ( !v230 )*/ |
2665 break; | 2661 break; |
2666 LODWORD(v241) = v25 + v241; | 2662 /*LODWORD(v241) = v25 + v241; |
2667 v230 = 0; | 2663 / *v230 = 0;* / |
2668 if ( v25 ) | 2664 if ( dstWidth ) |
2669 goto LABEL_47; | 2665 goto LABEL_47; |
2670 --v31; | 2666 --v31;*/ |
2671 LABEL_48: | 2667 LABEL_48: |
2672 ++v177; | 2668 ++v177; |
2673 --v162; | 2669 --v162; |
2674 if ( !v162 ) | 2670 if ( !v162 ) |
2675 goto LABEL_49; | 2671 goto LABEL_49; |
2684 result = (int)pDst; | 2680 result = (int)pDst; |
2685 v195 = pDst; | 2681 v195 = pDst; |
2686 v233 = 0; | 2682 v233 = 0; |
2687 if ( dstHeight <= 0 ) | 2683 if ( dstHeight <= 0 ) |
2688 return result; | 2684 return result; |
2689 v37 = dstWidth; | 2685 //v37 = dstWidth; |
2690 while ( 1 ) | 2686 while ( 1 ) |
2691 { | 2687 { |
2692 v38 = 0; | 2688 v38 = 0; |
2693 a6e = 0; | 2689 //a6e = 0; |
2694 if ( dstWidth > v11 ) | 2690 if ( dstWidth > 0 ) |
2695 break; | 2691 break; |
2696 LABEL_80: | 2692 LABEL_80: |
2697 v195 = (unsigned __int16 *)((char *)v195 + dstPitch - dstWidth); | 2693 v195 = (unsigned __int16 *)((char *)v195 + dstPitch - dstWidth); |
2698 ++v233; | 2694 ++v233; |
2699 result = v233; | 2695 result = v233; |
2700 if ( v233 >= dstHeight ) | 2696 if ( v233 >= dstHeight ) |
2701 return result; | 2697 return result; |
2702 v11 = 0; | 2698 //v11 = 0; |
2703 } | 2699 } |
2704 v223 = (double)dstWidth; | |
2705 v214 = (double)srcWidth; | |
2706 v39 = (double)dstHeight; | |
2707 v40 = (double)srcHeight; | |
2708 while ( 1 ) | 2700 while ( 1 ) |
2709 { | 2701 { |
2710 a6w = (double)a6e / v223 * v214; | 2702 a6w = (double)v38 / (double)dstWidth * (double)srcWidth; |
2711 v126 = a6w + 6.7553994e15; | 2703 v126 = a6w + 6.7553994e15; |
2712 v205 = v38 + 1; | 2704 //v205 = v38 + 1; |
2713 a6x = (double)(v38 + 1) / v223 * v214; | 2705 a6x = (double)(v38 + 1) / (double)dstWidth * (double)srcWidth; |
2714 v135 = a6x + 6.7553994e15; | 2706 v135 = a6x + 6.7553994e15; |
2715 v41 = (double)v233 / v39 * v40; | 2707 v41 = (double)v233 / (double)dstHeight * (double)srcHeight; |
2716 v144 = v41 + 6.7553994e15; | 2708 v144 = v41 + 6.7553994e15; |
2717 v42 = (double)(v233 + 1) / v39 * v40; | 2709 v42 = (double)(v233 + 1) / (double)dstHeight * (double)srcHeight; |
2718 v153 = v42 + 6.7553994e15; | 2710 v153 = v42 + 6.7553994e15; |
2719 v43 = (LODWORD(v153) - LODWORD(v144)) * (LODWORD(v135) - LODWORD(v126)); | 2711 v43 = (LODWORD(v153) - LODWORD(v144)) * (LODWORD(v135) - LODWORD(v126)); |
2720 v254 = 0; | 2712 v254 = 0; |
2721 a6f = 0; | 2713 a6f = 0; |
2722 v242 = 0i64; | 2714 v242 = 0i64; |
2731 HIDWORD(v242) /= v43; | 2723 HIDWORD(v242) /= v43; |
2732 } | 2724 } |
2733 if ( v46 != 255 ) | 2725 if ( v46 != 255 ) |
2734 v46 &= 0x7FFFFFFFu; | 2726 v46 &= 0x7FFFFFFFu; |
2735 v47 = _450F55(HIDWORD(v242) | ((v254 | ((a6f | (v46 << 8)) << 8)) << 8)); | 2727 v47 = _450F55(HIDWORD(v242) | ((v254 | ((a6f | (v46 << 8)) << 8)) << 8)); |
2736 v48 = v195; | 2728 *v195 = v47; |
2737 v195 = (unsigned __int16 *)((char *)v195 + 1); | 2729 v195 = (unsigned __int16 *)((char *)v195 + 1); |
2738 *(_BYTE *)v48 = v47; | 2730 ++v38; |
2739 v38 = v205; | 2731 //a6e = v205; |
2740 a6e = v205; | 2732 if ( v38 >= dstWidth ) |
2741 if ( v205 >= dstWidth ) | |
2742 goto LABEL_80; | 2733 goto LABEL_80; |
2743 } | 2734 } |
2744 v171 = LODWORD(v153) - LODWORD(v144); | 2735 v171 = LODWORD(v153) - LODWORD(v144); |
2745 v186 = &pSrc[2 * (LODWORD(v126) + srcPitch * LODWORD(v144))]; | 2736 v186 = &pSrc[2 * (LODWORD(v126) + srcPitch * LODWORD(v144))]; |
2746 while ( SLODWORD(v126) >= SLODWORD(v135) ) | 2737 while ( SLODWORD(v126) >= SLODWORD(v135) ) |
2753 } | 2744 } |
2754 v178 = (int *)v186; | 2745 v178 = (int *)v186; |
2755 v163 = LODWORD(v135) - LODWORD(v126); | 2746 v163 = LODWORD(v135) - LODWORD(v126); |
2756 while ( 1 ) | 2747 while ( 1 ) |
2757 { | 2748 { |
2758 v44 = *v178; | 2749 //v44 = *v178; |
2759 if ( a10 ) | 2750 /*if ( a10 ) |
2760 { | 2751 { |
2761 v230 = 1; | 2752 v230 = 1; |
2762 v37 = v44 != a11 ? 0xFF : 0; | 2753 v37 = v44 != a11 ? 0xFF : 0; |
2763 } | 2754 }*/ |
2764 v45 = _450FB1(v44); | 2755 v45 = _450FB1(*v178); |
2765 if ( !v230 ) | 2756 /*if ( !v230 )*/ |
2766 break; | 2757 break; |
2767 LODWORD(v242) = v37 + v242; | 2758 /*LODWORD(v242) = v37 + v242; |
2768 v230 = 0; | 2759 / *v230 = 0;* / |
2769 if ( v37 ) | 2760 if ( dstWidth ) |
2770 goto LABEL_72; | 2761 goto LABEL_72; |
2771 --v43; | 2762 --v43;*/ |
2772 LABEL_73: | 2763 LABEL_73: |
2773 ++v178; | 2764 ++v178; |
2774 --v163; | 2765 --v163; |
2775 if ( !v163 ) | 2766 if ( !v163 ) |
2776 goto LABEL_74; | 2767 goto LABEL_74; |
2785 result = this->field_20.field_C; | 2776 result = this->field_20.field_C; |
2786 if ( result != 8 ) | 2777 if ( result != 8 ) |
2787 { | 2778 { |
2788 if ( result != 16 ) | 2779 if ( result != 16 ) |
2789 { | 2780 { |
2790 if ( result != 32 || (result = (int)pDst, v196 = pDst, v234 = 0, dstHeight <= 0) ) | 2781 if ( result != 32) |
2791 return result; | 2782 return result; |
2792 v49 = dstWidth; | 2783 result = (int)pDst; |
2784 v196 = pDst; | |
2785 v234 = 0; | |
2786 if ( dstHeight <= 0 ) | |
2787 return result; | |
2788 //v49 = dstWidth; | |
2793 a9c = 4 * (dstPitch - dstWidth); | 2789 a9c = 4 * (dstPitch - dstWidth); |
2794 while ( 1 ) | 2790 while ( 1 ) |
2795 { | 2791 { |
2796 v50 = 0; | 2792 v50 = 0; |
2797 a6g = 0; | 2793 //a6g = 0; |
2798 if ( dstWidth > v11 ) | 2794 if ( dstWidth > 0 ) |
2799 break; | 2795 break; |
2800 LABEL_108: | 2796 LABEL_108: |
2801 v196 = (unsigned __int16 *)((char *)v196 + a9c); | 2797 v196 = (unsigned __int16 *)((char *)v196 + a9c); |
2802 ++v234; | 2798 ++v234; |
2803 result = v234; | 2799 result = v234; |
2804 if ( v234 >= dstHeight ) | 2800 if ( v234 >= dstHeight ) |
2805 return result; | 2801 return result; |
2806 v11 = 0; | 2802 //v11 = 0; |
2807 } | 2803 } |
2808 v224 = (double)dstWidth; | |
2809 v215 = (double)srcWidth; | |
2810 v51 = (double)dstHeight; | |
2811 v52 = (double)srcHeight; | |
2812 while ( 1 ) | 2804 while ( 1 ) |
2813 { | 2805 { |
2814 a6y = (double)a6g / v224 * v215; | 2806 a6y = (double)v50 / (double)dstWidth * (double)srcWidth; |
2815 v127 = a6y + 6.7553994e15; | 2807 v127 = a6y + 6.7553994e15; |
2816 v206 = v50 + 1; | 2808 //v206 = v50 + 1; |
2817 a6z = (double)(v50 + 1) / v224 * v215; | 2809 a6z = (double)(v50 + 1) / (double)dstWidth * (double)srcWidth; |
2818 v136 = a6z + 6.7553994e15; | 2810 v136 = a6z + 6.7553994e15; |
2819 v53 = (double)v234 / v51 * v52; | 2811 v53 = (double)v234 / (double)dstHeight * (double)srcHeight; |
2820 v145 = v53 + 6.7553994e15; | 2812 v145 = v53 + 6.7553994e15; |
2821 v54 = (double)(v234 + 1) / v51 * v52; | 2813 v54 = (double)(v234 + 1) / (double)dstHeight * (double)srcHeight; |
2822 v154 = v54 + 6.7553994e15; | 2814 v154 = v54 + 6.7553994e15; |
2823 v55 = (LODWORD(v154) - LODWORD(v145)) * (LODWORD(v136) - LODWORD(v127)); | 2815 v55 = (LODWORD(v154) - LODWORD(v145)) * (LODWORD(v136) - LODWORD(v127)); |
2824 v255 = 0; | 2816 v255 = 0; |
2825 a6h = 0; | 2817 a6h = 0; |
2826 v243 = 0i64; | 2818 v243 = 0i64; |
2835 HIDWORD(v243) /= v55; | 2827 HIDWORD(v243) /= v55; |
2836 } | 2828 } |
2837 if ( v58 != 255 ) | 2829 if ( v58 != 255 ) |
2838 v58 &= 0x7FFFFFFFu; | 2830 v58 &= 0x7FFFFFFFu; |
2839 v59 = _450F55(HIDWORD(v243) | ((v255 | ((a6h | (v58 << 8)) << 8)) << 8)); | 2831 v59 = _450F55(HIDWORD(v243) | ((v255 | ((a6h | (v58 << 8)) << 8)) << 8)); |
2840 v60 = v196; | 2832 *(_DWORD *)v196 = v59; |
2841 v196 += 2; | 2833 v196 += 2; |
2842 *(_DWORD *)v60 = v59; | 2834 //*(_DWORD *)v60 = v59; |
2843 v50 = v206; | 2835 ++v50; |
2844 a6g = v206; | 2836 //a6g = v206; |
2845 if ( v206 >= dstWidth ) | 2837 if ( v50 >= dstWidth ) |
2846 goto LABEL_108; | 2838 goto LABEL_108; |
2847 } | 2839 } |
2848 v172 = LODWORD(v154) - LODWORD(v145); | 2840 v172 = LODWORD(v154) - LODWORD(v145); |
2849 v187 = &pSrc[LODWORD(v127) + srcPitch * LODWORD(v145)]; | 2841 v187 = &pSrc[LODWORD(v127) + srcPitch * LODWORD(v145)]; |
2850 while ( SLODWORD(v127) >= SLODWORD(v136) ) | 2842 while ( SLODWORD(v127) >= SLODWORD(v136) ) |
2857 } | 2849 } |
2858 v179 = (int *)v187; | 2850 v179 = (int *)v187; |
2859 v164 = LODWORD(v136) - LODWORD(v127); | 2851 v164 = LODWORD(v136) - LODWORD(v127); |
2860 while ( 1 ) | 2852 while ( 1 ) |
2861 { | 2853 { |
2862 v56 = *(_WORD *)v179; | 2854 //v56 = *(_WORD *)v179; |
2863 if ( a10 ) | 2855 /*if ( a10 ) |
2864 { | 2856 { |
2865 v230 = 1; | 2857 v230 = 1; |
2866 v49 = v56 != a11 ? 0xFF : 0; | 2858 v49 = v56 != a11 ? 0xFF : 0; |
2867 } | 2859 }*/ |
2868 v57 = _450FB1(v56); | 2860 v57 = _450FB1(*(_WORD *)v179); |
2869 if ( !v230 ) | 2861 /* if ( !v230 )*/ |
2870 break; | 2862 break; |
2871 LODWORD(v243) = v49 + v243; | 2863 /*LODWORD(v243) = v49 + v243; |
2872 v230 = 0; | 2864 / *v230 = 0;* / |
2873 if ( v49 ) | 2865 if ( dstWidth ) |
2874 goto LABEL_100; | 2866 goto LABEL_100; |
2875 --v55; | 2867 --v55;*/ |
2876 LABEL_101: | 2868 LABEL_101: |
2877 v179 = (int *)((char *)v179 + 2); | 2869 v179 = (int *)((char *)v179 + 2); |
2878 --v164; | 2870 --v164; |
2879 if ( !v164 ) | 2871 if ( !v164 ) |
2880 goto LABEL_102; | 2872 goto LABEL_102; |
2889 result = (int)pDst; | 2881 result = (int)pDst; |
2890 v197 = pDst; | 2882 v197 = pDst; |
2891 v235 = 0; | 2883 v235 = 0; |
2892 if ( dstHeight <= 0 ) | 2884 if ( dstHeight <= 0 ) |
2893 return result; | 2885 return result; |
2894 v61 = dstWidth; | 2886 //v61 = dstWidth; |
2895 a9d = 2 * (dstPitch - dstWidth); | 2887 a9d = 2 * (dstPitch - dstWidth); |
2896 while ( 1 ) | 2888 while ( 1 ) |
2897 { | 2889 { |
2898 v62 = 0; | 2890 v62 = 0; |
2899 a6i = 0; | 2891 //a6i = 0; |
2900 if ( dstWidth > v11 ) | 2892 if ( dstWidth > 0 ) |
2901 break; | 2893 break; |
2902 LABEL_133: | 2894 LABEL_133: |
2903 v197 = (unsigned __int16 *)((char *)v197 + a9d); | 2895 v197 = (unsigned __int16 *)((char *)v197 + a9d); |
2904 ++v235; | 2896 ++v235; |
2905 result = v235; | 2897 result = v235; |
2906 if ( v235 >= dstHeight ) | 2898 if ( v235 >= dstHeight ) |
2907 return result; | 2899 return result; |
2908 v11 = 0; | 2900 //v11 = 0; |
2909 } | 2901 } |
2910 v225 = (double)dstWidth; | |
2911 v216 = (double)srcWidth; | |
2912 v63 = (double)dstHeight; | |
2913 v64 = (double)srcHeight; | |
2914 while ( 1 ) | 2902 while ( 1 ) |
2915 { | 2903 { |
2916 a6ba = (double)a6i / v225 * v216; | 2904 a6ba = (double)v62 / (double)dstWidth * (double)srcWidth; |
2917 _v128 = ceilf(a6ba - 0.5f); | 2905 _v128 = ceilf(a6ba - 0.5f); |
2918 //v128 = a6ba + 6.7553994e15; | 2906 //v128 = a6ba + 6.7553994e15; |
2919 v207 = v62 + 1; | 2907 //v207 = v62 + 1; |
2920 a6bb = (double)(v62 + 1) / v225 * v216; | 2908 a6bb = (double)(v62 + 1) / (double)dstWidth * (double)srcWidth; |
2921 //v137 = a6bb + 6.7553994e15; | 2909 //v137 = a6bb + 6.7553994e15; |
2922 _v137 = ceilf(a6bb - 0.5f); | 2910 _v137 = ceilf(a6bb - 0.5f); |
2923 v65 = (double)v235 / v63 * v64; | 2911 v65 = (double)v235 / (double)dstHeight * (double)srcHeight; |
2924 //v146 = v65 + 6.7553994e15; | 2912 //v146 = v65 + 6.7553994e15; |
2925 _v146 = ceilf(v65 - 0.5f); | 2913 _v146 = ceilf(v65 - 0.5f); |
2926 v66 = (double)(v235 + 1) / v63 * v64; | 2914 v66 = (double)(v235 + 1) / (double)dstHeight * (double)srcHeight; |
2927 //v155 = v66 + 6.7553994e15; | 2915 //v155 = v66 + 6.7553994e15; |
2928 _v155 = ceilf(v66 - 0.5f); | 2916 _v155 = ceilf(v66 - 0.5f); |
2929 v67 = (_v155 - _v146) * (_v137 - _v128); | 2917 v67 = (_v155 - _v146) * (_v137 - _v128); |
2930 v256 = 0; | 2918 v256 = 0; |
2931 a6j = 0; | 2919 a6j = 0; |
2945 if ( v70 != 255 ) | 2933 if ( v70 != 255 ) |
2946 v70 &= 0x7FFFFFFFu; | 2934 v70 &= 0x7FFFFFFFu; |
2947 v71 = _450F55(HIDWORD(v244) | ((v256 | ((a6j | (v70 << 8)) << 8)) << 8)); | 2935 v71 = _450F55(HIDWORD(v244) | ((v256 | ((a6j | (v70 << 8)) << 8)) << 8)); |
2948 *v197 = v71; | 2936 *v197 = v71; |
2949 ++v197; | 2937 ++v197; |
2950 v62 = v207; | 2938 ++v62; |
2951 a6i = v207; | 2939 //a6i = v207; |
2952 if ( v207 >= dstWidth ) | 2940 if ( v62 >= dstWidth ) |
2953 goto LABEL_133; | 2941 goto LABEL_133; |
2954 } | 2942 } |
2955 //v173 = LODWORD(v155) - LODWORD(v146); | 2943 //v173 = LODWORD(v155) - LODWORD(v146); |
2956 v173 = _v155 - _v146; | 2944 v173 = _v155 - _v146; |
2957 //v188 = &pSrc[LODWORD(v128) + srcPitch * LODWORD(v146)]; | 2945 //v188 = &pSrc[LODWORD(v128) + srcPitch * LODWORD(v146)]; |
2969 //v165 = LODWORD(v137) - LODWORD(v128); | 2957 //v165 = LODWORD(v137) - LODWORD(v128); |
2970 v165 = _v137 - _v128; | 2958 v165 = _v137 - _v128; |
2971 while ( 1 ) | 2959 while ( 1 ) |
2972 { | 2960 { |
2973 v68 = *(_WORD *)v180; | 2961 v68 = *(_WORD *)v180; |
2974 if ( a10 ) | 2962 /*if ( a10 ) |
2975 { | 2963 { |
2976 v230 = 1; | 2964 v230 = 1; |
2977 v61 = v68 != a11 ? 0xFF : 0; | 2965 v61 = v68 != a11 ? 0xFF : 0; |
2978 } | 2966 }*/ |
2979 v69 = _450FB1(v68); | 2967 v69 = _450FB1(v68); |
2980 if ( !v230 ) | 2968 //if ( !v230 ) |
2981 break; | 2969 break; |
2982 LODWORD(v244) = v61 + v244; | 2970 // LODWORD(v244) = v61 + v244; |
2983 v230 = 0; | 2971 // /*v230 = 0;*/ |
2984 if ( v61 ) | 2972 // if ( dstWidth ) |
2985 goto LABEL_125; | 2973 // goto LABEL_125; |
2986 --v67; | 2974 // --v67; |
2987 LABEL_126: | 2975 LABEL_126: |
2988 v180 = (int *)((char *)v180 + 2); | 2976 v180 = (int *)((char *)v180 + 2); |
2989 --v165; | 2977 --v165; |
2990 if ( !v165 ) | 2978 if ( !v165 ) |
2991 goto LABEL_127; | 2979 goto LABEL_127; |
3000 result = (int)pDst; | 2988 result = (int)pDst; |
3001 v198 = pDst; | 2989 v198 = pDst; |
3002 v236 = 0; | 2990 v236 = 0; |
3003 if ( dstHeight <= 0 ) | 2991 if ( dstHeight <= 0 ) |
3004 return result; | 2992 return result; |
3005 v73 = dstWidth; | 2993 //v73 = dstWidth; |
3006 while ( 1 ) | 2994 while ( 1 ) |
3007 { | 2995 { |
3008 v74 = 0; | 2996 v74 = 0; |
3009 a6k = 0; | 2997 //a6k = 0; |
3010 if ( dstWidth > v11 ) | 2998 if ( dstWidth > 0 ) |
3011 break; | 2999 break; |
3012 LABEL_158: | 3000 LABEL_158: |
3013 v198 = (unsigned __int16 *)((char *)v198 + dstPitch - dstWidth); | 3001 v198 = (unsigned __int16 *)((char *)v198 + dstPitch - dstWidth); |
3014 ++v236; | 3002 ++v236; |
3015 result = v236; | 3003 result = v236; |
3016 if ( v236 >= dstHeight ) | 3004 if ( v236 >= dstHeight ) |
3017 return result; | 3005 return result; |
3018 v11 = 0; | 3006 //v11 = 0; |
3019 } | 3007 } |
3020 v226 = (double)dstWidth; | |
3021 v217 = (double)srcWidth; | |
3022 v75 = (double)dstHeight; | |
3023 v76 = (double)srcHeight; | |
3024 while ( 1 ) | 3008 while ( 1 ) |
3025 { | 3009 { |
3026 a6bc = (double)a6k / v226 * v217; | 3010 a6bc = (double)v74 / (double)dstWidth * (double)srcWidth; |
3027 v129 = a6bc + 6.7553994e15; | 3011 v129 = a6bc + 6.7553994e15; |
3028 v208 = v74 + 1; | 3012 //v208 = v74 + 1; |
3029 a6bd = (double)(v74 + 1) / v226 * v217; | 3013 a6bd = (double)(v74 + 1) / (double)dstWidth * (double)srcWidth; |
3030 v138 = a6bd + 6.7553994e15; | 3014 v138 = a6bd + 6.7553994e15; |
3031 v77 = (double)v236 / v75 * v76; | 3015 v77 = (double)v236 / (double)dstHeight * (double)srcHeight; |
3032 v147 = v77 + 6.7553994e15; | 3016 v147 = v77 + 6.7553994e15; |
3033 v78 = (double)(v236 + 1) / v75 * v76; | 3017 v78 = (double)(v236 + 1) / (double)dstHeight * (double)srcHeight; |
3034 v156 = v78 + 6.7553994e15; | 3018 v156 = v78 + 6.7553994e15; |
3035 v257 = 0; | 3019 v257 = 0; |
3036 v79 = (LODWORD(v156) - LODWORD(v147)) * (LODWORD(v138) - LODWORD(v129)); | 3020 v79 = (LODWORD(v156) - LODWORD(v147)) * (LODWORD(v138) - LODWORD(v129)); |
3037 a6l = 0; | 3021 a6l = 0; |
3038 v245 = 0i64; | 3022 v245 = 0i64; |
3049 if ( v82 != 255 ) | 3033 if ( v82 != 255 ) |
3050 v82 &= 0x7FFFFFFFu; | 3034 v82 &= 0x7FFFFFFFu; |
3051 v83 = _450F55(HIDWORD(v245) | ((v257 | ((a6l | (v82 << 8)) << 8)) << 8)); | 3035 v83 = _450F55(HIDWORD(v245) | ((v257 | ((a6l | (v82 << 8)) << 8)) << 8)); |
3052 *v198 = v83; | 3036 *v198 = v83; |
3053 v198 = (unsigned __int16 *)((char *)v198 + 1); | 3037 v198 = (unsigned __int16 *)((char *)v198 + 1); |
3054 v74 = v208; | 3038 ++v74; |
3055 a6k = v208; | 3039 //a6k = v208; |
3056 if ( v208 >= dstWidth ) | 3040 if ( v74 >= dstWidth ) |
3057 goto LABEL_158; | 3041 goto LABEL_158; |
3058 } | 3042 } |
3059 v174 = LODWORD(v156) - LODWORD(v147); | 3043 v174 = LODWORD(v156) - LODWORD(v147); |
3060 v189 = &pSrc[LODWORD(v129) + srcPitch * LODWORD(v147)]; | 3044 v189 = &pSrc[LODWORD(v129) + srcPitch * LODWORD(v147)]; |
3061 while ( SLODWORD(v129) >= SLODWORD(v138) ) | 3045 while ( SLODWORD(v129) >= SLODWORD(v138) ) |
3068 } | 3052 } |
3069 v166 = LODWORD(v138) - LODWORD(v129); | 3053 v166 = LODWORD(v138) - LODWORD(v129); |
3070 v181 = (int *)v189; | 3054 v181 = (int *)v189; |
3071 while ( 1 ) | 3055 while ( 1 ) |
3072 { | 3056 { |
3073 v80 = *(_WORD *)v181; | 3057 //v80 = *(_WORD *)v181; |
3074 if ( a10 ) | 3058 /*if ( a10 ) |
3075 { | 3059 { |
3076 v230 = 1; | 3060 v230 = 1; |
3077 v73 = v80 != a11 ? 0xFF : 0; | 3061 v73 = v80 != a11 ? 0xFF : 0; |
3078 } | 3062 }*/ |
3079 v81 = _450FB1(v80); | 3063 v81 = _450FB1(*(_WORD *)v181); |
3080 if ( !v230 ) | 3064 //if ( !v230 ) |
3081 break; | 3065 break; |
3082 LODWORD(v245) = v73 + v245; | 3066 /*LODWORD(v245) = v73 + v245; |
3083 v230 = 0; | 3067 v230 = 0; |
3084 if ( v73 ) | 3068 if ( dstWidth ) |
3085 goto LABEL_150; | 3069 goto LABEL_150; |
3086 --v79; | 3070 --v79;*/ |
3087 LABEL_151: | 3071 LABEL_151: |
3088 v181 = (int *)((char *)v181 + 2); | 3072 v181 = (int *)((char *)v181 + 2); |
3089 --v166; | 3073 --v166; |
3090 if ( !v166 ) | 3074 if ( !v166 ) |
3091 goto LABEL_152; | 3075 goto LABEL_152; |
3115 result = (int)pDst; | 3099 result = (int)pDst; |
3116 v201 = pDst; | 3100 v201 = pDst; |
3117 v239 = 0; | 3101 v239 = 0; |
3118 if ( dstHeight <= 0 ) | 3102 if ( dstHeight <= 0 ) |
3119 return result; | 3103 return result; |
3120 v111 = dstWidth; | 3104 //v111 = dstWidth; |
3121 while ( 1 ) | 3105 while ( 1 ) |
3122 { | 3106 { |
3123 v112 = 0; | 3107 v112 = 0; |
3124 a6q = 0; | 3108 //a6q = 0; |
3125 if ( dstWidth <= v11 ) | 3109 if ( dstWidth <= 0 ) |
3126 goto LABEL_236; | 3110 goto LABEL_236; |
3127 v229 = (double)dstWidth; | |
3128 v220 = (double)srcWidth; | |
3129 v113 = (double)dstHeight; | |
3130 v114 = (double)srcHeight; | |
3131 do | 3111 do |
3132 { | 3112 { |
3133 a6bi = (double)a6q / v229 * v220; | 3113 a6bi = (double)v112 / (double)dstWidth * (double)srcWidth; |
3134 v132 = a6bi + 6.7553994e15; | 3114 v132 = a6bi + 6.7553994e15; |
3135 v211 = v112 + 1; | 3115 //v211 = v112 + 1; |
3136 a6bj = (double)(v112 + 1) / v229 * v220; | 3116 a6bj = (double)(v112 + 1) / (double)dstWidth * (double)srcWidth; |
3137 v141 = a6bj + 6.7553994e15; | 3117 v141 = a6bj + 6.7553994e15; |
3138 v115 = (double)v239 / v113 * v114; | 3118 v115 = (double)v239 / (double)dstHeight * (double)srcHeight; |
3139 v150 = v115 + 6.7553994e15; | 3119 v150 = v115 + 6.7553994e15; |
3140 v116 = (double)(v239 + 1) / v113 * v114; | 3120 v116 = (double)(v239 + 1) / (double)dstHeight * (double)srcHeight; |
3141 v159 = v116 + 6.7553994e15; | 3121 v159 = v116 + 6.7553994e15; |
3142 v251 = 0; | 3122 v251 = 0; |
3143 v117 = (LODWORD(v159) - LODWORD(v150)) * (LODWORD(v141) - LODWORD(v132)); | 3123 v117 = (LODWORD(v159) - LODWORD(v150)) * (LODWORD(v141) - LODWORD(v132)); |
3144 v260 = 0; | 3124 v260 = 0; |
3145 a6r = 0; | 3125 a6r = 0; |
3152 { | 3132 { |
3153 v118 = LODWORD(v132); | 3133 v118 = LODWORD(v132); |
3154 while ( v118 < SLODWORD(v141) ) | 3134 while ( v118 < SLODWORD(v141) ) |
3155 { | 3135 { |
3156 v119 = (unsigned __int8)v184[v118]; | 3136 v119 = (unsigned __int8)v184[v118]; |
3157 if ( a10 ) | 3137 /*if ( a10 ) |
3158 { | 3138 { |
3159 v230 = 1; | 3139 v230 = 1; |
3160 v111 = v119 != a11 ? 0xFF : 0; | 3140 v111 = v119 != a11 ? 0xFF : 0; |
3161 } | 3141 }*/ |
3162 v120 = _450FB1(v119); | 3142 v120 = _450FB1(v119); |
3143 /* | |
3163 if ( v230 ) | 3144 if ( v230 ) |
3164 { | 3145 { |
3165 v248 += v111; | 3146 v248 += v111; |
3166 v230 = 0; | 3147 / *v230 = 0;* / |
3167 if ( !v111 ) | 3148 if ( !v111 ) |
3168 { | 3149 { |
3169 --v117; | 3150 --v117; |
3170 goto LABEL_228; | 3151 goto LABEL_228; |
3171 } | 3152 } |
3172 } | 3153 } |
3173 else | 3154 else |
3174 { | 3155 {*/ |
3175 v248 += (unsigned int)v120 >> 24; | 3156 v248 += (unsigned int)v120 >> 24; |
3176 } | 3157 /*}*/ |
3177 a6r += BYTE2(v120); | 3158 a6r += BYTE2(v120); |
3178 v260 += BYTE1(v120); | 3159 v260 += BYTE1(v120); |
3179 v251 += (unsigned __int8)v120; | 3160 v251 += (unsigned __int8)v120; |
3180 LABEL_228: | 3161 LABEL_228: |
3181 ++v118; | 3162 ++v118; |
3195 if ( v121 != 255 ) | 3176 if ( v121 != 255 ) |
3196 v121 &= 0x7FFFFFFFu; | 3177 v121 &= 0x7FFFFFFFu; |
3197 v122 = _450F55(v251 | ((v260 | ((a6r | (v121 << 8)) << 8)) << 8)); | 3178 v122 = _450F55(v251 | ((v260 | ((a6r | (v121 << 8)) << 8)) << 8)); |
3198 *v201 = v122; | 3179 *v201 = v122; |
3199 v201 = (unsigned __int16 *)((char *)v201 + 1); | 3180 v201 = (unsigned __int16 *)((char *)v201 + 1); |
3200 v112 = v211; | 3181 ++v112; |
3201 a6q = v211; | 3182 //a6q = v211; |
3202 } | 3183 } |
3203 while ( v211 < dstWidth ); | 3184 while ( v112 < dstWidth ); |
3204 LABEL_236: | 3185 LABEL_236: |
3205 v201 = (unsigned __int16 *)((char *)v201 + vxx); | 3186 v201 = (unsigned __int16 *)((char *)v201 + vxx); |
3206 ++v239; | 3187 ++v239; |
3207 result = v239; | 3188 result = v239; |
3208 if ( v239 >= dstHeight ) | 3189 if ( v239 >= dstHeight ) |
3209 return result; | 3190 return result; |
3210 v11 = 0; | 3191 //v11 = 0; |
3211 } | 3192 } |
3212 } | 3193 } |
3213 } | 3194 } |
3214 | 3195 |
3215 //----- (0044E1EC) -------------------------------------------------------- | 3196 //----- (0044E1EC) -------------------------------------------------------- |