mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Merge pull request #22994 from alalek:gapi_build_issues
This commit is contained in:
commit
41d172f22d
@ -382,7 +382,7 @@ if(TARGET example_gapi_onevpl_infer_with_advanced_device_selection)
|
||||
ocv_target_include_directories(example_gapi_onevpl_infer_with_advanced_device_selection SYSTEM PRIVATE ${OPENCL_INCLUDE_DIRS})
|
||||
endif()
|
||||
if(UNIX AND HAVE_VA)
|
||||
message ("GAPI VPL samples with VAAPI")
|
||||
message(STATUS "GAPI VPL samples with VAAPI")
|
||||
ocv_target_include_directories(example_gapi_onevpl_infer_with_advanced_device_selection SYSTEM PRIVATE ${VA_INCLUDE_DIR})
|
||||
ocv_target_link_libraries(example_gapi_onevpl_infer_with_advanced_device_selection PRIVATE ${VA_LIBRARIES})
|
||||
endif()
|
||||
|
@ -12,6 +12,9 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TBB
|
||||
#ifndef TBB_SUPPRESS_DEPRECATED_MESSAGES
|
||||
#define TBB_SUPPRESS_DEPRECATED_MESSAGES 1
|
||||
#endif
|
||||
#include <tbb/tbb.h>
|
||||
#include <tbb/task.h>
|
||||
#if TBB_INTERFACE_VERSION < 12000
|
||||
|
@ -50,7 +50,7 @@ TEST(TBBExecutor, Basic) {
|
||||
});
|
||||
q.push(&n);
|
||||
execute(q);
|
||||
EXPECT_EQ(true, executed);
|
||||
EXPECT_TRUE(executed);
|
||||
}
|
||||
|
||||
TEST(TBBExecutor, SerialExecution) {
|
||||
@ -117,8 +117,8 @@ TEST(TBBExecutor, AsyncBasic) {
|
||||
|
||||
async_thread.join();
|
||||
|
||||
EXPECT_EQ(true, callback_called);
|
||||
EXPECT_EQ(true, master_was_blocked_until_callback_called);
|
||||
EXPECT_TRUE(callback_called);
|
||||
EXPECT_TRUE(master_was_blocked_until_callback_called);
|
||||
}
|
||||
|
||||
TEST(TBBExecutor, Dependencies) {
|
||||
|
@ -138,9 +138,9 @@ TEST(GStreamerPipelineFacadeTest, IsPlayingUnitTest)
|
||||
"video/x-raw,width=1920,height=1080,framerate=3/1 ! "
|
||||
"appsink name=sink2");
|
||||
|
||||
EXPECT_EQ(false, pipelineFacade.isPlaying());
|
||||
EXPECT_FALSE(pipelineFacade.isPlaying());
|
||||
pipelineFacade.play();
|
||||
EXPECT_EQ(true, pipelineFacade.isPlaying());
|
||||
EXPECT_TRUE(pipelineFacade.isPlaying());
|
||||
}
|
||||
|
||||
TEST(GStreamerPipelineFacadeTest, MTSafetyUnitTest)
|
||||
|
Loading…
Reference in New Issue
Block a user