Skip to content

Commit

Permalink
Merge pull request #4786 from ev-mp/dso-13570
Browse files Browse the repository at this point in the history
Disable default decimation for RGB sensor
  • Loading branch information
ev-mp committed Sep 3, 2019
2 parents 6e414e2 + 48d0464 commit 39f32d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion common/model-views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,10 +967,16 @@ namespace rs2
model->enabled = false;
}


if (shared_filter->is<hole_filling_filter>())
model->enabled = false;

if (shared_filter->is<decimation_filter>())
{
std::string sn_name(s->get_info(RS2_CAMERA_INFO_NAME));
if (sn_name == "RGB Camera")
model->enabled = false;
}

post_processing.push_back(model);
}

Expand Down
2 changes: 1 addition & 1 deletion include/librealsense2/hpp/rs_sensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ namespace rs2
for (auto i = 0; i < size; i++)
{
auto f = std::shared_ptr<rs2_processing_block>(
rs2_get_processing_block(list.get(), i, &e),
rs2_get_processing_block(list.get(), i, &e),
rs2_delete_processing_block);
error::handle(e);
results.push_back(f);
Expand Down

0 comments on commit 39f32d8

Please sign in to comment.