Skip to content

Commit

Permalink
fix flickering in rs-multicam (should save previous frames for render…
Browse files Browse the repository at this point in the history
…ing in case new ones don't arrive)
  • Loading branch information
AnnaRomanov committed Aug 21, 2019
1 parent 235304e commit 057ee44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/multicam/rs-multicam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ int main(int argc, char * argv[]) try
colorizers[dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER)] = rs2::colorizer();
}

// We'll keep track of the last frame of each stream available to make the presentation persistent
std::map<int, rs2::frame> render_frames;

// Main app loop
while (app)
{
Expand All @@ -45,9 +48,6 @@ int main(int argc, char * argv[]) try
}
}

// We'll keep track for the last frame of each stream available to make the presentation persistent
std::map<int, rs2::frame> render_frames;

// Convert the newly-arrived frames to render-friendly format
for (const auto& frame : new_frames)
{
Expand Down

0 comments on commit 057ee44

Please sign in to comment.