18 <<
" doesn't support alt IR option";
33 const std::vector< stream_profile > & expected_profiles )
35 std::vector< stream_profile >
profiles = expected_profiles;
62 const std::vector< stream_profile > & expected_profiles )
64 std::vector< stream_profile >
profiles = expected_profiles;
67 std::condition_variable
cv;
70 auto wait_for_streams = [&]() {
71 profiles = expected_profiles;
72 std::unique_lock< std::mutex >
lock( m );
73 REQUIRE( cv.wait_for( lock, std::chrono::seconds( 20 ), [&]() {
74 return profiles.size() == 0;
79 std::unique_lock< std::mutex > lock( m );
80 remove_all_streams_arrived( f, profiles );
static const textual_icon lock
void start(T callback) const
void enable_alt_ir_and_check_that_AC_fails(const rs2::device &dev, const rs2::depth_sensor &depth_sens, const std::vector< stream_profile > &expected_profiles)
bool supports(rs2_camera_info info) const
status
Defines return codes that SDK interfaces use. Negative values indicate errors, a zero value indicates...
float get_option(rs2_option option) const
void open(const stream_profile &profile) const
bool alt_ir_supported_or_message(const rs2::depth_sensor &depth_sens)
void set_alt_ir_if_needed(const rs2::depth_sensor &depth_sens, float val)
static std::condition_variable cv
#define REQUIRE_THROWS(...)
REQUIRE_NOTHROW(rs2_log(RS2_LOG_SEVERITY_INFO, "Log message using rs2_log()", nullptr))
void enable_alt_ir_and_check_that_all_streams_arrived(const rs2::device &dev, const rs2::depth_sensor &depth_sens, const std::vector< stream_profile > &expected_profiles)
void set_option(rs2_option option, float value) const
const char * get_info(rs2_camera_info info) const