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
9f4349a9
Commit
9f4349a9
authored
Jan 30, 2019
by
David Flynn
Browse files
ply: remove unused convertRGBToYUVClosedLoop()
parent
7a820607
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmc3/PCCPointSet.h
View file @
9f4349a9
...
...
@@ -767,23 +767,7 @@ public:
color
[
2
]
=
static_cast
<
uint8_t
>
(
v
);
}
}
void
convertRGBToYUVClosedLoop
()
{
// BT709
for
(
auto
&
color
:
colors
)
{
const
uint8_t
r
=
color
[
0
];
const
uint8_t
g
=
color
[
1
];
const
uint8_t
b
=
color
[
2
];
const
double
y
=
std
::
round
(
0.212600
*
r
+
0.715200
*
g
+
0.072200
*
b
);
const
double
u
=
std
::
round
((
b
-
y
)
/
1.8556
+
128.0
);
const
double
v
=
std
::
round
((
r
-
y
)
/
1.5748
+
128.0
);
assert
(
y
>=
0.0
&&
y
<=
255.0
&&
u
>=
0.0
&&
u
<=
255.0
&&
v
>=
0.0
&&
v
<=
255.0
);
color
[
0
]
=
static_cast
<
uint8_t
>
(
y
);
color
[
1
]
=
static_cast
<
uint8_t
>
(
u
);
color
[
2
]
=
static_cast
<
uint8_t
>
(
v
);
}
}
void
convertYUVToRGB
()
{
// BT709
for
(
auto
&
color
:
colors
)
{
...
...
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