Home | History | Annotate | Download | only in jpeg

Lines Matching refs:Bounds

48 		if m0.Bounds() != m1.Bounds() {
49 t.Errorf("%s: bounds differ: %v and %v", tc, m0.Bounds(), m1.Bounds())
53 if m0.Bounds() != image.Rect(0, 0, 150, 103) {
54 t.Errorf("%s: bad bounds: %v", tc, m0.Bounds())
61 if err := check(m0.Bounds(), m0.Y, m1.Y, m0.YStride, m1.YStride); err != nil {
65 if err := check(m0.Bounds(), m0.Cb, m1.Cb, m0.CStride, m1.CStride); err != nil {
69 if err := check(m0.Bounds(), m0.Cr, m1.Cr, m0.CStride, m1.CStride); err != nil {
75 if err := check(m0.Bounds(), m0.Pix, m1.Pix, m0.Stride, m1.Stride); err != nil {
140 // check checks that the two pix data are equal, within the given bounds.
141 func check(bounds image.Rectangle, pix0, pix1 []byte, stride0, stride1 int) error {
151 if x >= bounds.Max.X || y >= bounds.Max.Y {
153 // entirely outside of the image's bounds. For example, this can
312 if got.Bounds() != src.Bounds() {
313 t.Errorf("image #%d, bounds differ: %v and %v", i, got.Bounds(), src.Bounds())