Merge pull request #20901 from sivanov-work:merge_source_unite_perf_mod

G-API: oneVPL - Performance: Add async decode pipeline & add cached pool

* Add async decode pipeline & intro cached pool

* Fix performacne test with checking OPENCV_EXTRA

* Add sip perf test with no VPL

* Fix misprint

* Remove empty line..

* Apply some comments

* Apply some comments

* Make perf test fail if no OPENCV_TEST_DATA_PATH declared
This commit is contained in:
Sergey Ivanov
2021-11-10 16:21:51 +03:00
committed by GitHub
parent 3cfca01372
commit da6344297a
12 changed files with 238 additions and 99 deletions
@@ -256,9 +256,17 @@ int main(int argc, char *argv[])
pipeline.start();
cv::Mat out;
int framesCount = 0;
cv::TickMeter t;
t.start();
while (pipeline.pull(cv::gout(out))) {
cv::imshow("Out", out);
cv::waitKey(1);
framesCount++;
}
t.stop();
std::cout << "Elapsed time: " << t.getTimeSec() << std::endl;
std::cout << "FPS: " << framesCount / (t.getTimeSec() ? t.getTimeSec() : 1) << std::endl;
std::cout << "framesCount: " << framesCount << std::endl;
return 0;
}