Documentation
¶
Index ¶
Constants ¶
View Source
const ( CTNone = 0 CTYCbCr = 1 CTRCT = 2 CTFreeform = 3 FrameBaseline = 0 FrameSequential = 1 FrameLossless = 3 FrameJPEGLS = 4 LSInterleaveNone = 0 LSInterleaveLine = 1 LSInterleaveSample = 2 )
Variables ¶
View Source
var ErrUnsupportedPlatform = errors.New("golibjpeg: no prebuilt native library for this platform")
ErrUnsupportedPlatform reports that this GOOS/GOARCH has no prebuilt native library, so nothing can be decoded or encoded. Every entry point wraps it, and the wrapped error names the platform. Test for it with errors.Is.
Functions ¶
Types ¶
type DecodeResult ¶
func DecodeToRGB ¶
func DecodeToRGB(data []byte) (*DecodeResult, error)
type EncodeParams ¶ added in v1.2.0
type ImageParams ¶
func GetParameters ¶
func GetParameters(data []byte) (*ImageParams, error)
type StatusError ¶ added in v1.1.0
StatusError mirrors pylibjpeg-libjpeg RuntimeError messages.
Op already carries its own parentheses — "Decode()", "GetJPEGParameters()" — matching the names pylibjpeg puts in the same position, so the format strings below must not add another pair.
func (*StatusError) Error ¶ added in v1.1.0
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.