dto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PipelineTypeLevel     = "level"
	PipelineTypeResize    = "resize"
	PipelineTypeScrentone = "screentone"
)
View Source
const (
	ResizeModeBox             = "box"
	ResizeModeLanczos         = "lanczos"
	ResizeModeCubic           = "cubic"
	ResizeModeLinear          = "linear"
	ResizeModeNearestNeighbor = "nearest_neighbor"
)

Variables

Functions

This section is empty.

Types

type ExecutorSettings

type ExecutorSettings struct {
	MaxGoroutines int

	InputPath  string
	OutputPath string
	Recursive  bool
}

type LevelSettings

type LevelSettings struct {
	LowInput   int     `json:"low_input"`
	HighInput  int     `json:"high_input"`
	Gamma      float64 `json:"gamma"`
	LowOutput  int     `json:"low_output"`
	HighOutput int     `json:"high_output"`

	DiapasonBlack int `json:"diapason_black"`
	DiapasonWhite int `json:"diapason_white"`
}

type PipelineFileSettings

type PipelineFileSettings struct {
	Items []PipelineItem `json:"items"`
}

func (*PipelineFileSettings) UnmarshalJSON

func (p *PipelineFileSettings) UnmarshalJSON(b []byte) error

type PipelineItem

type PipelineItem struct {
	Type     string           `json:"type"`
	Settings PipelineItemData `json:"settings"`
}

type PipelineItemData

type PipelineItemData interface{}

type ResizeSettings

type ResizeSettings struct {
	Mode string `json:"mode"`

	Coefficient  int `json:"coefficient"`
	TargetHeigth int `json:"target_heigth"`
	TargetWidth  int `json:"target_width"`

	Steps int `json:"steps"`
}

type ScreentoneSettings

type ScreentoneSettings struct {
	DotSize int `json:"dot_size"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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