removed debug messages

pull/220/head
Ilya Lavrenov 12 years ago
parent 743dce6a4b
commit c2f2e33a5e
  1. 24
      modules/imgproc/src/imgwarp.cpp

@ -1301,35 +1301,11 @@ public:
s0 = _mm_packus_epi16(_mm_srli_epi16(s0, 2), zero); s0 = _mm_packus_epi16(_mm_srli_epi16(s0, 2), zero);
_mm_storel_epi64((__m128i*)D, s0); _mm_storel_epi64((__m128i*)D, s0);
// union
// {
// __m128i m;
// unsigned char us[16];
// } u;
// u.m = s0;
// unsigned char v0 = (unsigned char)((S0[0] + S0[3] + S1[0] + S1[3] + 2) >> 2);
// unsigned char v1 = (unsigned char)((S0[1] + S0[4] + S1[1] + S1[4] + 2) >> 2);
// unsigned char v2 = (unsigned char)((S0[2] + S0[5] + S1[2] + S1[5] + 2) >> 2);
// unsigned char ar1[] = { v0, v1, v2 };
// for (unsigned int i = 0; i < 3; ++i)
// std::cout << ((int)(u.us[i]) - (int)(ar1[i])) << " ";
// std::cout << "\t1" << std::endl;
s0 = _mm_add_epi16(r0_16h, _mm_srli_si128(r0_16h, 6)); s0 = _mm_add_epi16(r0_16h, _mm_srli_si128(r0_16h, 6));
s1 = _mm_add_epi16(r1_16h, _mm_srli_si128(r1_16h, 6)); s1 = _mm_add_epi16(r1_16h, _mm_srli_si128(r1_16h, 6));
s0 = _mm_add_epi16(s1, _mm_add_epi16(s0, delta2)); s0 = _mm_add_epi16(s1, _mm_add_epi16(s0, delta2));
s0 = _mm_packus_epi16(_mm_srli_epi16(s0, 2), zero); s0 = _mm_packus_epi16(_mm_srli_epi16(s0, 2), zero);
_mm_storel_epi64((__m128i*)(D+3), s0); _mm_storel_epi64((__m128i*)(D+3), s0);
// u.m = s0;
// v0 = (unsigned char)((S0[6] + S0[9] + S1[6] + S1[9] + 2) >> 2);
// v1 = (unsigned char)((S0[7] + S0[10] + S1[7] + S1[10] + 2) >> 2);
// v2 = (unsigned char)((S0[8] + S0[11] + S1[8] + S1[11] + 2) >> 2);
// unsigned char ar2[] = { v0, v1, v2 };
// for (unsigned int i = 0; i < 3; ++i)
// std::cout << ((int)(u.us[i]) - (int)(ar2[i])) << " ";
// std::cout << "\t2" << std::endl;
} }
else else
{ {

Loading…
Cancel
Save