Mercurial > mm7
changeset 1123:8a965c8faf05
sub_451007_scale_image_bicubic cleanup - removing some duplicate variables
author | Grumpy7 |
---|---|
date | Fri, 31 May 2013 00:38:25 +0200 |
parents | 6a4d654ef9fb |
children | dd1cb6a2dba6 |
files | mm7_2.cpp |
diffstat | 1 files changed, 13 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/mm7_2.cpp Wed May 29 03:21:19 2013 +0200 +++ b/mm7_2.cpp Fri May 31 00:38:25 2013 +0200 @@ -2913,19 +2913,18 @@ while ( 1 ) { a6ba = (double)a6i / v225 * v216; - _v128 = floorf(a6ba + 0.5f); + _v128 = ceilf(a6ba - 0.5f); //v128 = a6ba + 6.7553994e15; v207 = v62 + 1; a6bb = (double)(v62 + 1) / v225 * v216; //v137 = a6bb + 6.7553994e15; - _v137 = floorf(a6bb + 0.5f); + _v137 = ceilf(a6bb - 0.5f); v65 = (double)v235 / v63 * v64; //v146 = v65 + 6.7553994e15; - _v146 = floorf(v65 + 0.5f); + _v146 = ceilf(v65 - 0.5f); v66 = (double)(v235 + 1) / v63 * v64; //v155 = v66 + 6.7553994e15; - _v155 = floorf(v66 + 0.5f); - //v67 = (LODWORD(v155) - LODWORD(v146)) * (LODWORD(v137) - LODWORD(v128)); + _v155 = ceilf(v66 - 0.5f); v67 = (_v155 - _v146) * (_v137 - _v128); v256 = 0; a6j = 0; @@ -2945,9 +2944,8 @@ if ( v70 != 255 ) v70 &= 0x7FFFFFFFu; v71 = _450F55(HIDWORD(v244) | ((v256 | ((a6j | (v70 << 8)) << 8)) << 8)); - v72 = v197; + *v197 = v71; ++v197; - *v72 = v71; v62 = v207; a6i = v207; if ( v207 >= dstWidth ) @@ -3050,9 +3048,8 @@ if ( v82 != 255 ) v82 &= 0x7FFFFFFFu; v83 = _450F55(HIDWORD(v245) | ((v257 | ((a6l | (v82 << 8)) << 8)) << 8)); - v84 = v198; + *v198 = v83; v198 = (unsigned __int16 *)((char *)v198 + 1); - *(_BYTE *)v84 = v83; v74 = v208; a6k = v208; if ( v208 >= dstWidth ) @@ -3141,10 +3138,9 @@ do { v118 = LODWORD(v132); - v192 = LODWORD(v132); while ( v118 < SLODWORD(v141) ) { - v119 = (unsigned __int8)v184[v192]; + v119 = (unsigned __int8)v184[v118]; if ( a10 ) { v230 = 1; @@ -3169,8 +3165,7 @@ v260 += BYTE1(v120); v251 += (unsigned __int8)v120; LABEL_228: - ++v192; - v118 = v192; + ++v118; } v184 += srcPitch; --v169; @@ -3187,9 +3182,8 @@ if ( v121 != 255 ) v121 &= 0x7FFFFFFFu; v122 = _450F55(v251 | ((v260 | ((a6r | (v121 << 8)) << 8)) << 8)); - v123 = v201; + *v201 = v122; v201 = (unsigned __int16 *)((char *)v201 + 1); - *(_BYTE *)v123 = v122; v112 = v211; a6q = v211; } @@ -3245,10 +3239,9 @@ do { v105 = LODWORD(v131); - v191 = LODWORD(v131); while ( v105 < SLODWORD(v140) ) { - v106 = (unsigned __int8)v183[v191]; + v106 = (unsigned __int8)v183[v105]; if ( a10 ) { v230 = 1; @@ -3273,8 +3266,7 @@ v259 += BYTE1(v107); v250 += (unsigned __int8)v107; LABEL_203: - ++v191; - v105 = v191; + ++v105; } v183 += srcPitch; --v168; @@ -3344,10 +3336,9 @@ do { v92 = LODWORD(v130); - v190 = LODWORD(v130); while ( v92 < SLODWORD(v139) ) { - v93 = (unsigned __int8)v182[v190]; + v93 = (unsigned __int8)v182[v92]; if ( a10 ) { v230 = 1; @@ -3372,8 +3363,7 @@ v258 += BYTE1(v94); v249 += (unsigned __int8)v94; LABEL_178: - ++v190; - v92 = v190; + ++v92; } v182 += srcPitch; --v167;