Lines Matching full:off
112 int off) { in TestAttenuateI() argument
118 align_buffer_page_end(src_argb, kStride * height + off); in TestAttenuateI()
122 src_argb[i + off] = (fastrand() & 0xff); in TestAttenuateI()
128 ARGBAttenuate(src_argb + off, kStride, dst_argb_c, kStride, width, in TestAttenuateI()
132 ARGBAttenuate(src_argb + off, kStride, dst_argb_opt, kStride, width, in TestAttenuateI()
183 int off) { in TestUnattenuateI() argument
189 align_buffer_page_end(src_argb, kStride * height + off); in TestUnattenuateI()
193 src_argb[i + off] = (fastrand() & 0xff); in TestUnattenuateI()
195 ARGBAttenuate(src_argb + off, kStride, src_argb + off, kStride, width, in TestUnattenuateI()
201 ARGBUnattenuate(src_argb + off, kStride, dst_argb_c, kStride, width, in TestUnattenuateI()
205 ARGBUnattenuate(src_argb + off, kStride, dst_argb_opt, kStride, width, in TestUnattenuateI()
1006 N, NEG, OFF) \ argument
1014 align_buffer_page_end(src_argb_a, kStrideA* kHeight + OFF); \
1015 align_buffer_page_end(src_argb_b, kStrideA* kHeight + OFF); \
1019 src_argb_a[i + OFF] = (fastrand() & 0xff); \
1020 src_argb_b[i + OFF] = (fastrand() & 0xff); \
1023 ARGBInterpolate(src_argb_a + OFF, kStrideA, src_argb_b + OFF, kStrideA, \
1027 ARGBInterpolate(src_argb_a + OFF, kStrideA, src_argb_b + OFF, kStrideA, \
1057 int off) { in TestBlend() argument
1063 align_buffer_page_end(src_argb_a, kStride * height + off); in TestBlend()
1064 align_buffer_page_end(src_argb_b, kStride * height + off); in TestBlend()
1068 src_argb_a[i + off] = (fastrand() & 0xff); in TestBlend()
1069 src_argb_b[i + off] = (fastrand() & 0xff); in TestBlend()
1071 ARGBAttenuate(src_argb_a + off, kStride, src_argb_a + off, kStride, width, in TestBlend()
1073 ARGBAttenuate(src_argb_b + off, kStride, src_argb_b + off, kStride, width, in TestBlend()
1079 ARGBBlend(src_argb_a + off, kStride, src_argb_b + off, kStride, dst_argb_c, in TestBlend()
1083 ARGBBlend(src_argb_a + off, kStride, src_argb_b + off, kStride, in TestBlend()
1135 int off) { in TestBlendPlane() argument
1141 align_buffer_page_end(src_argb_a, kStride * height + off); in TestBlendPlane()
1142 align_buffer_page_end(src_argb_b, kStride * height + off); in TestBlendPlane()
1143 align_buffer_page_end(src_argb_alpha, kStride * height + off); in TestBlendPlane()
1144 align_buffer_page_end(dst_argb_c, kStride * height + off); in TestBlendPlane()
1145 align_buffer_page_end(dst_argb_opt, kStride * height + off); in TestBlendPlane()
1146 memset(dst_argb_c, 255, kStride * height + off); in TestBlendPlane()
1147 memset(dst_argb_opt, 255, kStride * height + off); in TestBlendPlane()
1151 src_argb_a[i + off] = i & 255; in TestBlendPlane()
1152 src_argb_b[i + off] = 255 - (i & 255); in TestBlendPlane()
1154 memset(src_argb_alpha + off, 255, width); in TestBlendPlane()
1155 BlendPlane(src_argb_a + off, width, src_argb_b + off, width, in TestBlendPlane()
1156 src_argb_alpha + off, width, dst_argb_opt + off, width, width, 1); in TestBlendPlane()
1158 EXPECT_EQ(src_argb_a[i + off], dst_argb_opt[i + off]); in TestBlendPlane()
1161 memset(src_argb_alpha + off, 0, width); in TestBlendPlane()
1162 BlendPlane(src_argb_a + off, width, src_argb_b + off, width, in TestBlendPlane()
1163 src_argb_alpha + off, width, dst_argb_opt + off, width, width, 1); in TestBlendPlane()
1165 EXPECT_EQ(src_argb_b[i + off], dst_argb_opt[i + off]); in TestBlendPlane()
1168 src_argb_a[i + off] = (fastrand() & 0xff); in TestBlendPlane()
1169 src_argb_b[i + off] = (fastrand() & 0xff); in TestBlendPlane()
1170 src_argb_alpha[i + off] = (fastrand() & 0xff); in TestBlendPlane()
1174 BlendPlane(src_argb_a + off, width, src_argb_b + off, width, in TestBlendPlane()
1175 src_argb_alpha + off, width, dst_argb_c + off, width, width, in TestBlendPlane()
1179 BlendPlane(src_argb_a + off, width, src_argb_b + off, width, in TestBlendPlane()
1180 src_argb_alpha + off, width, dst_argb_opt + off, width, width, in TestBlendPlane()
1184 EXPECT_EQ(dst_argb_c[i + off], dst_argb_opt[i + off]); in TestBlendPlane()
1219 int off) { in TestI420Blend() argument
1223 align_buffer_page_end(src_y0, width * height + off); in TestI420Blend()
1224 align_buffer_page_end(src_u0, kSizeUV + off); in TestI420Blend()
1225 align_buffer_page_end(src_v0, kSizeUV + off); in TestI420Blend()
1226 align_buffer_page_end(src_y1, width * height + off); in TestI420Blend()
1227 align_buffer_page_end(src_u1, kSizeUV + off); in TestI420Blend()
1228 align_buffer_page_end(src_v1, kSizeUV + off); in TestI420Blend()
1229 align_buffer_page_end(src_a, width * height + off); in TestI420Blend()
1230 align_buffer_page_end(dst_y_c, width * height + off); in TestI420Blend()
1231 align_buffer_page_end(dst_u_c, kSizeUV + off); in TestI420Blend()
1232 align_buffer_page_end(dst_v_c, kSizeUV + off); in TestI420Blend()
1233 align_buffer_page_end(dst_y_opt, width * height + off); in TestI420Blend()
1234 align_buffer_page_end(dst_u_opt, kSizeUV + off); in TestI420Blend()
1235 align_buffer_page_end(dst_v_opt, kSizeUV + off); in TestI420Blend()
1237 MemRandomize(src_y0, width * height + off); in TestI420Blend()
1238 MemRandomize(src_u0, kSizeUV + off); in TestI420Blend()
1239 MemRandomize(src_v0, kSizeUV + off); in TestI420Blend()
1240 MemRandomize(src_y1, width * height + off); in TestI420Blend()
1241 MemRandomize(src_u1, kSizeUV + off); in TestI420Blend()
1242 MemRandomize(src_v1, kSizeUV + off); in TestI420Blend()
1243 MemRandomize(src_a, width * height + off); in TestI420Blend()
1244 memset(dst_y_c, 255, width * height + off); in TestI420Blend()
1245 memset(dst_u_c, 255, kSizeUV + off); in TestI420Blend()
1246 memset(dst_v_c, 255, kSizeUV + off); in TestI420Blend()
1247 memset(dst_y_opt, 255, width * height + off); in TestI420Blend()
1248 memset(dst_u_opt, 255, kSizeUV + off); in TestI420Blend()
1249 memset(dst_v_opt, 255, kSizeUV + off); in TestI420Blend()
1252 I420Blend(src_y0 + off, width, src_u0 + off, kStrideUV, src_v0 + off, in TestI420Blend()
1253 kStrideUV, src_y1 + off, width, src_u1 + off, kStrideUV, in TestI420Blend()
1254 src_v1 + off, kStrideUV, src_a + off, width, dst_y_c + off, width, in TestI420Blend()
1255 dst_u_c + off, kStrideUV, dst_v_c + off, kStrideUV, width, in TestI420Blend()
1259 I420Blend(src_y0 + off, width, src_u0 + off, kStrideUV, src_v0 + off, in TestI420Blend()
1260 kStrideUV, src_y1 + off, width, src_u1 + off, kStrideUV, in TestI420Blend()
1261 src_v1 + off, kStrideUV, src_a + off, width, dst_y_opt + off, in TestI420Blend()
1262 width, dst_u_opt + off, kStrideUV, dst_v_opt + off, kStrideUV, in TestI420Blend()
1266 EXPECT_EQ(dst_y_c[i + off], dst_y_opt[i + off]); in TestI420Blend()
1269 EXPECT_EQ(dst_u_c[i + off], dst_u_opt[i + off]); in TestI420Blend()
1270 EXPECT_EQ(dst_v_c[i + off], dst_v_opt[i + off]); in TestI420Blend()
1406 int off) { in TestMultiply() argument
1412 align_buffer_page_end(src_argb_a, kStride * height + off); in TestMultiply()
1413 align_buffer_page_end(src_argb_b, kStride * height + off); in TestMultiply()
1417 src_argb_a[i + off] = (fastrand() & 0xff); in TestMultiply()
1418 src_argb_b[i + off] = (fastrand() & 0xff); in TestMultiply()
1424 ARGBMultiply(src_argb_a + off, kStride, src_argb_b + off, kStride, dst_argb_c, in TestMultiply()
1428 ARGBMultiply(src_argb_a + off, kStride, src_argb_b + off, kStride, in TestMultiply()
1480 int off) { in TestAdd() argument
1486 align_buffer_page_end(src_argb_a, kStride * height + off); in TestAdd()
1487 align_buffer_page_end(src_argb_b, kStride * height + off); in TestAdd()
1491 src_argb_a[i + off] = (fastrand() & 0xff); in TestAdd()
1492 src_argb_b[i + off] = (fastrand() & 0xff); in TestAdd()
1498 ARGBAdd(src_argb_a + off, kStride, src_argb_b + off, kStride, dst_argb_c, in TestAdd()
1502 ARGBAdd(src_argb_a + off, kStride, src_argb_b + off, kStride, dst_argb_opt, in TestAdd()
1554 int off) { in TestSubtract() argument
1560 align_buffer_page_end(src_argb_a, kStride * height + off); in TestSubtract()
1561 align_buffer_page_end(src_argb_b, kStride * height + off); in TestSubtract()
1565 src_argb_a[i + off] = (fastrand() & 0xff); in TestSubtract()
1566 src_argb_b[i + off] = (fastrand() & 0xff); in TestSubtract()
1572 ARGBSubtract(src_argb_a + off, kStride, src_argb_b + off, kStride, dst_argb_c, in TestSubtract()
1576 ARGBSubtract(src_argb_a + off, kStride, src_argb_b + off, kStride, in TestSubtract()
1628 int off) { in TestSobel() argument
1634 align_buffer_page_end(src_argb_a, kStride * height + off); in TestSobel()
1637 memset(src_argb_a, 0, kStride * height + off); in TestSobel()
1639 src_argb_a[i + off] = (fastrand() & 0xff); in TestSobel()
1645 ARGBSobel(src_argb_a + off, kStride, dst_argb_c, kStride, width, in TestSobel()
1649 ARGBSobel(src_argb_a + off, kStride, dst_argb_opt, kStride, width, in TestSobel()
1700 int off) { in TestSobelToPlane() argument
1708 align_buffer_page_end(src_argb_a, kSrcStride * height + off); in TestSobelToPlane()
1711 memset(src_argb_a, 0, kSrcStride * height + off); in TestSobelToPlane()
1713 src_argb_a[i + off] = (fastrand() & 0xff); in TestSobelToPlane()
1719 ARGBSobelToPlane(src_argb_a + off, kSrcStride, dst_argb_c, kDstStride, width, in TestSobelToPlane()
1723 ARGBSobelToPlane(src_argb_a + off, kSrcStride, dst_argb_opt, kDstStride, in TestSobelToPlane()
1774 int off) { in TestSobelXY() argument
1780 align_buffer_page_end(src_argb_a, kStride * height + off); in TestSobelXY()
1783 memset(src_argb_a, 0, kStride * height + off); in TestSobelXY()
1785 src_argb_a[i + off] = (fastrand() & 0xff); in TestSobelXY()
1791 ARGBSobelXY(src_argb_a + off, kStride, dst_argb_c, kStride, width, in TestSobelXY()
1795 ARGBSobelXY(src_argb_a + off, kStride, dst_argb_opt, kStride, width, in TestSobelXY()
1846 int off, in TestBlur() argument
1853 align_buffer_page_end(src_argb_a, kStride * height + off); in TestBlur()
1858 src_argb_a[i + off] = (fastrand() & 0xff); in TestBlur()
1865 ARGBBlur(src_argb_a + off, kStride, dst_argb_c, kStride, in TestBlur()
1870 ARGBBlur(src_argb_a + off, kStride, dst_argb_opt, kStride, in TestBlur()
2101 // 32 bit arm rounding on denormal case is off by 1 compared to C. in TEST_F()
2335 int off, in TestARGBRect() argument
2344 align_buffer_page_end(dst_argb_c, kSize + off); in TestARGBRect()
2345 align_buffer_page_end(dst_argb_opt, kSize + off); in TestARGBRect()
2347 MemRandomize(dst_argb_c + off, kSize); in TestARGBRect()
2348 memcpy(dst_argb_opt + off, dst_argb_c + off, kSize); in TestARGBRect()
2352 ARGBRect(dst_argb_c + off, kStride, 0, 0, width, invert * height, v32); in TestARGBRect()
2354 SetPlane(dst_argb_c + off, kStride, width, invert * height, v32); in TestARGBRect()
2360 ARGBRect(dst_argb_opt + off, kStride, 0, 0, width, invert * height, v32); in TestARGBRect()
2362 SetPlane(dst_argb_opt + off, kStride, width, invert * height, v32); in TestARGBRect()
2367 int abs_diff = abs(static_cast<int>(dst_argb_c[i + off]) - in TestARGBRect()
2368 static_cast<int>(dst_argb_opt[i + off])); in TestARGBRect()