Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
func NewBufferPool ¶
func NewBufferPool() *BufferPool
func (*BufferPool) Get ¶
func (b *BufferPool) Get() []byte
func (*BufferPool) Put ¶
func (b *BufferPool) Put(buf []byte)
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder stores information to decode picture
func (*Decoder) GetFeatures ¶
func (d *Decoder) GetFeatures() utils.BitstreamFeatures
GetFeatures return information about picture: width, height ...
type DefaultImageFactory ¶
type DefaultImageFactory struct{}
type ImageFactory ¶
type ImagePool ¶
type ImagePool struct { Count int64 // contains filtered or unexported fields }
func NewImagePool ¶
func NewImagePool() *ImagePool
type Options ¶
type Options struct { BypassFiltering bool NoFancyUpsampling bool Crop image.Rectangle Scale image.Rectangle UseThreads bool Flip bool DitheringStrength int AlphaDitheringStrength int // if nil, DefaultImageFactory will be used. If non-nil, decode will return an image that must be put back into the pool // when you're done with it ImageFactory ImageFactory // if nil, a default buffer will be used. If non-nil, decode will use this buffer to store data from the reader. // The idea is that this buffer be reused, so either pass this back in next time you call decode, or put it back into // a pool when you're done with it. Buffer []byte }
Options specifies webp decoding parameters
Click to show internal directories.
Click to hide internal directories.