Skip to content
/ rez Public
forked from bamiaux/rez

Image resizing in pure Go and SIMD

License

Notifications You must be signed in to change notification settings

donlzx/rez

This branch is 4 commits behind bamiaux/rez:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c467a78 · Mar 1, 2016
Nov 25, 2014
Jul 26, 2014
Jul 4, 2014
Jan 16, 2014
Mar 1, 2016
Jan 16, 2014
Nov 25, 2014
Feb 6, 2014
Jul 26, 2014
Feb 2, 2014
Feb 23, 2014
Feb 2, 2014
Feb 23, 2014
Nov 25, 2014
Nov 25, 2014
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

Languages

  • Go 57.6%
  • Assembly 42.2%
  • Shell 0.2%