mirror of
https://github.com/talgo-cloud/talgo-libwebp.git
synced 2026-03-07 21:48:16 -08:00
Merge pull request #4 from saturday06/fix/remove_unused_from_bitstream_features
Remove undefined (unused) Bitstream feature. It breaks compilation.
This commit is contained in:
commit
64bb969fac
1 changed files with 10 additions and 12 deletions
|
|
@ -32,12 +32,11 @@ type DecoderOptions struct {
|
|||
// BitstreamFeatures represents the image properties which are retrived from
|
||||
// data stream.
|
||||
type BitstreamFeatures struct {
|
||||
Width int // Image width in pixels
|
||||
Height int // Image height in pixles
|
||||
HasAlpha bool // True if data stream contains a alpha channel.
|
||||
HasAnimation bool // True if data stream is an animation
|
||||
Format int // Image compression format
|
||||
NoIncrementalDecoding bool // True if incremental decording is not using
|
||||
Width int // Image width in pixels
|
||||
Height int // Image height in pixles
|
||||
HasAlpha bool // True if data stream contains a alpha channel.
|
||||
HasAnimation bool // True if data stream is an animation
|
||||
Format int // Image compression format
|
||||
}
|
||||
|
||||
// GetDecoderVersion returns decoder's version number, packed in hexadecimal.
|
||||
|
|
@ -63,12 +62,11 @@ func GetFeatures(data []byte) (f *BitstreamFeatures, err error) {
|
|||
}
|
||||
|
||||
f = &BitstreamFeatures{
|
||||
Width: int(cf.width), // TODO: use Rectangle instaed?
|
||||
Height: int(cf.height),
|
||||
HasAlpha: cf.has_alpha > 0,
|
||||
HasAnimation: cf.has_animation > 0,
|
||||
Format: int(cf.format),
|
||||
NoIncrementalDecoding: cf.no_incremental_decoding == 1,
|
||||
Width: int(cf.width), // TODO: use Rectangle instaed?
|
||||
Height: int(cf.height),
|
||||
HasAlpha: cf.has_alpha > 0,
|
||||
HasAnimation: cf.has_animation > 0,
|
||||
Format: int(cf.format),
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue