Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bamiaux/rez
Image resizing in pure Go and SIMD
https://github.com/bamiaux/rez
Last synced: about 2 months ago
JSON representation
Image resizing in pure Go and SIMD
- Host: GitHub
- URL: https://github.com/bamiaux/rez
- Owner: bamiaux
- License: mit
- Archived: true
- Created: 2014-01-16T21:16:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T18:51:31.000Z (over 7 years ago)
- Last Synced: 2024-07-31T20:52:02.403Z (4 months ago)
- Language: Go
- Homepage:
- Size: 269 KB
- Stars: 212
- Watchers: 10
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - rez - Image resizing in pure Go and SIMD. (Images / Search and Analytic Databases)
- awesome-cobol - rez - Image resizing, functionality similar to resize (Imagery / Middlewares)
- awesome-go - rez - Image resizing in pure Go and SIMD - ★ 155 (Images)
- awesome-go-extra - rez - 01-16T21:16:15Z|2017-07-31T18:51:31Z| (Images / Advanced Console UIs)
- awesome-go-zh - rez
README
# rez [![GoDoc](https://godoc.org/github.com/bamiaux/rez/web?status.png)](https://godoc.org/github.com/bamiaux/rez) [![Build Status](https://travis-ci.org/bamiaux/rez.png)](https://travis-ci.org/bamiaux/rez)
Package rez provides image resizing in pure Go and SIMD.Download:
```shell
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](https://github.com/jimmyfrasche/autoreadme) on 2014.11.25