Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigSchema = schema.StructFunc(func(prototype *Config) *schema.StructBuilder[Config] { return schema.Struct(prototype, schema.F("predictor", &prototype.Predictor, schema.Bool().Default(false)), schema.F("compression", (*string)(&prototype.Compression), schema.String().Default("deflate")), ).DebugName("Config") })
View Source
var ParamsSchema = schema.StructFunc(func(prototype *Params) *schema.StructBuilder[Params] { return schema.Struct(prototype, schema.F("pred", &prototype.Predictor, schema.Ptr(schema.Bool()).Default(nil)), schema.F("c", (*string)(&prototype.Compression), schema.String().Default("")), ).DebugName("Params") })
Functions ¶
Types ¶
type CompressionType ¶
type CompressionType string
func (CompressionType) Get ¶
func (c CompressionType) Get() (tiff.CompressionType, error)
type Config ¶
type Config struct { Predictor bool `imbed:"predictor,false"` Compression CompressionType `imbed:"compression!string,\"deflate\""` }
type Params ¶
type Params struct { Predictor *bool `imbed:"pred,nil"` Compression CompressionType `imbed:"c!string,\"\""` }
func (*Params) BuildTransform ¶
Click to show internal directories.
Click to hide internal directories.