Home | History | Annotate | Download | only in src

Lines Matching refs:bstep

916     int bstep = (int)srcmat.step;
937 bayer += bstep*2;
952 srow = bayer + (y+dy)*bstep + 1;
967 s1 = _mm_unpacklo_epi8(_mm_loadl_epi64((__m128i*)(srow-1-bstep)),z);
968 s2 = _mm_unpacklo_epi8(_mm_loadl_epi64((__m128i*)(srow-bstep)),z);
969 s3 = _mm_unpacklo_epi8(_mm_loadl_epi64((__m128i*)(srow+1-bstep)),z);
974 s7 = _mm_unpacklo_epi8(_mm_loadl_epi64((__m128i*)(srow-1+bstep)),z);
975 s8 = _mm_unpacklo_epi8(_mm_loadl_epi64((__m128i*)(srow+bstep)),z);
976 s9 = _mm_unpacklo_epi8(_mm_loadl_epi64((__m128i*)(srow+1+bstep)),z);
1010 brow[0] = (ushort)(std::abs(srow[-1-bstep] - srow[-1+bstep]) +
1011 std::abs(srow[-bstep] - srow[+bstep])*2 +
1012 std::abs(srow[1-bstep] - srow[1+bstep]));
1013 brow[N] = (ushort)(std::abs(srow[-1-bstep] - srow[1-bstep]) +
1015 std::abs(srow[-1+bstep] - srow[1+bstep]));
1016 brow[N2] = (ushort)(std::abs(srow[+1-bstep] - srow[-1+bstep])*2);
1017 brow[N3] = (ushort)(std::abs(srow[-1-bstep] - srow[1+bstep])*2);
1018 brow[N4] = (ushort)(brow[N2] + std::abs(srow[-bstep] - srow[-1]) +
1019 std::abs(srow[+bstep] - srow[1]));
1020 brow[N5] = (ushort)(brow[N3] + std::abs(srow[-bstep] - srow[1]) +
1021 std::abs(srow[+bstep] - srow[-1]));
1022 brow[N6] = (ushort)((srow[-bstep] + srow[-1] + srow[1] + srow[+bstep])>>1);
1030 srow = bayer + y*bstep + 2;
1066 Rs += srow[-bstep*2] + srow[0];
1067 Gs += srow[-bstep]*2;
1068 Bs += srow[-bstep-1] + srow[-bstep+1];
1073 Rs += srow[bstep*2] + srow[0];
1074 Gs += srow[bstep]*2;
1075 Bs += srow[bstep-1] + srow[bstep+1];
1082 Bs += srow[-bstep-1] + srow[bstep-1];
1089 Bs += srow[-bstep+1] + srow[bstep+1];
1094 Rs += srow[-bstep*2+2] + srow[0];
1096 Bs += srow[-bstep+1]*2;
1101 Rs += srow[bstep*2-2] + srow[0];
1103 Bs += srow[bstep-1]*2;
1108 Rs += srow[-bstep*2-2] + srow[0];
1110 Bs += srow[-bstep+1]*2;
1115 Rs += srow[bstep*2+2] + srow[0];
1117 Bs += srow[-bstep+1]*2;
1138 Rs += srow[-bstep*2-1] + srow[-bstep*2+1];
1139 Gs += srow[-bstep*2] + srow[0];
1140 Bs += srow[-bstep]*2;
1145 Rs += srow[bstep*2-1] + srow[bstep*2+1];
1146 Gs += srow[bstep*2] + srow[0];
1147 Bs += srow[bstep]*2;
1154 Bs += srow[-bstep-2]+srow[bstep-2];
1161 Bs += srow[-bstep+2]+srow[bstep+2];
1166 Rs += srow[-bstep*2+1] + srow[1];
1167 Gs += srow[-bstep+1]*2;
1168 Bs += srow[-bstep] + srow[-bstep+2];
1173 Rs += srow[bstep*2-1] + srow[-1];
1174 Gs += srow[bstep-1]*2;
1175 Bs += srow[bstep] + srow[bstep-2];
1180 Rs += srow[-bstep*2-1] + srow[-1];
1181 Gs += srow[-bstep-1]*2;
1182 Bs += srow[-bstep-2]+srow[-bstep];
1187 Rs += srow[bstep*2+1] + srow[1];
1188 Gs += srow[bstep+1]*2;
1189 Bs += srow[bstep+2]+srow[bstep];
1279 __m128i x1 = _mm_loadl_u8_s16(srow, -1 - bstep );
1280 __m128i x2 = _mm_loadl_u8_s16(srow, -1 - bstep*2);
1281 __m128i x3 = _mm_loadl_u8_s16(srow, - bstep );
1282 __m128i x4 = _mm_loadl_u8_s16(srow, +1 - bstep*2);
1283 __m128i x5 = _mm_loadl_u8_s16(srow, +1 - bstep );
1284 __m128i x6 = _mm_loadl_u8_s16(srow, +2 - bstep );
1286 __m128i x8 = _mm_loadl_u8_s16(srow, +2 + bstep );
1287 __m128i x9 = _mm_loadl_u8_s16(srow, +1 + bstep );
1288 __m128i x10 = _mm_loadl_u8_s16(srow, +1 + bstep*2);
1289 __m128i x11 = _mm_loadl_u8_s16(srow, + bstep );
1290 __m128i x12 = _mm_loadl_u8_s16(srow, -1 + bstep*2);
1291 __m128i x13 = _mm_loadl_u8_s16(srow, -1 + bstep );
1292 __m128i x14 = _mm_loadl_u8_s16(srow, -2 + bstep );
1294 __m128i x16 = _mm_loadl_u8_s16(srow, -2 - bstep );
1302 t0 = _mm_slli_epi16(x3, 1); // srow[-bstep]*2
1303 t1 = _mm_adds_epi16(_mm_loadl_u8_s16(srow, -bstep*2), x0); // srow[-bstep*2] + srow[0]
1305 // RGs += (srow[-bstep*2] + srow[0]) * (T>gradN)
1307 // GRs += {srow[-bstep]*2; (srow[-bstep*2-1] + srow[-bstep*2+1])} * (T>gradN)
1309 // Bs += {(srow[-bstep-1]+srow[-bstep+1]); srow[-bstep]*2 } * (T>gradN)
1316 t0 = _mm_slli_epi16(x5, 1); // srow[-bstep+1]*2
1317 t1 = _mm_adds_epi16(_mm_loadl_u8_s16(srow, -bstep*2+2), x0); // srow[-bstep*2+2] + srow[0]
1319 // RGs += {(srow[-bstep*2+2] + srow[0]); srow[-bstep+1]*2} * (T>gradNE)
1321 // GRs += {brow0[N6+1]; (srow[-bstep*2+1] + srow[1])} * (T>gradNE)
1323 // Bs += {srow[-bstep+1]*2; (srow[-bstep] + srow[-bstep+2])} * (T>gradNE)
1337 // Bs += {(srow[-bstep+1]+srow[bstep+1]); (srow[-bstep+2]+srow[bstep+2])} * (T>gradE)
1344 t0 = _mm_slli_epi16(x9, 1); // srow[bstep+1]*2
1345 t1 = _mm_adds_epi16(_mm_loadl_u8_s16(srow, bstep*2+2), x0); // srow[bstep*2+2] + srow[0]
1347 // RGs += {(srow[bstep*2+2] + srow[0]); srow[bstep+1]*2} * (T>gradSE)
1349 // GRs += {brow2[N6+1]; (srow[1]+srow[bstep*2+1])} * (T>gradSE)
1351 // Bs += {srow[-bstep+1]*2; (srow[bstep+2]+srow[bstep])} * (T>gradSE)
1358 t0 = _mm_slli_epi16(x11, 1); // srow[bstep]*2
1359 t1 = _mm_adds_epi16(_mm_loadl_u8_s16(srow,bstep*2), x0); // srow[bstep*2]+srow[0]
1361 // RGs += (srow[bstep*2]+srow[0]) * (T>gradS)
1363 // GRs += {srow[bstep]*2; (srow[bstep*2+1]+srow[bstep*2-1])} * (T>gradS)
1365 // Bs += {(srow[bstep+1]+srow[bstep-1]); srow[bstep]*2} * (T>gradS)
1372 t0 = _mm_slli_epi16(x13, 1); // srow[bstep-1]*2
1373 t1 = _mm_adds_epi16(_mm_loadl_u8_s16(srow, bstep*2-2), x0); // srow[bstep*2-2]+srow[0]
1375 // RGs += {(srow[bstep*2-2]+srow[0]); srow[bstep-1]*2} * (T>gradSW)
1377 // GRs += {brow2[N6-1]; (srow[bstep*2-1]+srow[-1])} * (T>gradSW)
1379 // Bs += {srow[bstep-1]*2; (srow[bstep]+srow[bstep-2])} * (T>gradSW)
1393 // Bs += {(srow[-bstep-1]+srow[bstep-1]); (srow[bstep-2]+srow[-bstep-2])} * (T>gradW)
1400 t0 = _mm_slli_epi16(x1, 1); // srow[-bstep-1]*2
1401 t1 = _mm_adds_epi16(_mm_loadl_u8_s16(srow,-bstep*2-2), x0); // srow[-bstep*2-2]+srow[0]
1403 // RGs += {(srow[-bstep*2-2]+srow[0]); srow[-bstep-1]*2} * (T>gradNW)
1405 // GRs += {brow0[N6-1]; (srow[-bstep*2-1]+srow[-1])} * (T>gradNW)
1407 // Bs += {srow[-bstep-1]*2; (srow[-bstep]+srow[-bstep-2])} * (T>gradNW)