Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for pix1 (0.04 sec)

  1. src/image/jpeg/reader_test.go

    					index1 := (y+j)*stride1 + (x + i)
    					if pix0[index0] != pix1[index1] {
    						return fmt.Errorf("blocks at (%d, %d) differ:\n%sand\n%s", x, y,
    							pixString(pix0, stride0, x, y),
    							pixString(pix1, stride1, x, y),
    						)
    					}
    				}
    			}
    		}
    	}
    	return nil
    }
    
    func pixString(pix []byte, stride, x, y int) string {
    	s := &strings.Builder{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonProcessFailureIntegrationTest.groovy

            and:
            pidFile().exists()
            def pid1 = pidFile().text.strip() as long
            kill(pid1)
    
            when:
            handler.releaseAll()
            result = gradle.waitForFinish()
    
            then:
            outputContainsKilledWorkerWarning()
        }
    
        static void kill(long pid1) {
            def proc = new ProcessFixture(pid1)
            proc.kill(false)
            proc.waitForFinish()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 18:43:14 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. src/image/draw/draw.go

    	i0 := dst.PixOffset(r.Min.X, r.Min.Y)
    	i1 := i0 + r.Dx()*4
    	for i := i0; i < i1; i += 4 {
    		dst.Pix[i+0] = sr8
    		dst.Pix[i+1] = sg8
    		dst.Pix[i+2] = sb8
    		dst.Pix[i+3] = sa8
    	}
    	firstRow := dst.Pix[i0:i1]
    	for y := r.Min.Y + 1; y < r.Max.Y; y++ {
    		i0 += dst.Stride
    		i1 += dst.Stride
    		copy(dst.Pix[i0:i1], firstRow)
    	}
    }
    
    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/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. buildscripts/verify-healing-empty-erasure-set.sh

    	done
    
    	"${MINIO[@]}" --address ":$((start_port + 1))" $args >"${WORK_DIR}/dist-minio-server1.log" 2>&1 &
    	pid1=$!
    	disown ${pid1}
    
    	"${MINIO[@]}" --address ":$((start_port + 2))" $args >"${WORK_DIR}/dist-minio-server2.log" 2>&1 &
    	pid2=$!
    	disown $pid2
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:48:50 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompileDaemonCancellationIntegrationTest.groovy

            then:
            cancelBuild()
    
            then:
            daemons.daemon.becomesIdle()
    
            and:
            pidFile().exists()
            def pid1 = pidFile().text.strip() as long
            new ProcessFixture(pid1).waitForFinish()
    
            when:
            handler = blockingHttpServer.expectAndBlock("/block")
            startBuild("compileJava")
    
            then:
            handler.waitForAllPendingCalls()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 19:57:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. src/os/exec_unix.go

    	}
    
    	var (
    		status syscall.WaitStatus
    		rusage syscall.Rusage
    		pid1   int
    		e      error
    	)
    	for {
    		pid1, e = syscall.Wait4(p.Pid, &status, 0, &rusage)
    		if e != syscall.EINTR {
    			break
    		}
    	}
    	if e != nil {
    		return nil, NewSyscallError("wait", e)
    	}
    	p.pidDeactivate(statusDone)
    	return &ProcessState{
    		pid:    pid1,
    		status: status,
    		rusage: &rusage,
    	}, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. buildscripts/verify-healing.sh

    	done
    
    	"${MINIO[@]}" --address ":$((start_port + 1))" $args >"${WORK_DIR}/dist-minio-server1.log" 2>&1 &
    	pid1=$!
    	disown ${pid1}
    
    	"${MINIO[@]}" --address ":$((start_port + 2))" $args >"${WORK_DIR}/dist-minio-server2.log" 2>&1 &
    	pid2=$!
    	disown $pid2
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top