Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Black = color.RGBA{0, 0, 0, 0} White = color.RGBA{255, 255, 255, 0} Red = color.RGBA{255, 0, 0, 0} Lime = color.RGBA{0, 255, 0, 0} Blue = color.RGBA{0, 0, 255, 0} Yellow = color.RGBA{255, 255, 0, 0} Cyan = color.RGBA{0, 255, 255, 0} Magenta = color.RGBA{255, 0, 255, 0} Silver = color.RGBA{192, 192, 192, 0} Gray = color.RGBA{128, 128, 128, 0} Maroon = color.RGBA{128, 0, 0, 0} Olive = color.RGBA{128, 128, 0, 0} Green = color.RGBA{0, 128, 0, 0} Purple = color.RGBA{128, 0, 128, 0} Teal = color.RGBA{0, 128, 128, 0} )
Functions ¶
func GetXXHashString ¶
Types ¶
type CalFileInfo ¶
type CalFileInfo struct {
// contains filtered or unexported fields
}
type Request ¶
type Request struct {
Src string // src image path
Target string // target image path
Lib string // image lib path
Worker *int // worker thread num
Database *string // cache datbase
PixelSize *int // pic scale size per one pixel
Scalealg *string // pic scale function NearestNeighbor/ApproxBiLinear/BiLinear/CatmullRom
CheckHash *bool //
MaxSize *int // pic max size in GB
LibName *string // image lib name in database
SrcSize *int // src image auto scale pixel size
}
type ThreadPool ¶
type ThreadPool struct {
// contains filtered or unexported fields
}
func NewThreadPool ¶
func NewThreadPool(max int, buffer int, exef func(interface{})) *ThreadPool
func (*ThreadPool) AddJob ¶
func (tp *ThreadPool) AddJob(hash int, v interface{})
func (*ThreadPool) AddJobTimeout ¶
func (tp *ThreadPool) AddJobTimeout(hash int, v interface{}, timeoutms int) bool
func (*ThreadPool) GetStat ¶
func (tp *ThreadPool) GetStat() ThreadPoolStat
func (*ThreadPool) ResetStat ¶
func (tp *ThreadPool) ResetStat()
func (*ThreadPool) Stop ¶
func (tp *ThreadPool) Stop()
type ThreadPoolStat ¶
Click to show internal directories.
Click to hide internal directories.
