mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-13 01:10:38 -07:00
Support all encoding options.
This commit is contained in:
parent
b54cbd7f6d
commit
fff8a5bbce
3 changed files with 363 additions and 47 deletions
23
webp/webp.go
23
webp/webp.go
|
|
@ -21,6 +21,17 @@ const (
|
|||
YUV420A ColorSpace = C.WEBP_YUV420A
|
||||
)
|
||||
|
||||
// ImageHint corresponds to C.WebPImageHint.
|
||||
type ImageHint int
|
||||
|
||||
const (
|
||||
HintDefault ImageHint = C.WEBP_HINT_DEFAULT
|
||||
HintPicture ImageHint = C.WEBP_HINT_PICTURE
|
||||
HintPhoto ImageHint = C.WEBP_HINT_PHOTO
|
||||
HintGraph ImageHint = C.WEBP_HINT_GRAPH
|
||||
HintLast ImageHint = C.WEBP_HINT_LAST
|
||||
)
|
||||
|
||||
// Preset corresponds to C.WebPPreset.
|
||||
type Preset int
|
||||
|
||||
|
|
@ -48,3 +59,15 @@ const (
|
|||
// StrongFilter (=1)
|
||||
StrongFilter
|
||||
)
|
||||
|
||||
// Preprocessing corresponds to preprocessing filter parameter.
|
||||
type Preprocessing int
|
||||
|
||||
const (
|
||||
// PreprocessingNone specifies to disable preprocessing filter.
|
||||
PreprocessingNone = 0
|
||||
// PreprocessingSegmentSmooth specifies segment-smooth filter.
|
||||
PreprocessingSegmentSmooth = 1
|
||||
//PreprocessingPseudoRandomDithering specifies pseudo-random dithering filter.
|
||||
PreprocessingPseudoRandomDithering = 2
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue