added run iteration without timing to complete internal initializations
This commit is contained in:
parent
5937e58a11
commit
e0b3751c17
@ -45,7 +45,7 @@
|
||||
|
||||
#define CHECK_VASTATUS(va_status,func) \
|
||||
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); \
|
||||
}
|
||||
|
||||
@ -334,6 +334,9 @@ static float run(const char* fn1, const char* fn2, bool doInterop)
|
||||
cv::Size size(CLIP_WIDTH,CLIP_HEIGHT);
|
||||
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();
|
||||
cv::va_intel::convertFromVASurface(va::display, surface_id, size, u);
|
||||
cv::blur(u, u, cv::Size(7, 7), cv::Point(-3, -3));
|
||||
|
Loading…
x
Reference in New Issue
Block a user