imxieyi / MetalResize

Fast image interpolation using Metal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MetalResize

This is a fast image-resizing framework written in Metal Performance Shaders. It supports images with RGBA channels.

Interpolation

Limitations

Both input and output image size should not be larger than Maximum 2D texture width and height (typically 8192 or 16384). Memory usage should be less than Maximum buffer length (typically 256MB). For details please refer to Metal Feature Set Tables.

Demo

This image is scaled to 8x in all methods.

Nearest-neighbor

Bilinear

Bicubic

Image source: https://www.pixiv.net/member_illust.php?mode=medium&illust_id=62665989

About

Fast image interpolation using Metal

License:MIT License


Languages

Language:Swift 63.1%Language:Metal 33.1%Language:C++ 3.8%