Documentation
¶
Overview ¶
Package heic implements an HEIC image decoder based on libheif/libde265 compiled to WASM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMemRead = errors.New("heic: mem read failed") ErrMemWrite = errors.New("heic: mem write failed") ErrDecode = errors.New("heic: decode failed") )
Errors .
View Source
var ForceWasmMode bool
ForceWasmMode, if true, forces using the WASM-based decoder even if a dynamic/shared library is available.
This exists mainly for testing purposes.
It is not safe to change this concurrently with any other use of this package.
Functions ¶
func DecodeConfig ¶
DecodeConfig returns the color model and dimensions of a HEIC image without decoding the entire image.
Types ¶
type Module ¶ added in v0.5.0
type Module struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.5.0
func New(v0 Xwasi_snapshot_preview1) *Module
func (*Module) X_initialize ¶ added in v0.5.0
func (m *Module) X_initialize()
type Xwasi_snapshot_preview1 ¶ added in v0.5.0
type Xwasi_snapshot_preview1 = interface {
Xenviron_get(v0, v1 int32) int32
Xenviron_sizes_get(v0, v1 int32) int32
Xfd_close(v0 int32) int32
Xfd_fdstat_get(v0, v1 int32) int32
Xfd_prestat_dir_name(v0, v1, v2 int32) int32
Xfd_prestat_get(v0, v1 int32) int32
Xfd_read(v0, v1, v2, v3 int32) int32
Xfd_seek(v0 int32, v1 int64, v2, v3 int32) int32
Xfd_write(v0, v1, v2, v3 int32) int32
Xpath_unlink_file(v0, v1, v2 int32) int32
Xproc_exit(v0 int32)
}
Click to show internal directories.
Click to hide internal directories.