Skip to content
Snippets Groups Projects
Commit f0a8ae72 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix old snapshot

parent 33fda9e4
No related branches found
No related tags found
1 merge request!152Implements #168 keeping decoding on GPU
This commit is part of merge request !152. Comments created here will be created in the context of that merge request.
...@@ -59,8 +59,10 @@ bool SnapshotSource::compute(int n, int b) { ...@@ -59,8 +59,10 @@ bool SnapshotSource::compute(int n, int b) {
snapshot_.getLeftRGB(camera_idx_, frame_idx_, snap_rgb_); snapshot_.getLeftRGB(camera_idx_, frame_idx_, snap_rgb_);
snapshot_.getLeftDepth(camera_idx_, frame_idx_, snap_depth_); snapshot_.getLeftDepth(camera_idx_, frame_idx_, snap_depth_);
snap_rgb_.copyTo(rgb_); //snap_rgb_.copyTo(rgb_);
snap_depth_.copyTo(depth_); //snap_depth_.copyTo(depth_);
rgb_.upload(snap_rgb_);
depth_.upload(snap_depth_);
auto cb = host_->callback(); auto cb = host_->callback();
if (cb) cb(timestamp_, rgb_, depth_); if (cb) cb(timestamp_, rgb_, depth_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment