Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
d920dbed
Commit
d920dbed
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for multiple buffer swaps
parent
82a22c9e
No related branches found
No related tags found
1 merge request
!86
Fixes for multi swap in net buffers
Pipeline
#12686
passed
5 years ago
Stage: all
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/rgbd-sources/include/ftl/rgbd/source.hpp
+1
-1
1 addition, 1 deletion
components/rgbd-sources/include/ftl/rgbd/source.hpp
components/rgbd-sources/src/source.cpp
+7
-4
7 additions, 4 deletions
components/rgbd-sources/src/source.cpp
with
8 additions
and
5 deletions
components/rgbd-sources/include/ftl/rgbd/source.hpp
+
1
−
1
View file @
d920dbed
...
...
@@ -76,7 +76,7 @@ class Source : public ftl::Configurable {
/**
* Between frames, do any required buffer swaps.
*/
void
swap
()
{
if
(
impl_
)
impl_
->
swap
();
LOG
(
INFO
)
<<
"SWAP SV "
<<
timestamp_
;
}
void
swap
()
{
if
(
impl_
)
impl_
->
swap
();
}
/**
* Do any post-grab processing. This function
...
...
This diff is collapsed.
Click to expand it.
components/rgbd-sources/src/source.cpp
+
7
−
4
View file @
d920dbed
...
...
@@ -244,7 +244,7 @@ bool Source::compute(int N, int B) {
return
true
;
}
else
if
(
impl_
&&
impl_
->
compute
(
N
,
B
))
{
timestamp_
=
impl_
->
timestamp_
;
cv
::
Mat
tmp
;
/*
cv::Mat tmp;
rgb_.create(impl_->rgb_.size(), impl_->rgb_.type());
depth_.create(impl_->depth_.size(), impl_->depth_.type());
tmp = rgb_;
...
...
@@ -252,10 +252,13 @@ bool Source::compute(int N, int B) {
impl_->rgb_ = tmp;
tmp = depth_;
depth_ = impl_->depth_;
impl_
->
depth_
=
tmp
;
impl_->depth_ = tmp;
*/
//impl_->rgb_.copyTo(rgb_);
//impl_->depth_.copyTo(depth_);
// TODO:(Nick) Reduce buffer copies
impl_
->
rgb_
.
copyTo
(
rgb_
);
impl_
->
depth_
.
copyTo
(
depth_
);
//rgb_ = impl_->rgb_;
//depth_ = impl_->depth_;
return
true
;
}
return
false
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment