Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Satoru KUMA
MPEG129-m52280
Commits
1aa17083
Commit
1aa17083
authored
Aug 09, 2018
by
David Flynn
Browse files
geom: avoid copying constructing octree root node
This reduces confusion when adding a unique_ptr to the node structure.
parent
0ddede25
Changes
2
Hide whitespace changes
Inline
Side-by-side
tmc3/PCCTMC3Decoder.h
View file @
1aa17083
...
...
@@ -596,14 +596,14 @@ private:
int
nodeSizeLog2
=
gbh
.
geom_max_node_size_log2
;
// push the first node
PCCOctree3Node
node00
;
fifo
.
emplace_back
();
PCCOctree3Node
&
node00
=
fifo
.
back
();
node00
.
start
=
uint32_t
(
0
);
node00
.
end
=
uint32_t
(
pointCloud
.
getPointCount
());
node00
.
pos
=
uint32_t
(
0
);
node00
.
neighPattern
=
0
;
node00
.
numSiblingsPlus1
=
8
;
node00
.
siblingOccupancy
=
0
;
fifo
.
push_back
(
node00
);
size_t
processedPointCount
=
0
;
std
::
vector
<
uint32_t
>
values
;
...
...
tmc3/PCCTMC3Encoder.h
View file @
1aa17083
...
...
@@ -583,14 +583,14 @@ private:
pcc
::
ringbuf
<
PCCOctree3Node
>
fifo
(
pointCloud
.
getPointCount
()
+
1
);
// push the first node
PCCOctree3Node
node00
;
fifo
.
emplace_back
();
PCCOctree3Node
&
node00
=
fifo
.
back
();
node00
.
start
=
uint32_t
(
0
);
node00
.
end
=
uint32_t
(
pointCloud
.
getPointCount
());
node00
.
pos
=
uint32_t
(
0
);
node00
.
neighPattern
=
0
;
node00
.
numSiblingsPlus1
=
8
;
node00
.
siblingOccupancy
=
0
;
fifo
.
push_back
(
node00
);
// map of pointCloud idx to DM idx, used to reorder the points
// after coding.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment