Commit e0b3751c authored by Alexey Ershov's avatar Alexey Ershov

added run iteration without timing to complete internal initializations

parent 5937e58a
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#define CHECK_VASTATUS(va_status,func) \ #define CHECK_VASTATUS(va_status,func) \
if (va_status != VA_STATUS_SUCCESS) { \ if (va_status != VA_STATUS_SUCCESS) { \
fprintf(stderr,"%s:%s (%d) failed,exit\n", __func__, func, __LINE__); \ fprintf(stderr,"%s:%s (%d) failed(status=0x%08x),exit\n", __func__, func, __LINE__, va_status); \
exit(1); \ exit(1); \
} }
...@@ -334,6 +334,9 @@ static float run(const char* fn1, const char* fn2, bool doInterop) ...@@ -334,6 +334,9 @@ static float run(const char* fn1, const char* fn2, bool doInterop)
cv::Size size(CLIP_WIDTH,CLIP_HEIGHT); cv::Size size(CLIP_WIDTH,CLIP_HEIGHT);
cv::UMat u; cv::UMat u;
cv::va_intel::convertFromVASurface(va::display, surface_id, size, u);
cv::blur(u, u, cv::Size(7, 7), cv::Point(-3, -3));
cv::va_intel::convertToVASurface(va::display, u, surface_id, size);
t.start(); t.start();
cv::va_intel::convertFromVASurface(va::display, surface_id, size, u); cv::va_intel::convertFromVASurface(va::display, surface_id, size, u);
cv::blur(u, u, cv::Size(7, 7), cv::Point(-3, -3)); cv::blur(u, u, cv::Size(7, 7), cv::Point(-3, -3));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment