Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorSpace ¶
const ( ColorSpaceRGB ColorSpace = C.TJCS_RGB ColorSpaceYCbCr ColorSpace = C.TJCS_YCbCr ColorSpaceGray ColorSpace = C.TJCS_GRAY ColorSpaceCMYK ColorSpace = C.TJCS_CMYK ColorSpaceYCCK ColorSpace = C.TJCS_YCCK )
func (ColorSpace) String ¶
func (c ColorSpace) String() string
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func CreateDecoder ¶
func CreateDecoderWithPool ¶
func CreateDecoderWithPool(p cgobytepool.Pool) (*Decoder, error)
func (*Decoder) DecodeToRGBA ¶
func (d *Decoder) DecodeToRGBA(data []byte) (*ImageRGBARef, error)
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func CreateEncoder ¶
func CreateEncoderWithPool ¶
func CreateEncoderWithPool(p cgobytepool.Pool) (*Encoder, error)
type Header ¶
type Header struct { Width int Height int Subsampling Subsampling ColorSpace ColorSpace }
type Image ¶
type Image struct { Header Format PixelFormat // contains filtered or unexported fields }
type ImageRGBARef ¶
type ImageRGBARef struct { Header Format PixelFormat Image *image.RGBA // contains filtered or unexported fields }
func (*ImageRGBARef) Close ¶
func (i *ImageRGBARef) Close()
type PixelFormat ¶
const ( PixelFormatRGB PixelFormat = C.TJPF_RGB PixelFormatBGR PixelFormat = C.TJPF_BGR PixelFormatRGBX PixelFormat = C.TJPF_RGBX PixelFormatBGRX PixelFormat = C.TJPF_BGRX PixelFormatXBGR PixelFormat = C.TJPF_XBGR PixelFormatXRGB PixelFormat = C.TJPF_XRGB PixelFormatGray PixelFormat = C.TJPF_GRAY PixelFormatRGBA PixelFormat = C.TJPF_RGBA PixelFormatBGRA PixelFormat = C.TJPF_BGRA PixelFormatABGR PixelFormat = C.TJPF_ABGR PixelFormatARGB PixelFormat = C.TJPF_ARGB PixelFormatCMYK PixelFormat = C.TJPF_CMYK )
func (PixelFormat) String ¶
func (p PixelFormat) String() string
type Subsampling ¶
const ( Subsampling444 Subsampling = C.TJSAMP_444 Subsampling422 Subsampling = C.TJSAMP_422 Subsampling420 Subsampling = C.TJSAMP_420 SubsamplingGray Subsampling = C.TJSAMP_GRAY Subsampling440 Subsampling = C.TJSAMP_440 Subsampling411 Subsampling = C.TJSAMP_411 )
func (Subsampling) String ¶
func (s Subsampling) String() string
Click to show internal directories.
Click to hide internal directories.