60 uint32_t get_framerate()
const override;
63 int get_tag()
const override;
64 void tag_profile(
int tag)
override;
72 std::shared_ptr<stream_profile_interface> clone()
const override;
78 void create_snapshot(std::shared_ptr<stream_profile_interface>& snapshot)
const override;
112 std::shared_ptr<stream_profile_interface>
clone()
const override 116 res->set_unique_id(
id );
117 LOG_DEBUG(
"video_stream_profile::clone, id= " <<
id );
118 res->set_dims(get_width(), get_height());
119 std::function<rs2_intrinsics()> int_func = _calc_intrinsics;
120 res->set_intrinsics([int_func]() {
return int_func(); });
121 res->set_framerate(get_framerate());
137 void update(std::shared_ptr<extension_snapshot> ext)
override 158 void update(std::shared_ptr<extension_snapshot> ext)
override 163 std::shared_ptr<stream_profile_interface>
clone()
const override 167 std::function<rs2_motion_device_intrinsic()> init_func = _calc_intrinsics;
168 res->set_intrinsics([init_func]() {
return init_func(); });
169 res->set_framerate(get_framerate());
182 void update(std::shared_ptr<extension_snapshot> ext)
override { }
188 if (
auto vid = dynamic_cast<const video_stream_profile*>(sp))
196 inline std::vector<stream_profile>
to_profiles(
const std::vector<std::shared_ptr<stream_profile_interface>>& vec)
198 std::vector<stream_profile>
res;
199 for (
auto&&
p : vec) res.push_back(
to_profile(
p.get()));
207 struct hash<
std::shared_ptr<librealsense::video_stream_profile>>
209 size_t operator()(
const std::shared_ptr<librealsense::video_stream_profile>& k)
const 213 return (hash<uint32_t>()(k->get_height()))
214 ^ (hash<uint32_t>()(k->get_width()))
215 ^ (hash<uint32_t>()(k->get_framerate()))
216 ^ (hash<uint32_t>()(k->get_stream_index()))
217 ^ (hash<uint32_t>()(k->get_stream_type()))
218 ^ (hash<uint32_t>()(k->get_unique_id()))
219 ^ (hash<uint32_t>()(k->get_format()));
223 inline bool operator==(
const std::shared_ptr<librealsense::video_stream_profile>&
a,
const std::shared_ptr<librealsense::video_stream_profile>&
b)
225 if (!a.get() || !b.get())
return a.get() == b.get();
virtual rs2_format get_format() const =0
virtual rs2_stream get_stream_type() const =0
int get_stream_index() const override
GLboolean GLboolean GLboolean b
platform::stream_profile _sp
boost_foreach_argument_dependent_lookup_hack tag
rs2_stream get_stream_type() const override
void set_intrinsics(std::function< rs2_intrinsics()> calc) override
uint32_t get_height() const override
size_t operator()(const std::shared_ptr< librealsense::video_stream_profile > &k) const
motion_stream_profile(platform::stream_profile sp)
std::vector< stream_profile > to_profiles(const std::vector< std::shared_ptr< stream_profile_interface >> &vec)
void register_same_extrinsics(const stream_interface &from, const stream_interface &to)
uint32_t get_framerate() const override
void set_unique_id(int uid) override
void update(std::shared_ptr< extension_snapshot > ext) override
GLboolean GLboolean GLboolean GLboolean a
void update(std::shared_ptr< extension_snapshot > ext) override
bool operator==(const video_stream_profile &other) const
rs2_motion_device_intrinsic get_intrinsics() const override
int get_unique_id() const override
void set_stream_index(int index) override
std::shared_ptr< stream_profile_interface > clone() const override
void set_stream_type(rs2_stream stream) override
rs2_stream get_stream_type() const override
struct rs2_motion_device_intrinsic rs2_motion_device_intrinsic
Motion device intrinsics: scale, bias, and variances.
GLint GLsizei GLsizei height
GLint GLint GLsizei GLint GLenum format
void update(std::shared_ptr< extension_snapshot > ext) override
std::function< rs2_motion_device_intrinsic()> _calc_intrinsics
void set_dims(uint32_t width, uint32_t height) override
rs2_format
A stream's format identifies how binary data is encoded within a frame.
std::shared_ptr< stream_profile_interface > clone() const override
rs2_intrinsics get_intrinsics() const override
int get_stream_index() const override
stream(rs2_stream stream_type, int index=0)
int get_unique_id() const override
pose_stream_profile(platform::stream_profile sp)
uint32_t get_width() const override
rs2_stream
Streams are different types of data provided by RealSense devices.
bool operator==(const hdr_params &first, const hdr_params &second)
static environment & get_instance()
extrinsics_graph & get_extrinsics_graph()
platform::stream_profile get_backend_profile() const
video_stream_profile(platform::stream_profile sp)
struct rs2_intrinsics rs2_intrinsics
Video stream intrinsics.
stream_profile to_profile(const stream_profile_interface *sp)
std::function< rs2_intrinsics()> _calc_intrinsics
void set_intrinsics(std::function< rs2_motion_device_intrinsic()> calc) override
backend_stream_profile(platform::stream_profile sp)
virtual int get_stream_index() const =0
typename::boost::move_detail::remove_reference< T >::type && move(T &&t) BOOST_NOEXCEPT
void set_unique_id(int uid) override
Motion device intrinsics: scale, bias, and variances.
virtual uint32_t get_framerate() const =0
rs2_format get_format() const override
rs2_stream_profile _c_wrapper