From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/go/image%2Fjpeg%2Findex.html | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 devdocs/go/image%2Fjpeg%2Findex.html (limited to 'devdocs/go/image%2Fjpeg%2Findex.html') diff --git a/devdocs/go/image%2Fjpeg%2Findex.html b/devdocs/go/image%2Fjpeg%2Findex.html new file mode 100644 index 00000000..7b4c616f --- /dev/null +++ b/devdocs/go/image%2Fjpeg%2Findex.html @@ -0,0 +1,38 @@ +

Package jpeg

Overview

Package jpeg implements a JPEG image decoder and encoder.

+

JPEG is defined in ITU-T T.81: https://www.w3.org/Graphics/JPEG/itu-t81.pdf.

Index

Package files

fdct.go huffman.go idct.go reader.go scan.go writer.go

Constants

DefaultQuality is the default quality encoding parameter.

+
const DefaultQuality = 75

func Decode

func Decode(r io.Reader) (image.Image, error)

Decode reads a JPEG image from r and returns it as an image.Image.

+

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns the color model and dimensions of a JPEG image without decoding the entire image.

+

func Encode

func Encode(w io.Writer, m image.Image, o *Options) error

Encode writes the Image m to w in JPEG 4:2:0 baseline format with the given options. Default parameters are used if a nil *Options is passed.

+

type FormatError

A FormatError reports that the input is not a valid JPEG.

+
type FormatError string

func (FormatError) Error

func (e FormatError) Error() string

type Options

Options are the encoding parameters. Quality ranges from 1 to 100 inclusive, higher is better.

+
type Options struct {
+    Quality int
+}
+

type Reader

Deprecated: Reader is not used by the image/jpeg package and should not be used by others. It is kept for compatibility.

+
type Reader interface {
+    io.ByteReader
+    io.Reader
+}

type UnsupportedError

An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.

+
type UnsupportedError string

func (UnsupportedError) Error

func (e UnsupportedError) Error() string
+

+ © Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
+ http://golang.org/pkg/image/jpeg/ +

+
-- cgit v1.2.3