Skip to content

Commit

Permalink
move implementation to cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Jul 26, 2021
1 parent b013190 commit 3f34759
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 9 additions & 0 deletions src/ivcam/sr300.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,15 @@ namespace librealsense
synthetic_sensor::open( requests );
}

void sr3xx_camera::sr300_depth_sensor::set_frame_metadata_modifier( on_frame_md callback )
{
_metadata_modifier = callback;
auto s = get_raw_sensor().get();
auto uvc = As< librealsense::uvc_sensor >( s );
if( uvc )
uvc->set_frame_metadata_modifier( callback );
}

processing_blocks sr300_camera::sr300_depth_sensor::get_sr300_depth_recommended_proccesing_blocks()
{
auto res = get_depth_recommended_proccesing_blocks();
Expand Down
9 changes: 1 addition & 8 deletions src/ivcam/sr300.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,7 @@ namespace librealsense

void open(const stream_profiles& requests) override;

void set_frame_metadata_modifier(on_frame_md callback) override
{
_metadata_modifier = callback;
auto s = get_raw_sensor().get();
auto uvc = As< librealsense::uvc_sensor >(s);
if (uvc)
uvc->set_frame_metadata_modifier(callback);
}
void set_frame_metadata_modifier(on_frame_md callback) override;

rs2_intrinsics get_intrinsics(const stream_profile& profile) const override
{
Expand Down

0 comments on commit 3f34759

Please sign in to comment.