Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
d2cd2d85
Commit
d2cd2d85
authored
12 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #3696: Improved SampleBuffer interface
parent
41267981
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RTCP/InputProc/src/SampleBufferReader.h
+26
-3
26 additions, 3 deletions
RTCP/InputProc/src/SampleBufferReader.h
with
26 additions
and
3 deletions
RTCP/InputProc/src/SampleBufferReader.h
+
26
−
3
View file @
d2cd2d85
...
...
@@ -31,12 +31,35 @@ protected:
const
TimeStamp
from
,
to
;
const
size_t
blockSize
;
/* process() will call one of these sequences:
*
* 1. copyNothing(from, to);
*
* 2. copyStart(from, to, 0);
* foreach(beamlet)
* copyBeamlet(beamlet, 0, from, .., ..);
* foreach(board)
* copyFlags(board, ..);
* copyEnd();
*
* 3. copyStart(from, to, ..);
* foreach(beamlet) {
* copyBeamlet(beamlet, 0, from, .., ..);
* copyBeamlet(beamlet, 1, .., .., ..);
* }
* foreach(board)
* copyFlags(board, ..);
* copyEnd();
*
* Two transfers are needed per beamlet if the requested
* range wraps around the end of the buffer.
*/
virtual
void
copyNothing
(
const
TimeStamp
&
from
,
const
TimeStamp
&
to
)
{
(
void
)
from
,
(
void
)
to
;
}
virtual
void
copyBeamlet
(
unsigned
beamlet
,
unsigned
transfer
,
const
TimeStamp
&
from_ts
,
const
T
*
from
,
size_t
nrSamples
)
=
0
;
virtual
void
copyStart
(
const
TimeStamp
&
from
,
const
TimeStamp
&
to
,
size_t
wrap
)
{
(
void
)
from
,
(
void
)
to
,
(
void
)
wrap
;
}
virtual
void
copyFlags
(
unsigned
transfer
,
const
SparseSet
<
int64
>
&
flags
)
=
0
;
virtual
void
copyBeamlet
(
unsigned
beamlet
,
unsigned
transfer
,
const
TimeStamp
&
from_ts
,
const
T
*
from
,
size_t
nrSamples
)
=
0
;
virtual
void
copyFlags
(
unsigned
board
,
const
SparseSet
<
int64
>
&
flags
)
=
0
;
virtual
void
copyEnd
()
{}
void
copy
(
const
TimeStamp
&
from
,
const
TimeStamp
&
to
);
...
...
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