Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompressParams ¶
type CompressParams struct { PixelFormat PixelFormat Sampling Sampling Quality int // 1 .. 100 Flags Flags }
func MakeCompressParams ¶
func MakeCompressParams(pixelFormat PixelFormat, sampling Sampling, quality int, flags Flags) CompressParams
type Flags ¶
const ( FlagAccurateDCT Flags = C.TJFLAG_ACCURATEDCT FlagBottomUp Flags = C.TJFLAG_BOTTOMUP FlagFastDCT Flags = C.TJFLAG_FASTDCT FlagFastUpsample Flags = C.TJFLAG_FASTUPSAMPLE FlagNoRealloc Flags = C.TJFLAG_NOREALLOC FlagProgressive Flags = C.TJFLAG_PROGRESSIVE FlagStopOnWarning Flags = C.TJFLAG_STOPONWARNING )
type Image ¶
func Decompress ¶
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 PixelFormatUNKNOWN PixelFormat = C.TJPF_UNKNOWN )
type Sampling ¶
const ( Sampling444 Sampling = C.TJSAMP_444 Sampling422 Sampling = C.TJSAMP_422 Sampling420 Sampling = C.TJSAMP_420 SamplingGray Sampling = C.TJSAMP_GRAY )
Click to show internal directories.
Click to hide internal directories.