Versions in this module Expand all Collapse all v1 v1.0.0 Nov 11, 2021 Changes in this version + const ChannelAlpha + const ChannelB + const ChannelCb + const ChannelCr + const ChannelG + const ChannelInterleaved + const ChannelR + const ChannelY + const Chroma420 + const Chroma422 + const Chroma444 + const ChromaInterleaved24Bit + const ChromaInterleaved32Bit + const ChromaInterleavedRGB + const ChromaInterleavedRGBA + const ChromaInterleavedRRGGBBAA_BE + const ChromaInterleavedRRGGBBAA_LE + const ChromaInterleavedRRGGBB_BE + const ChromaInterleavedRRGGBB_LE + const ChromaMonochrome + const ChromaUndefined + const ColorspaceMonochrome + const ColorspaceRGB + const ColorspaceUndefined + const ColorspaceYCbCr + const CompressionAV1 + const CompressionAVC + const CompressionHEVC + const CompressionJPEG + const CompressionUndefined + const ErrorColorProfileDoesNotExist + const ErrorDecoderPlugin + const ErrorEncoderPlugin + const ErrorEncoding + const ErrorInputDoesNotExist + const ErrorMemoryAllocation + const ErrorOK + const ErrorUnsupportedFeature + const ErrorUnsupportedFiletype + const ErrorUsage + const ProgressStepLoadTile + const ProgressStepTotal + const SuberrorAuxiliaryImageTypeUnspecified + const SuberrorCannotWriteOutputData + const SuberrorEndOfData + const SuberrorInvalidBoxSize + const SuberrorInvalidCleanAperture + const SuberrorInvalidFractionalNumber + const SuberrorInvalidGridData + const SuberrorInvalidImageSize + const SuberrorInvalidOverlayData + const SuberrorInvalidParameterValue + const SuberrorInvalidPixiBox + const SuberrorIpmaBoxReferencesNonexistingProperty + const SuberrorMissingGridImages + const SuberrorNoAV1CBox + const SuberrorNoFtypBox + const SuberrorNoHdlrBox + const SuberrorNoHvcCBox + const SuberrorNoIdatBox + const SuberrorNoIinfBox + const SuberrorNoIlocBox + const SuberrorNoInfeBox + const SuberrorNoIpcoBox + const SuberrorNoIpmaBox + const SuberrorNoIprpBox + const SuberrorNoIrefBox + const SuberrorNoItemData + const SuberrorNoMetaBox + const SuberrorNoOrInvalidPrimaryItem + const SuberrorNoPictHandler + const SuberrorNoPitmBox + const SuberrorNoPropertiesAssignedToItem + const SuberrorNonexistingImageChannelReferenced + const SuberrorNonexistingItemReferenced + const SuberrorNullPointerArgument + const SuberrorOverlayImageOutsideOfCanvas + const SuberrorSecurityLimitExceeded + const SuberrorUnknownColorProfileType + const SuberrorUnspecified + const SuberrorUnsupportedBitDepth + const SuberrorUnsupportedCodec + const SuberrorUnsupportedColorConversion + const SuberrorUnsupportedDataVersion + const SuberrorUnsupportedImageType + const SuberrorUnsupportedItemConstructionMethod + const SuberrorUnsupportedParameter + const SuberrorUnsupportedPluginVersion + const SuberrorUnsupportedWriterVersion + const SuberrorWrongTileImageChromaFormat + const SuberrorWrongTileImagePixelDepth + func GetVersion() string + type Channel C.enum_heif_channel + type Chroma C.enum_heif_chroma + type Colorspace C.enum_heif_colorspace + type Compression C.enum_heif_compression_format + type Context struct + func EncodeFromImage(img image.Image, compression Compression, quality int, lossless LosslessMode, ...) (*Context, error) + func NewContext() (*Context, error) + func (c *Context) GetImageHandle(id int) (*ImageHandle, error) + func (c *Context) GetListOfTopLevelImageIDs() []int + func (c *Context) GetNumberOfTopLevelImages() int + func (c *Context) GetPrimaryImageHandle() (*ImageHandle, error) + func (c *Context) GetPrimaryImageID() (int, error) + func (c *Context) IsTopLevelImageID(ID int) bool + func (c *Context) NewEncoder(compression Compression) (*Encoder, error) + func (c *Context) ReadFromFile(filename string) error + func (c *Context) ReadFromMemory(data []byte) error + func (c *Context) WriteToFile(filename string) error + type DecodingOptions struct + func NewDecodingOptions() (*DecodingOptions, error) + type Encoder struct + func (e *Encoder) ID() string + func (e *Encoder) Name() string + func (e *Encoder) SetLoggingLevel(l LoggingLevel) error + func (e *Encoder) SetLossless(l LosslessMode) error + func (e *Encoder) SetQuality(q int) error + type EncodingOptions struct + func NewEncodingOptions() (*EncodingOptions, error) + type ErrorCode C.enum_heif_error_code + type ErrorSubcode C.enum_heif_suberror_code + type HeifError struct + Code ErrorCode + Message string + Subcode ErrorSubcode + func (e *HeifError) Error() string + type Image struct + func NewImage(width, height int, colorspace Colorspace, chroma Chroma) (*Image, error) + func (img *Image) GetBitsPerPixel(channel Channel) int + func (img *Image) GetBitsPerPixelRange(channel Channel) int + func (img *Image) GetChromaFormat() Chroma + func (img *Image) GetColorspace() Colorspace + func (img *Image) GetHeight(channel Channel) int + func (img *Image) GetImage() (image.Image, error) + func (img *Image) GetPlane(channel Channel) (*ImageAccess, error) + func (img *Image) GetWidth(channel Channel) int + func (img *Image) NewPlane(channel Channel, width, height, depth int) (*ImageAccess, error) + func (img *Image) ScaleImage(width int, height int) (*Image, error) + type ImageAccess struct + Plane []byte + Stride int + type ImageHandle struct + func (h *ImageHandle) AppleSolarMap(mID MetadataID) (map[string]interface{}, error) + func (h *ImageHandle) AppleTimesMap(mID MetadataID) (map[string]interface{}, error) + func (h *ImageHandle) DecodeImage(colorspace Colorspace, chroma Chroma, options *DecodingOptions) (*Image, error) + func (h *ImageHandle) ExifCount() int + func (h *ImageHandle) ExifIDs() []MetadataID + func (h *ImageHandle) GetDepthImageHandle(depth_image_id int) (*ImageHandle, error) + func (h *ImageHandle) GetHeight() int + func (h *ImageHandle) GetListOfDepthImageIDs() []int + func (h *ImageHandle) GetListOfThumbnailIDs() []int + func (h *ImageHandle) GetNumberOfDepthImages() int + func (h *ImageHandle) GetNumberOfThumbnails() int + func (h *ImageHandle) GetThumbnail(thumbnail_id int) (*ImageHandle, error) + func (h *ImageHandle) GetWidth() int + func (h *ImageHandle) HasAlphaChannel() bool + func (h *ImageHandle) HasDepthImage() bool + func (h *ImageHandle) ImageTimes(mID MetadataID) (ImageTimeTable, error) + func (h *ImageHandle) IsPrimaryImage() bool + func (h *ImageHandle) Metadata(mID MetadataID) []byte + func (h *ImageHandle) MetadataCount() int + func (h *ImageHandle) MetadataIDs() []MetadataID + func (h *ImageHandle) MetadataMap(mID MetadataID, xs string) (map[string]interface{}, error) + type ImageTimeTable []time.Time + type LoggingLevel int + const LoggingLevelAdvanced + const LoggingLevelBasic + const LoggingLevelFull + const LoggingLevelNone + type LosslessMode int + const LosslessModeDisabled + const LosslessModeEnabled + type MetadataID uint + type ProgressStep C.enum_heif_progress_step