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

Swap debug output

parent b46ab3d0
No related branches found
No related tags found
1 merge request!86Fixes for multi swap in net buffers
Pipeline #12684 passed
......@@ -150,8 +150,6 @@ void NetSource::_recvChunk(int64_t frame, int chunk, bool delta, const vector<un
// Lock to allow buffer swap
UNIQUE_LOCK(mutex_,lk2);
chunk_count_ = 0;
// Swap the double buffers
cv::Mat tmp;
tmp = rgb_;
......@@ -161,6 +159,7 @@ void NetSource::_recvChunk(int64_t frame, int chunk, bool delta, const vector<un
depth_ = d_depth_;
d_depth_ = tmp;
chunk_count_ = 0;
timestamp_ = current_frame_;
current_frame_ = frame;
}
......
......@@ -167,6 +167,7 @@ void StereoVideoSource::swap() {
tmp = right_;
right_ = cap_right_;
cap_right_ = tmp;
LOG(INFO) << "SWAP SV " << timestamp_;
}
bool StereoVideoSource::compute(int n, int b) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment