Documentation ¶
Index ¶
- Variables
- type FlifDecoder
- func (d *FlifDecoder) Abort() error
- func (d *FlifDecoder) DecodeFile(name string) error
- func (d *FlifDecoder) DecodeMemory(data []byte) error
- func (d *FlifDecoder) Destroy()
- func (d *FlifDecoder) GetImage() *FlifImage
- func (d *FlifDecoder) GetImageCount() int
- func (d *FlifDecoder) GetLoopCount() int
- type FlifEncoder
- type FlifImage
- func NewFlifImage(width, height int) *FlifImage
- func NewFlifImageFromGray(width, height int, data []byte) *FlifImage
- func NewFlifImageFromRGB(width, height int, data []byte) *FlifImage
- func NewFlifImageFromRGBA(width, height int, data []byte) *FlifImage
- func NewFlifImageHDR(width, height int) *FlifImage
- func (f *FlifImage) Destroy()
- func (f *FlifImage) GetChannel() int
- func (f *FlifImage) GetDepth() int
- func (f *FlifImage) GetFrameDelay() int
- func (f *FlifImage) GetHeight() int
- func (f *FlifImage) GetImageCount() int
- func (f *FlifImage) GetMetadata(name string) []byte
- func (f *FlifImage) GetWidth() int
- func (f *FlifImage) ReadRowRGBA16(row, index int) []byte
- func (f *FlifImage) ReadRowRGBA8(row, index int) []byte
- func (f *FlifImage) SetFrameDelay(delay int)
- func (f *FlifImage) SetMetadata(name string, data []byte)
- func (f *FlifImage) WriteRowRGBA16(row int, data []byte, index int) error
- func (f *FlifImage) WriteRowRGBA8(row int, data []byte, index int) error
- type FlifInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOutOfRange = errors.New("index out of range")
)
View Source
var (
ErrUnknown = errors.New("unknown error")
)
Functions ¶
This section is empty.
Types ¶
type FlifDecoder ¶
type FlifDecoder struct { CrcCheck bool Quality int Scale int Width int Height int Fit bool // contains filtered or unexported fields }
FlifDecoder FLIF_DECODER
func (*FlifDecoder) DecodeFile ¶
func (d *FlifDecoder) DecodeFile(name string) error
DecodeFile flif_decoder_decode_file
func (*FlifDecoder) DecodeMemory ¶
func (d *FlifDecoder) DecodeMemory(data []byte) error
DecodeMemory flif_decoder_decode_memory
func (*FlifDecoder) GetImage ¶
func (d *FlifDecoder) GetImage() *FlifImage
GetImage flif_decoder_get_image TODO: this FlifImage must not destroy. should destroy from FlifDecoder.
func (*FlifDecoder) GetImageCount ¶
func (d *FlifDecoder) GetImageCount() int
GetImageCount flif_decoder_num_images
func (*FlifDecoder) GetLoopCount ¶
func (d *FlifDecoder) GetLoopCount() int
GetLoopCount flif_decoder_num_loops
type FlifEncoder ¶
type FlifEncoder struct { Interlaced bool LearnRepeat int AutoColorBuckets int PaletteSize int Lookback int Divisor int MinSize int SplitThreashold int AlphaZeroLossless bool ChanceCutoff int ChanceAlpha int CrcCheck bool ChannelCompact int YCoCg int FrameShape int Lossy int // contains filtered or unexported fields }
func NewFlifEncoder ¶
func NewFlifEncoder() *FlifEncoder
func (*FlifEncoder) AddImage ¶
func (e *FlifEncoder) AddImage(image *FlifImage)
func (*FlifEncoder) Destroy ¶
func (e *FlifEncoder) Destroy()
func (*FlifEncoder) Encode ¶
func (e *FlifEncoder) Encode() ([]byte, error)
func (*FlifEncoder) EncodeFile ¶
func (e *FlifEncoder) EncodeFile(name string) error
type FlifImage ¶
type FlifImage struct {
// contains filtered or unexported fields
}
FlifImage FLIF_IMAGE
func NewFlifImage ¶
func NewFlifImageFromGray ¶
func NewFlifImageFromRGB ¶
func NewFlifImageFromRGBA ¶
func NewFlifImageHDR ¶
func (*FlifImage) GetChannel ¶
func (*FlifImage) GetFrameDelay ¶
func (*FlifImage) GetImageCount ¶
func (*FlifImage) GetMetadata ¶
func (*FlifImage) ReadRowRGBA16 ¶
func (*FlifImage) ReadRowRGBA8 ¶
func (*FlifImage) SetFrameDelay ¶
func (*FlifImage) SetMetadata ¶
func (*FlifImage) WriteRowRGBA16 ¶
Click to show internal directories.
Click to hide internal directories.