Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for SubsampleRatio (0.24 sec)

  1. src/image/ycbcr.go

    	// this, the Pix[i:] expression below can panic.
    	if r.Empty() {
    		return &YCbCr{
    			SubsampleRatio: p.SubsampleRatio,
    		}
    	}
    	yi := p.YOffset(r.Min.X, r.Min.Y)
    	ci := p.COffset(r.Min.X, r.Min.Y)
    	return &YCbCr{
    		Y:              p.Y[yi:],
    		Cb:             p.Cb[ci:],
    		Cr:             p.Cr[ci:],
    		SubsampleRatio: p.SubsampleRatio,
    		YStride:        p.YStride,
    		CStride:        p.CStride,
    		Rect:           r,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. src/image/ycbcr_test.go

    		Pt(1000, 1001),
    		Pt(5001, -400),
    		Pt(-701, -801),
    	}
    	for _, r := range rects {
    		for _, subsampleRatio := range subsampleRatios {
    			for _, delta := range deltas {
    				testYCbCr(t, r, subsampleRatio, delta)
    			}
    		}
    		if testing.Short() {
    			break
    		}
    	}
    }
    
    func testYCbCr(t *testing.T, r Rectangle, subsampleRatio YCbCrSubsampleRatio, delta Point) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 26 00:14:16 UTC 2015
    - 3.3K bytes
    - Viewed (0)
  3. src/image/jpeg/scan.go

    	vRatio := v0 / d.comp[1].v
    	var subsampleRatio image.YCbCrSubsampleRatio
    	switch hRatio<<4 | vRatio {
    	case 0x11:
    		subsampleRatio = image.YCbCrSubsampleRatio444
    	case 0x12:
    		subsampleRatio = image.YCbCrSubsampleRatio440
    	case 0x21:
    		subsampleRatio = image.YCbCrSubsampleRatio422
    	case 0x22:
    		subsampleRatio = image.YCbCrSubsampleRatio420
    	case 0x41:
    		subsampleRatio = image.YCbCrSubsampleRatio411
    	case 0x42:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. src/image/internal/imageutil/gen.go

    	// that also allowed a CopyFromRGBA method if needed.
    
    	x0 := (r.Min.X - dst.Rect.Min.X) * 4
    	x1 := (r.Max.X - dst.Rect.Min.X) * 4
    	y0 := r.Min.Y - dst.Rect.Min.Y
    	y1 := r.Max.Y - dst.Rect.Min.Y
    	switch src.SubsampleRatio {
    `
    
    const post = `
    	default:
    		return false
    	}
    	return true
    }
    `
    
    const sratioCase = `
    	case image.YCbCrSubsampleRatio%s:
    		for y, sy := y0, sp.Y; y != y1; y, sy = y+1, sy+1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  5. src/image/draw/bench_test.go

    			cr[i] = uint8(7 * i % 0x100)
    		}
    		src = &image.YCbCr{
    			Y:              yy,
    			Cb:             cb,
    			Cr:             cr,
    			YStride:        srcw,
    			CStride:        srcw,
    			SubsampleRatio: image.YCbCrSubsampleRatio444,
    			Rect:           image.Rect(0, 0, srcw, srch),
    		}
    	default:
    		b.Fatal("unknown source color model", scm)
    	}
    
    	var mask image.Image
    	switch mcm {
    	case nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. src/image/internal/imageutil/impl.go

    	// that also allowed a CopyFromRGBA method if needed.
    
    	x0 := (r.Min.X - dst.Rect.Min.X) * 4
    	x1 := (r.Max.X - dst.Rect.Min.X) * 4
    	y0 := r.Min.Y - dst.Rect.Min.Y
    	y1 := r.Max.Y - dst.Rect.Min.Y
    	switch src.SubsampleRatio {
    
    	case image.YCbCrSubsampleRatio444:
    		for y, sy := y0, sp.Y; y != y1; y, sy = y+1, sy+1 {
    			dpix := dst.Pix[y*dst.Stride:]
    			yi := (sy-src.Rect.Min.Y)*src.YStride + (sp.X - src.Rect.Min.X)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 17:50:11 UTC 2018
    - 7.4K bytes
    - Viewed (0)
  7. src/image/draw/draw_test.go

    func vgradCr() image.Image {
    	m := &image.YCbCr{
    		Y:              make([]byte, 16*16),
    		Cb:             make([]byte, 16*16),
    		Cr:             make([]byte, 16*16),
    		YStride:        16,
    		CStride:        16,
    		SubsampleRatio: image.YCbCrSubsampleRatio444,
    		Rect:           image.Rect(0, 0, 16, 16),
    	}
    	for y := 0; y < 16; y++ {
    		for x := 0; x < 16; x++ {
    			m.Cr[y*m.CStride+x] = uint8(y * 0x11)
    		}
    	}
    	return m
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Uniform.C", Field, 0},
    		{"White", Var, 0},
    		{"YCbCr", Type, 0},
    		{"YCbCr.CStride", Field, 0},
    		{"YCbCr.Cb", Field, 0},
    		{"YCbCr.Cr", Field, 0},
    		{"YCbCr.Rect", Field, 0},
    		{"YCbCr.SubsampleRatio", Field, 0},
    		{"YCbCr.Y", Field, 0},
    		{"YCbCr.YStride", Field, 0},
    		{"YCbCrSubsampleRatio", Type, 0},
    		{"YCbCrSubsampleRatio410", Const, 5},
    		{"YCbCrSubsampleRatio411", Const, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg image, type YCbCr struct, CStride int
    pkg image, type YCbCr struct, Cb []uint8
    pkg image, type YCbCr struct, Cr []uint8
    pkg image, type YCbCr struct, Rect Rectangle
    pkg image, type YCbCr struct, SubsampleRatio YCbCrSubsampleRatio
    pkg image, type YCbCr struct, Y []uint8
    pkg image, type YCbCr struct, YStride int
    pkg image, type YCbCrSubsampleRatio int
    pkg image, var Black *Uniform
    pkg image, var ErrFormat error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top