https://github.com/bamiaux/rez
Image resizing in pure Go and SIMD
https://github.com/bamiaux/rez
Last synced: 9 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 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T18:51:31.000Z (over 8 years ago)
- Last Synced: 2024-07-31T20:52:02.403Z (over 1 year 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-go-cn - rez
- awesome-go-cn - rez
- awesome-cobol - rez - Image resizing, functionality similar to resize (Imagery / Middlewares)
- awesome-go - rez - Image resizing in pure Go and SIMD. (Images / Advanced Console UIs)
- awesome-go-cn - rez
- awesome-go-plus - rez - Image resizing in pure Go and SIMD.  (Images / Search and Analytic Databases)
- awesome-go - rez - | - | - | (Images / Advanced Console UIs)
- awesome-go - rez - Image resizing in pure Go and SIMD. (Images / Search and Analytic Databases)
- fucking-awesome-go - :octocat: rez - Image resizing in pure Go and SIMD. :star: 117 :fork_and_knife: 6 (Images / Advanced Console UIs)
- awesome-go - rez - Image resizing in pure Go and SIMD. (Images / Search and Analytic Databases)
- awesome-go - rez - Image resizing in pure Go and SIMD. - :arrow_down:16 - :star:119 (Images / Advanced Console UIs)
- awesome-go - rez - Image resizing in pure Go and SIMD - ★ 155 (Images)
- awesome-go-cn - rez
- awesome-go-zh - rez
- awesome-go-extra - rez - 01-16T21:16:15Z|2017-07-31T18:51:31Z| (Images / Advanced Console UIs)
- awesome-go - rez - Image resizing in pure Go and SIMD. (<span id="图片-images">图片 Images</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go - rez - Image resizing in pure Go and SIMD. (Images / Search and Analytic Databases)
- awesome-Char - rez - Image resizing in pure Go and SIMD. (Images / Advanced Console UIs)
- awesome-go - rez - Image resizing in pure Go and SIMD. (Images / Advanced Console UIs)
README
# rez [](https://godoc.org/github.com/bamiaux/rez) [](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