Home | History | Annotate | Download | only in image

Lines Matching refs:delta

51 			for _, delta := range deltas {
52 testYCbCr(t, r, subsampleRatio, delta)
61 func testYCbCr(t *testing.T, r Rectangle, subsampleRatio YCbCrSubsampleRatio, delta Point) {
62 // Create a YCbCr image m, whose bounds are r translated by (delta.X, delta.Y).
63 r1 := r.Add(delta)
66 // Test that the image buffer is reasonably small even if (delta.X, delta.Y) is far from the origin.
68 t.Errorf("r=%v, subsampleRatio=%v, delta=%v: image buffer is too large",
69 r, subsampleRatio, delta)
86 for y0 := delta.Y + 3; y0 < delta.Y+7; y0++ {
87 for y1 := delta.Y + 8; y1 < delta.Y+13; y1++ {
88 for x0 := delta.X + 3; x0 < delta.X+7; x0++ {
89 for x1 := delta.X + 8; x1 < delta.X+13; x1++ {
99 t.Errorf("r=%v, subsampleRatio=%v, delta=%v, x=%d, y=%d, color0=%v, color1=%v",
100 r, subsampleRatio, delta, x, y, color0, color1)