16 return std::make_shared<librealsense::align_cuda>(
align_to);
22 return std::make_shared<librealsense::align_sse>(
align_to);
24 #else // No optimizations 27 return std::make_shared<librealsense::align>(
align_to);
30 #endif // RS2_USE_CUDA 33 _source_info(from), _target_info(to), generate_processing_block(generate_func)
46 []() {
return std::make_shared<identity_processing_block>(); }
57 if (std::none_of(
begin(rhs_src),
end(rhs_src), equals))
64 auto equals = [&tgt](
const stream_profile& prof) {
return prof == tgt; };
65 if (std::none_of(
begin(rhs_tgt),
end(rhs_tgt), equals))
76 if (source->get_format() ==
s.format)
87 for (
auto&& req : requests)
89 auto equal_profiles_predicate = [&req](
const std::shared_ptr<stream_profile_interface>& sp) {
92 if (std::any_of(
begin(supported_profiles),
end(supported_profiles), equal_profiles_predicate))
93 satisfied_req.push_back(req);
bool has_source(const std::shared_ptr< stream_profile_interface > &source) const
processing_block_factory()
bool operator==(const processing_block_factory &rhs) const
std::function< std::shared_ptr< processing_block >void)> generate_processing_block
std::vector< stream_profile > _source_info
GLint GLint GLsizei GLint GLenum format
static processing_block_factory create_id_pbf(rs2_format format, rs2_stream stream, int idx=0)
rs2_format
A stream's format identifies how binary data is encoded within a frame.
std::vector< stream_profile > get_target_info() const
std::vector< std::shared_ptr< stream_profile_interface >> stream_profiles
rs2_stream
Streams are different types of data provided by RealSense devices.
std::vector< stream_profile > _target_info
stream_profile to_profile(const stream_profile_interface *sp)
std::shared_ptr< librealsense::align > create_align(rs2_stream align_to)
std::vector< stream_profile > get_source_info() const
GLsizei GLsizei GLchar * source
std::shared_ptr< processing_block > generate()
stream_profiles find_satisfied_requests(const stream_profiles &sp, const stream_profiles &supported_profiles) const