-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Description
Describe the feature and motivation
using the test code below the result is as following.
0.0455906sec
0.0416175sec
0.465386sec
APNG encoder is 10x slower than the PNG encoder.
Additional context
#include <opencv2/highgui.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main( int argc, const char** argv )
{
Mat m(2000,3000,CV_8UC4);
TickMeter tm;
tm.start();
imwrite("read_a.png", m);
tm.stop();
cout << tm << endl;
Animation tanimation;
tanimation.frames.push_back(m);
tanimation.durations.push_back(10);
TickMeter tm1;
tm1.start();
imwritemulti("read_b.png", tanimation.frames);
tm1.stop();
cout << tm1 << endl;
TickMeter tm2;
tm2.start();
imwriteanimation("read_c.png", tanimation);
tm2.stop();
cout << tm2 << endl;
return 0;
}
Reactions are currently unavailable