mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-15 18:25:59 -07:00
Apply 'go fmt'
This commit is contained in:
parent
5356cfff07
commit
375e7babdc
1 changed files with 10 additions and 10 deletions
|
|
@ -32,11 +32,11 @@ type DecoderOptions struct {
|
||||||
// BitstreamFeatures represents the image properties which are retrived from
|
// BitstreamFeatures represents the image properties which are retrived from
|
||||||
// data stream.
|
// data stream.
|
||||||
type BitstreamFeatures struct {
|
type BitstreamFeatures struct {
|
||||||
Width int // Image width in pixels
|
Width int // Image width in pixels
|
||||||
Height int // Image height in pixles
|
Height int // Image height in pixles
|
||||||
HasAlpha bool // True if data stream contains a alpha channel.
|
HasAlpha bool // True if data stream contains a alpha channel.
|
||||||
HasAnimation bool // True if data stream is an animation
|
HasAnimation bool // True if data stream is an animation
|
||||||
Format int // Image compression format
|
Format int // Image compression format
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDecoderVersion returns decoder's version number, packed in hexadecimal.
|
// GetDecoderVersion returns decoder's version number, packed in hexadecimal.
|
||||||
|
|
@ -62,11 +62,11 @@ func GetFeatures(data []byte) (f *BitstreamFeatures, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
f = &BitstreamFeatures{
|
f = &BitstreamFeatures{
|
||||||
Width: int(cf.width), // TODO: use Rectangle instaed?
|
Width: int(cf.width), // TODO: use Rectangle instaed?
|
||||||
Height: int(cf.height),
|
Height: int(cf.height),
|
||||||
HasAlpha: cf.has_alpha > 0,
|
HasAlpha: cf.has_alpha > 0,
|
||||||
HasAnimation: cf.has_animation > 0,
|
HasAnimation: cf.has_animation > 0,
|
||||||
Format: int(cf.format),
|
Format: int(cf.format),
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue