Documentation ¶
Index ¶
- Constants
- func AT(cx, cz int) (int, int)
- func IN(cx, cz int) (int, int)
- type CachedImage
- type ImageCache
- func (c *ImageCache) GetCachedImage(loc primitives.ImageLocation, ret chan *CachedImage)
- func (c *ImageCache) GetCachedImageBlocking(loc primitives.ImageLocation) *CachedImage
- func (c *ImageCache) GetCachedImageModTime(loc primitives.ImageLocation) time.Time
- func (c *ImageCache) GetStats() map[string]any
- func (c *ImageCache) SetCachedImage(loc primitives.ImageLocation, img *image.RGBA)
- func (c *ImageCache) WaitExit()
Constants ¶
View Source
const ( StorageLevel = int(5) DefaultTaskQueueLen = int(256) DefaultIOProcessors = int(4) DefaultIOTasksQueueLen = int(256) )
Variables ¶
This section is empty.
Functions ¶
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()
Click to show internal directories.
Click to hide internal directories.