Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
librealsense::util::config Class Reference

#include <resolver.h>

Classes

struct  index_type
 
class  multistream
 

Public Member Functions

bool can_enable_stream (const device_interface *dev, rs2_stream stream, int index, int width, int height, rs2_format format, int fps)
 
void close (multistream stream)
 
 config ()
 
void disable_all ()
 
void disable_stream (rs2_stream stream)
 
void enable_stream (rs2_stream stream, int index, uint32_t width, uint32_t height, rs2_format format, uint32_t fps)
 
void enable_streams (stream_profiles profiles)
 
std::map< index_type, stream_profileget_requests ()
 
multistream resolve (device_interface *dev)
 

Static Public Member Functions

static bool has_wildcards (const stream_profile_interface *a)
 
static bool has_wildcards (const stream_profile &a)
 
template<class Stream_Profile >
static bool match (const Stream_Profile &a, const Stream_Profile &b)
 
static bool match (const stream_profile_interface *a, const stream_profile &b)
 
static bool match_stream (const index_type &a, const index_type &b)
 

Private Member Functions

std::multimap< int, std::shared_ptr< stream_profile_interface > > map_streams (const device_interface *dev) const
 
stream_profiles map_sub_device (stream_profiles profiles, std::set< index_type > satisfied_streams, const device_interface *dev) const
 

Static Private Member Functions

static void auto_complete (std::vector< stream_profile > &requests, stream_profiles candidates, const device_interface *dev)
 
static bool is_best_format (rs2_stream stream, rs2_format format)
 
static bool sort_best_quality (std::shared_ptr< stream_profile_interface > lhs, std::shared_ptr< stream_profile_interface > rhs)
 
static bool sort_highest_framerate (const std::shared_ptr< stream_profile_interface > lhs, const std::shared_ptr< stream_profile_interface > rhs)
 
static bool sort_largest_image (std::shared_ptr< stream_profile_interface > lhs, std::shared_ptr< stream_profile_interface > rhs)
 
static stream_profile to_request (stream_profile_interface *profile)
 

Private Attributes

std::map< index_type, stream_profile_requests
 
bool require_all
 

Detailed Description

Definition at line 27 of file resolver.h.

Constructor & Destructor Documentation

librealsense::util::config::config ( )
inline

Definition at line 180 of file resolver.h.

Member Function Documentation

static void librealsense::util::config::auto_complete ( std::vector< stream_profile > &  requests,
stream_profiles  candidates,
const device_interface dev 
)
inlinestaticprivate

Definition at line 347 of file resolver.h.

bool librealsense::util::config::can_enable_stream ( const device_interface dev,
rs2_stream  stream,
int  index,
int  width,
int  height,
rs2_format  format,
int  fps 
)
inline

Definition at line 253 of file resolver.h.

void librealsense::util::config::close ( multistream  stream)
inline

Definition at line 237 of file resolver.h.

void librealsense::util::config::disable_all ( )
inline

Definition at line 232 of file resolver.h.

void librealsense::util::config::disable_stream ( rs2_stream  stream)
inline

Definition at line 211 of file resolver.h.

void librealsense::util::config::enable_stream ( rs2_stream  stream,
int  index,
uint32_t  width,
uint32_t  height,
rs2_format  format,
uint32_t  fps 
)
inline

Definition at line 205 of file resolver.h.

void librealsense::util::config::enable_streams ( stream_profiles  profiles)
inline

Definition at line 182 of file resolver.h.

std::map<index_type, stream_profile> librealsense::util::config::get_requests ( )
inline

Definition at line 118 of file resolver.h.

static bool librealsense::util::config::has_wildcards ( const stream_profile_interface a)
inlinestatic

Definition at line 100 of file resolver.h.

static bool librealsense::util::config::has_wildcards ( const stream_profile a)
inlinestatic

Definition at line 110 of file resolver.h.

static bool librealsense::util::config::is_best_format ( rs2_stream  stream,
rs2_format  format 
)
inlinestaticprivate

Definition at line 324 of file resolver.h.

std::multimap<int, std::shared_ptr<stream_profile_interface> > librealsense::util::config::map_streams ( const device_interface dev) const
inlineprivate

Definition at line 433 of file resolver.h.

stream_profiles librealsense::util::config::map_sub_device ( stream_profiles  profiles,
std::set< index_type satisfied_streams,
const device_interface dev 
) const
inlineprivate

Definition at line 385 of file resolver.h.

template<class Stream_Profile >
static bool librealsense::util::config::match ( const Stream_Profile &  a,
const Stream_Profile &  b 
)
inlinestatic

Definition at line 53 of file resolver.h.

static bool librealsense::util::config::match ( const stream_profile_interface a,
const stream_profile b 
)
inlinestatic

Definition at line 78 of file resolver.h.

static bool librealsense::util::config::match_stream ( const index_type a,
const index_type b 
)
inlinestatic

Definition at line 42 of file resolver.h.

multistream librealsense::util::config::resolve ( device_interface dev)
inline

Definition at line 266 of file resolver.h.

static bool librealsense::util::config::sort_best_quality ( std::shared_ptr< stream_profile_interface lhs,
std::shared_ptr< stream_profile_interface rhs 
)
inlinestaticprivate

Definition at line 335 of file resolver.h.

static bool librealsense::util::config::sort_highest_framerate ( const std::shared_ptr< stream_profile_interface lhs,
const std::shared_ptr< stream_profile_interface rhs 
)
inlinestaticprivate

Definition at line 313 of file resolver.h.

static bool librealsense::util::config::sort_largest_image ( std::shared_ptr< stream_profile_interface lhs,
std::shared_ptr< stream_profile_interface rhs 
)
inlinestaticprivate

Definition at line 317 of file resolver.h.

static stream_profile librealsense::util::config::to_request ( stream_profile_interface profile)
inlinestaticprivate

Definition at line 365 of file resolver.h.

Member Data Documentation

std::map<index_type, stream_profile> librealsense::util::config::_requests
private

Definition at line 460 of file resolver.h.

bool librealsense::util::config::require_all
private

Definition at line 461 of file resolver.h.


The documentation for this class was generated from the following file:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:39