-
Notifications
You must be signed in to change notification settings - Fork 14
Added unit tests and remove inappropriate debugging code. #10
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10 +/- ##
=========================================
Coverage ? 70.63%
=========================================
Files ? 4
Lines ? 824
Branches ? 0
=========================================
Hits ? 582
Misses ? 242
Partials ? 0 Continue to review full report at Codecov.
|
I think CI with more complex images (I wrote that before using Github Actions) is also still helpful. |
Actually this is OK. The test images forcus on the AVIF standard check. It's only because this library already beyond just a simple libavif client (Which I wrote before) :) For a stable AVIF decoder, it's OK to add more test cases and images to ensure the decoding correctness. The Patch Code (only focus on |
Sorry to be late! (I have got in to server-side troubles, and resolved them....) These tests images are focusing on testing YUV ⇔ RGB conversion functions.
Thanks! Yes, please release a new version (anyway this patch resolves a bug). After this patch will be merged, I am going to send next patch, that makes decoder to output grayscale images for monochrome images (related to SDWebImage/SDWebImage#2907). However, it takes some time to prepare additional test images and debugging (~10 days?), so I think it is nice timing to release new version. |
Released v0.5.2 Seems the test case not so stable ? The newer push (only updated Readme.md) cause the test case failed. https://github.com/SDWebImage/SDWebImageAVIFCoder/runs/467123380
|
@dreampiggy
Ah, this test uses our sample images, and I recently updated them to set correct color information. I think this change causes the problem. It looks libavif can't handle color information correctly. So, I am going to send a patch to libavif. |
AOMediaCodec/libavif#82 will resolve this issue. |
AOMediaCodec/libavif#82 was merged, and v0.5.7 was released! @dreampiggy could you upgrade libavif? |
I'll bump the version of libavif-Xcode soon. |
Thank you!
Unfortunately, it may be so:
|
Hi.
I added small (but many) test images and write XCTest cases (using TravisCI and codecov).
Currently, it covers 70.36% of
SDWebImageAVIFCoder/Classes/SDImageAVIFCoder.m
.And in this process, I found a bug.
This line is for debugging vImage frameworks, and it should be removed(sorry...):
c5e69f9#diff-80940c04bc7eacf6576a4e46ebecd2b2L287
Please take a look!