Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on May 19, 2024. It is now read-only.
/rezPublic archive

Image resizing in pure Go and SIMD

License

NotificationsYou must be signed in to change notification settings

bamiaux/rez

Repository files navigation

Package rez provides image resizing in pure Go and SIMD.

Download:

go get github.com/bamiaux/rez

Full documentation athttp://godoc.org/github.com/bamiaux/rez


Package rez provides image resizing in pure Go and SIMD.

Featuring:

- YCbCr, RGBA, NRGBA & Gray resizes- YCbCr Chroma subsample ratio conversions- Optional interlaced-aware resizes- Parallel resizes- SIMD optimisations on AMD64

The easiest way to use it is:

err := Convert(output, input, NewBicubicFilter())

However, if you plan to convert video, where resize parameters are the same formultiple images, the best way is:

cfg, err := PrepareConversion(output, input)converter, err := NewConverter(cfg, NewBicubicFilter())for i := 0; i < N; i++ {    err := converter.Convert(output[i], input[i])}

Note that by default, images are resized in parallel with GOMAXPROCS slices.Best performance is obtained when GOMAXPROCS is at least equal to your CPUcount.


Automatically generated byautoreadme on 2014.11.25

About

Image resizing in pure Go and SIMD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp