imagecache

package
v0.0.0-...-8203687 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageLevel           = int(5)
	DefaultTaskQueueLen    = int(256)
	DefaultIOProcessors    = int(4)
	DefaultIOTasksQueueLen = int(256)
)

Variables

This section is empty.

Functions

func AT

func AT(cx, cz int) (int, int)

func IN

func IN(cx, cz int) (int, int)

Types

type CachedImage

type CachedImage struct {
	Img          *image.RGBA
	Loc          primitives.ImageLocation
	SyncedToDisk bool

	ModTime time.Time
	// contains filtered or unexported fields
}

type ImageCache

type ImageCache struct {
	// contains filtered or unexported fields
}

func NewImageCache

func NewImageCache(logger *log.Logger, cfg *lac.ConfSubtree, ctx context.Context) *ImageCache

func (*ImageCache) GetCachedImage

func (c *ImageCache) GetCachedImage(loc primitives.ImageLocation, ret chan *CachedImage)

func (*ImageCache) GetCachedImageBlocking

func (c *ImageCache) GetCachedImageBlocking(loc primitives.ImageLocation) *CachedImage

func (*ImageCache) GetCachedImageModTime

func (c *ImageCache) GetCachedImageModTime(loc primitives.ImageLocation) time.Time

func (*ImageCache) GetStats

func (c *ImageCache) GetStats() map[string]any

func (*ImageCache) SetCachedImage

func (c *ImageCache) SetCachedImage(loc primitives.ImageLocation, img *image.RGBA)

func (*ImageCache) WaitExit

func (c *ImageCache) WaitExit()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL