- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for DecodeConfig (0.73 sec)
-
src/image/png/reader.go
if err == io.EOF { err = io.ErrUnexpectedEOF } return nil, err } } return d.img, nil } // DecodeConfig returns the color model and dimensions of a PNG image without // decoding the entire image. func DecodeConfig(r io.Reader) (image.Config, error) { d := &decoder{ r: r, crc: crc32.NewIEEE(), } if err := d.checkHeader(); err != nil { if err == io.EOF {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 26K bytes - Viewed (0) -
src/image/gif/reader_test.go
} } func BenchmarkDecode(b *testing.B) { data, err := os.ReadFile("../testdata/video-001.gif") if err != nil { b.Fatal(err) } cfg, err := DecodeConfig(bytes.NewReader(data)) if err != nil { b.Fatal(err) } b.SetBytes(int64(cfg.Width * cfg.Height)) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { Decode(bytes.NewReader(data)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:15:54 UTC 2024 - 13.3K bytes - Viewed (0) -
src/image/image.go
// store them. When operating on arbitrary images, [DecodeConfig] should be called // before [Decode], so that the program can decide whether the image, as defined // in the returned header, can be safely decoded with the available resources. A // call to [Decode] which produces an extremely large image, as defined in the // header returned by [DecodeConfig], is not considered a security issue,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 34.9K bytes - Viewed (0) -
src/image/jpeg/reader_test.go
} } } func benchmarkDecode(b *testing.B, filename string) { data, err := os.ReadFile(filename) if err != nil { b.Fatal(err) } cfg, err := DecodeConfig(bytes.NewReader(data)) if err != nil { b.Fatal(err) } b.SetBytes(int64(cfg.Width * cfg.Height * 4)) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { Decode(bytes.NewReader(data))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 00:46:29 UTC 2024 - 24.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"CMYK.Rect", Field, 5}, {"CMYK.Stride", Field, 5}, {"Config", Type, 0}, {"Config.ColorModel", Field, 0}, {"Config.Height", Field, 0}, {"Config.Width", Field, 0}, {"Decode", Func, 0}, {"DecodeConfig", Func, 0}, {"ErrFormat", Var, 0}, {"Gray", Type, 0}, {"Gray.Pix", Field, 0}, {"Gray.Rect", Field, 0}, {"Gray.Stride", Field, 0}, {"Gray16", Type, 0}, {"Gray16.Pix", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg image, const YCbCrSubsampleRatio422 YCbCrSubsampleRatio pkg image, const YCbCrSubsampleRatio444 YCbCrSubsampleRatio pkg image, func Decode(io.Reader) (Image, string, error) pkg image, func DecodeConfig(io.Reader) (Config, string, error) pkg image, func NewAlpha(Rectangle) *Alpha pkg image, func NewAlpha16(Rectangle) *Alpha16 pkg image, func NewGray(Rectangle) *Gray pkg image, func NewGray16(Rectangle) *Gray16
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)