SDWebImageAVIFCoder
SDWebImageAVIFCoder copied to clipboard
A SDWebImage coder plugin to support AVIF(AV1 Image File Format) image
from chatgpt4: 在正常执行路径上,`resultBufferData` 不会造成内存泄漏。在函数的末尾,`end_all` 标签处,有一行代码释放了 `resultBufferData`: ```c if (resultBufferData) free(resultBufferData); ``` 然而,在某些错误处理路径上,可能存在 `resultBufferData` 的内存泄漏。在以下情况下,`resultBufferData` 可能已经分配了内存,但在跳转到错误处理部分时没有释放: 1. 在 `end_no_alpha_mono` 和 `end_no_alpha_color` 标签之后,代码跳转到 `end_no_alpha`。在这两个标签后,`resultBufferData` 已经设置为 `NULL`,因此在 `end_all` 标签中不会再次释放。要解决这个问题,可以在跳转到 `end_no_alpha` 之前添加一行代码来释放 `resultBufferData`: ```c...
Unit of time milliseconds iphone x: avifDecoderNextImage: 397.489014--SDCreateCGImageFromAVIF: 1.329102 iphone 11 pro max: avifDecoderNextImage: 279.439941--SDCreateCGImageFromAVIF: 1.563965
为什么不使用接口avifImageYUVToRGB直接转成 RGB 呢,看现在是使用 iOS的 API 自己转,这种方式是速度快吗。
Split from #19, #20. Currently, we are discussing how should we treat ICC profile while encoding/decoding. (In here: AOMediaCodec/av1-avif#84) After we agree about how should we do, I will rewrite...
I know you clearly stated that using rav1e is currently not supported when using Swift Package Manager, but I was wondering if you have any ideas how to make it...