Documentation
¶
Overview ¶
Package imgload provides shared image path validation, safe file opening, and pixel decoding used by all GPU backends.
Index ¶
Constants ¶
View Source
const ( // DefaultMaxImageBytes is the default maximum encoded image // size accepted by DecodeNRGBA. DefaultMaxImageBytes = int64(16 * 1024 * 1024) // DefaultMaxImagePixels is the default maximum decoded pixel // count accepted by DecodeNRGBA. DefaultMaxImagePixels = int64(40_000_000) )
Variables ¶
This section is empty.
Functions ¶
func DecodeNRGBA ¶
DecodeNRGBA validates image limits, decodes the file, and returns the pixels as *image.NRGBA. The file is seeked to 0 before decoding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.