Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for dpix (0.35 sec)

  1. src/image/draw/draw.go

    	yMax := r.Max.Y - dst.Rect.Min.Y
    
    	y := r.Min.Y - dst.Rect.Min.Y
    	sy := sp.Y - src.Rect.Min.Y
    	for ; y != yMax; y, sy = y+1, sy+1 {
    		dpix := dst.Pix[y*dst.Stride:]
    		spix := src.Pix[sy*src.Stride:]
    
    		for i, si := i0, si0; i < i1; i, si = i+4, si+1 {
    			p := spix[si]
    			d := dpix[i : i+4 : i+4] // Small cap improves performance, see https://golang.org/issue/27857
    			d[0] = p
    			d[1] = p
    			d[2] = p
    			d[3] = 255
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  2. src/image/gif/reader_test.go

    		b.WriteString(paletteStr)
    		// Write an image with bounds 2x1 but tc.nPix pixels. If tc.nPix != 2
    		// then this should result in an invalid GIF image. First, write a
    		// magic 0x2c (image descriptor) byte, bounds=(0,0)-(2,1), a flags
    		// byte, and 2-bit LZW literals.
    		b.WriteString("\x2c\x00\x00\x00\x00\x02\x00\x01\x00\x00\x02")
    		if tc.nPix > 0 {
    			enc := lzwEncode(make([]byte, tc.nPix))
    			if len(enc)+tc.extraExisting > 0xff {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/image/gif/reader.go

    func uninterlace(m *image.Paletted) {
    	var nPix []uint8
    	dx := m.Bounds().Dx()
    	dy := m.Bounds().Dy()
    	nPix = make([]uint8, dx*dy)
    	offset := 0 // steps through the input by sequential scan lines.
    	for _, pass := range interlacing {
    		nOffset := pass.start * dx // steps through the output as defined by pass.
    		for y := pass.start; y < dy; y += pass.skip {
    			copy(nPix[nOffset:nOffset+dx], m.Pix[offset:offset+dx])
    			offset += dx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. src/image/image.go

    	}
    	return totalLength
    }
    
    // RGBA is an in-memory image whose At method returns [color.RGBA] values.
    type RGBA struct {
    	// Pix holds the image's pixels, in R, G, B, A order. The pixel at
    	// (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*4].
    	Pix []uint8
    	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
    	Stride int
    	// Rect is the image's bounds.
    	Rect Rectangle
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 34.9K bytes
    - Viewed (0)
  5. src/image/png/reader.go

    						a = 0x00
    					}
    					pix[i+0] = r
    					pix[i+1] = g
    					pix[i+2] = b
    					pix[i+3] = a
    					i += 4
    					j += 3
    				}
    				pixOffset += nrgba.Stride
    			} else {
    				pix, i, j := rgba.Pix, pixOffset, 0
    				for x := 0; x < width; x++ {
    					pix[i+0] = cdat[j+0]
    					pix[i+1] = cdat[j+1]
    					pix[i+2] = cdat[j+2]
    					pix[i+3] = 0xff
    					i += 4
    					j += 3
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 26K bytes
    - Viewed (0)
  6. src/image/png/writer.go

    			} else if nrgba != nil {
    				stride, pix = nrgba.Stride, nrgba.Pix
    			}
    			if stride != 0 {
    				j0 := (y - b.Min.Y) * stride
    				j1 := j0 + b.Dx()*4
    				for j := j0; j < j1; j += 4 {
    					cr0[i+0] = pix[j+0]
    					cr0[i+1] = pix[j+1]
    					cr0[i+2] = pix[j+2]
    					i += 3
    				}
    			} else {
    				for x := b.Min.X; x < b.Max.X; x++ {
    					r, g, b, _ := m.At(x, y).RGBA()
    					cr0[i+0] = uint8(r >> 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. src/image/jpeg/writer.go

    			sj = ymax
    		}
    		offset := (sj-b.Min.Y)*m.Stride - b.Min.X*4
    		for i := 0; i < 8; i++ {
    			sx := p.X + i
    			if sx > xmax {
    				sx = xmax
    			}
    			pix := m.Pix[offset+sx*4:]
    			yy, cb, cr := color.RGBToYCbCr(pix[0], pix[1], pix[2])
    			yBlock[8*j+i] = int32(yy)
    			cbBlock[8*j+i] = int32(cb)
    			crBlock[8*j+i] = int32(cr)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/img/xctest-task-graph.dot

    // limitations under the License.
    
    // dot -Tpng src/docs/userguide/img/xctest-task-graph.dot > src/docs/userguide/img/xctest-task-graph.png
    digraph xctestTaskGraph {
      graph [ dpi = 100, fontname="Sans"];
      node [fontname = "Sans"];
      edge [fontname = "Sans"];
      node [shape=rectangle, fixedsize=true, width=2.5, height=0.5];
      node [style=filled, fillcolor="#cfe2f3"]
      rankdir=LR
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/img/cpp-shared-library-task-graph.dot

    // limitations under the License.
    
    // dot -Tpng src/docs/userguide/img/cpp-shared-library-task-graph.dot > src/docs/userguide/img/cpp-shared-library-task-graph.png
    digraph cppSharedLibraryTaskGraph {
      graph [ dpi = 100, fontname="Sans"];
      node [fontname = "Sans"];
      edge [fontname = "Sans"];
      node [shape=rectangle, fixedsize=true, width=2.5, height=0.5];
      node [style=filled, fillcolor="#cfe2f3"]
      rankdir=LR
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/img/swift-sourcesets-compilation.dot

    // limitations under the License.
    
    // dot -Tpng src/docs/userguide/img/swift-sourcesets-compilation.dot > src/docs/userguide/img/swift-sourcesets-compilation.png
    digraph swiftSourcesetsCompilation {
      graph [ dpi = 100, fontname="Sans"];
      node [fontname = "Sans"];
      edge [fontname = "Sans"];
      node [shape=rectangle, fixedsize=true, width=2.6, height=0.8];
    
      subgraph firstLine {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top