-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请教一个问题,为什么不使用接口avifImageYUVToRGB直接转成 RGB 呢 #42
Comments
See: #7 Actually, before v0.5.0 (which is originally written by me), it use But @ledyba-z create that PR and use vImage for conversion and provide the performance result, so I merge it and release the new version. And then, since @ledyba-z no longer maintain this repo and write his own AVIF decoder (!), so I maintained this code and get updated to libavif's API break, until now 😂 |
If you think there are performance regression, I can provide a option in AVIFCoder to let you customize, like : typedef enum RGBYUVConversion {
case vImage,
case libyuv,
case sharpyuv
} RGBYUVConversion;
@interface SDImageAVIFCoder
// Control the default RGB to YUV conversion, defaults to vImage (which is fast on Apple platforms)
@class (assign) BOOL RGBYUVConversion defaultConversion;
@end
|
if so, thank you very much. |
Ah, yes. vImage frameworks can convert YUV to RGB about 100x faster than naive CPU code. @dreampiggy Hi, I have quit my job on link-u, which is a manga company, and moved to a energy company. |
为什么不使用接口avifImageYUVToRGB直接转成 RGB 呢,看现在是使用 iOS的 API 自己转,这种方式是速度快吗。
The text was updated successfully, but these errors were encountered: