mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-07 13:38:17 -08:00
Add AlphaQuality parameter to Config.
This commit is contained in:
parent
1291ea2ac7
commit
249daa0280
1 changed files with 10 additions and 0 deletions
|
|
@ -262,6 +262,16 @@ func (c *Config) AlphaFiltering() int {
|
|||
return int(c.c.alpha_filtering)
|
||||
}
|
||||
|
||||
// SetAlphaQuality sets alpha quality parameter.
|
||||
func (c *Config) SetAlphaQuality(v int) {
|
||||
c.c.alpha_quality = C.int(v)
|
||||
}
|
||||
|
||||
// AlphaQuality returns alpha quality parameter.
|
||||
func (c *Config) AlphaQuality() int {
|
||||
return int(c.c.alpha_quality)
|
||||
}
|
||||
|
||||
// SetPass sets pass parameter that specifies number of entropy-analysis passes
|
||||
// between 1 and 10.
|
||||
func (c *Config) SetPass(v int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue