Documentation ¶
Index ¶
Constants ¶
View Source
const FullScore = 16
The number of fields in Recipe
Variables ¶
This section is empty.
Functions ¶
func ParseHighlightShadow ¶
func ParseSharpness ¶
Types ¶
type Difference ¶
func Detect ¶
func Detect(simulationDir string, filename string) ([]Difference, bool, error)
Detect is the main library function. It returns a list of differences, and the bool in the return means "were we able to find a perfect match?"
func DetectFromRecipes ¶
func DetectFromRecipes(recipes []Recipe, recipe Recipe) ([]Difference, bool, error)
func DifferenceFromRecipes ¶
func DifferenceFromRecipes(input, candidate Recipe) Difference
func (Difference) AsList ¶
func (d Difference) AsList() []string
func (Difference) GetLines ¶
func (d Difference) GetLines() [][]string
func (Difference) IsFullScore ¶
func (d Difference) IsFullScore() bool
func (Difference) Score ¶
func (d Difference) Score() int
func (Difference) String ¶
func (d Difference) String() string
type Recipe ¶
type Recipe struct { Name string `json:"name"` Author string Url string FilmSimulation string `json:"film_simulation"` GrainEffectSize string `json:"grain_effect_size"` GrainEffectRoughness string `json:"grain_effect_roughness"` ColorChromeEffect string `json:"color_chrome_effect"` ColorChromeFXBlue string `json:"color_chrome_fx_blue"` WhiteBalanceMode string `json:"white_balance_mode"` WhiteBalanceRed int `json:"white_balance_r"` WhiteBalanceBlue int `json:"white_balance_b"` DynamicRange string `json:"dynamic_range"` Highlights int `json:"tone_curve_highlights"` Shadows int `json:"tone_curve_shadows"` Color int Sharpness int NoiseReduction int `json:"noise_reduction"` Clarity int }
func GetRecipeFromFile ¶
func GetRecipeFromJson ¶
func GetRecipes ¶
func ParseRecipeFile ¶
Click to show internal directories.
Click to hide internal directories.