Implementation of imdecodeanimation and imencodeanimation#26964
Implementation of imdecodeanimation and imencodeanimation#26964futz12 wants to merge 1 commit intoopencv:4.xfrom
Conversation
|
cc @sturkmen72 |
|
Please add accuracy test for the new functions. |
This is just a wrapper of the old API, and there is no difference in accuracy |
for first question:
for second question:
|
|
Please add simple test that file read and in-memory encoding/decoding produces the same result. It's needed to cover API, check stupid typos and to have some basis for refactoring, if any. |
|
@futz12 Friendly reminder about test. |
|
Replaced by #27013 |
Test for in-memory animation encoding and decoding #27013 Tests for #26964 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [ ] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.
Supports animation's encode and decode functions to facilitate users to obtain image data without writing out the image.
Below is the sample code:
The program will write the following pictures in the running directory:
(Please do not click if you have photosensitive epilepsy)
https://github.com/user-attachments/assets/cc2aedee-8a5a-40c3-8829-7ecd63d20987
and output the following content on the console:
buf size: 21781
animation2 loop_count: 0
animation2 frames size: 10