Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

bamiaux/rez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 31, 2017
29f4463 · Jul 31, 2017
Nov 25, 2014
Jul 26, 2014
Jul 4, 2014
Jan 16, 2014
Jul 31, 2017
Jan 16, 2014
Apr 18, 2017
Feb 6, 2014
Jul 26, 2014
Feb 2, 2014
Feb 23, 2014
Feb 2, 2014
Feb 23, 2014
Nov 25, 2014
Jul 31, 2017
Jul 26, 2014
Feb 14, 2014
Jul 26, 2014
Jul 26, 2014
Feb 23, 2014
Jul 26, 2014
Jul 26, 2014
Feb 12, 2014
Nov 25, 2014

Repository files navigation

rez GoDoc Build Status

Package rez provides image resizing in pure Go and SIMD.

Download:

go get github.com/bamiaux/rez

Full documentation at http://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 for multiple 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 CPU count.


Automatically generated by autoreadme 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