File: options.go

package info (click to toggle)
golang-github-bep-gowebp 0.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,588 kB
  • sloc: ansic: 75,826; sh: 1,085; makefile: 579; python: 350; cpp: 262
file content (24 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package webpoptions

const (
	EncodingPresetDefault EncodingPreset = iota
	EncodingPresetPicture
	EncodingPresetPhoto
	EncodingPresetDrawing
	EncodingPresetIcon
	EncodingPresetText
)

type (
	EncodingPreset  int
	EncodingOptions struct {
		// Quality is a number between 0 and 100. Set to 0 for lossless.
		Quality int

		// The encoding preset to use.
		EncodingPreset

		// Use sharp (and slow) RGB->YUV conversion.
		UseSharpYuv bool
	}
)