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