Skip to content

imxieyi/MetalResize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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