Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DrawYCbCr (0.18 sec)

  1. src/image/internal/imageutil/gen.go

    	if err := os.WriteFile("impl.go", out, 0660); err != nil {
    		log.Fatal(err)
    	}
    }
    
    const pre = `// Code generated by go run gen.go; DO NOT EDIT.
    
    package imageutil
    
    import (
    	"image"
    )
    
    // DrawYCbCr draws the YCbCr source image on the RGBA destination image with
    // r.Min in dst aligned with sp in src. It reports whether the draw was
    // successful. If it returns false, no dst pixels were changed.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  2. src/image/internal/imageutil/impl.go

    // Code generated by go run gen.go; DO NOT EDIT.
    
    package imageutil
    
    import (
    	"image"
    )
    
    // DrawYCbCr draws the YCbCr source image on the RGBA destination image with
    // r.Min in dst aligned with sp in src. It reports whether the draw was
    // successful. If it returns false, no dst pixels were changed.
    //
    // This function assumes that r is entirely within dst's bounds and the
    // translation of r from dst coordinate space to src coordinate space is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 17:50:11 UTC 2018
    - 7.4K bytes
    - Viewed (0)
  3. src/image/draw/draw.go

    					// An image.YCbCr is always fully opaque, and so if the
    					// mask is nil (i.e. fully opaque) then the op is
    					// effectively always Src. Similarly for image.Gray and
    					// image.CMYK.
    					if imageutil.DrawYCbCr(dst0, r, src0, sp) {
    						return
    					}
    				case *image.Gray:
    					drawGray(dst0, r, src0, sp)
    					return
    				case *image.CMYK:
    					drawCMYK(dst0, r, src0, sp)
    					return
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  4. src/image/jpeg/reader.go

    		// out the 'Adobe inversion' described in the applyBlack doc comment
    		// above, so in practice, only the fourth channel (black) is inverted.
    		bounds := d.img3.Bounds()
    		img := image.NewRGBA(bounds)
    		imageutil.DrawYCbCr(img, bounds, d.img3, bounds.Min)
    		for iBase, y := 0, bounds.Min.Y; y < bounds.Max.Y; iBase, y = iBase+img.Stride, y+1 {
    			for i, x := iBase+3, bounds.Min.X; x < bounds.Max.X; i, x = i+4, x+1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
Back to top