Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 321 for crBlock (0.15 sec)

  1. src/image/jpeg/writer.go

    func toYCbCr(m image.Image, p image.Point, yBlock, cbBlock, crBlock *block) {
    	b := m.Bounds()
    	xmax := b.Max.X - 1
    	ymax := b.Max.Y - 1
    	for j := 0; j < 8; j++ {
    		for i := 0; i < 8; i++ {
    			r, g, b, _ := m.At(min(p.X+i, xmax), min(p.Y+j, ymax)).RGBA()
    			yy, cb, cr := color.RGBToYCbCr(uint8(r>>8), uint8(g>>8), uint8(b>>8))
    			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)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    		w.setBookmarkAfterResourceVersion(0)
    		return w
    	}
    
    	clock := testingclock.NewFakeClock(time.Now())
    	watchers := newTimeBucketWatchers(clock, defaultBookmarkFrequency)
    	now := clock.Now()
    	watchers.addWatcherThreadUnsafe(newWatcher(now.Add(10 * time.Second)))
    	watchers.addWatcherThreadUnsafe(newWatcher(now.Add(20 * time.Second)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. pkg/kubelet/util/manager/watch_based_manager.go

    	groupResource schema.GroupResource,
    	clock clock.Clock,
    	maxIdleTime time.Duration,
    	stopCh <-chan struct{}) Store {
    
    	if maxIdleTime < minIdleTime {
    		maxIdleTime = minIdleTime
    	}
    
    	store := &objectCache{
    		listObject:    listObject,
    		watchObject:   watchObject,
    		newObject:     newObject,
    		isImmutable:   isImmutable,
    		groupResource: groupResource,
    		clock:         clock,
    		maxIdleTime:   maxIdleTime,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/eviction_manager.go

    	imageGC ImageGC,
    	containerGC ContainerGC,
    	recorder record.EventRecorder,
    	nodeRef *v1.ObjectReference,
    	clock clock.WithTicker,
    	localStorageCapacityIsolation bool,
    ) (Manager, lifecycle.PodAdmitHandler) {
    	manager := &managerImpl{
    		clock:                         clock,
    		killPodFunc:                   killPodFunc,
    		imageGC:                       imageGC,
    		containerGC:                   containerGC,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. pilot/pkg/status/distribution/reporter.go

    	inProgressResources    map[string]*inProgressEntry
    	client                 v1.ConfigMapInterface
    	cm                     *corev1.ConfigMap
    	UpdateInterval         time.Duration
    	PodName                string
    	clock                  clock.Clock
    	ledger                 ledger.Ledger
    	distributionEventQueue chan distributionEvent
    	controller             *Controller
    }
    
    var _ xds.DistributionStatusCache = &Reporter{}
    
    const (
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. pkg/kubelet/prober/prober_manager.go

    	"k8s.io/kubernetes/pkg/kubelet/prober/results"
    	"k8s.io/kubernetes/pkg/kubelet/status"
    	kubetypes "k8s.io/kubernetes/pkg/kubelet/types"
    	kubeutil "k8s.io/kubernetes/pkg/kubelet/util"
    	"k8s.io/utils/clock"
    )
    
    // ProberResults stores the cumulative number of a probe by result as prometheus metrics.
    var ProberResults = metrics.NewCounterVec(
    	&metrics.CounterOpts{
    		Subsystem:      "prober",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	// This handler is run at the end of every Add/Update/Delete method
    	// and additionally gets the previous value of the object.
    	eventHandler func(*watchCacheEvent)
    
    	// for testing timeouts.
    	clock clock.Clock
    
    	// An underlying storage.Versioner.
    	versioner storage.Versioner
    
    	// cacher's group resource
    	groupResource schema.GroupResource
    
    	// For testing cache interval invalidation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. src/runtime/mgclimit.go

    		l.bucket.fill -= uint64(-change)
    	}
    	if change != 0 && enabled {
    		l.enabled.Store(false)
    	}
    }
    
    // tryLock attempts to lock l. Returns true on success.
    func (l *gcCPULimiterState) tryLock() bool {
    	return l.lock.CompareAndSwap(0, 1)
    }
    
    // unlock releases the lock on l. Must be called if tryLock returns true.
    func (l *gcCPULimiterState) unlock() {
    	old := l.lock.Swap(0)
    	if old != 1 {
    		throw("double unlock")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. pkg/kubelet/pleg/evented.go

    	// The channel from which the subscriber listens events.
    	eventChannel chan *PodLifecycleEvent
    	// Cache for storing the runtime states required for syncing pods.
    	cache kubecontainer.Cache
    	// For testability.
    	clock clock.Clock
    	// GenericPLEG is used to force relist when required.
    	genericPleg podLifecycleEventGeneratorHandler
    	// The maximum number of retries when getting container events from the runtime.
    	eventedPlegMaxStreamRetries int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/resources/DefaultResourceLockCoordinationServiceTest.groovy

                @Override
                ResourceLockState.Disposition transform(ResourceLockState workerLeaseState) {
                    if (lock1.tryLock() && lock2.tryLock()) {
                        return FINISHED
                    } else {
                        return FAILED
                    }
                }
            })
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 17:16:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top