xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
yuv.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/byte>
6
#include <xtd/string>
7
#include <xtd/uint32>
8
10
namespace
xtd
{
12
namespace
drawing
{
22
struct
yuv
{
24
28
xtd::single
y
= .0f;
31
xtd::single
u
= .0f;
34
xtd::single
v
= .0f;
36
38
45
[[nodiscard]]
static
auto
from_yuv
(
xtd::single
y
,
xtd::single
u
,
xtd::single
v
)
noexcept
->
xtd::drawing::yuv
{
46
return
yuv
{.y =
y
, .u =
u
, .v =
v
};
47
}
48
51
[[nodiscard]]
static
auto
from_yuv
(
const
yuv
& value)
noexcept
->
xtd::drawing::yuv
{
52
return
value;
53
}
54
55
57
friend
auto
operator <<(std::ostream& os,
const
yuv
& value) -> std::ostream& {
58
return
os <<
xtd::string::format
(
"yuv [y = {}, u = {}, v = {}]"
, value.y, value.u, value.v);
59
};
61
};
62
}
63
}
xtd::basic_string< char >::format
static auto format(const basic_string< char > &fmt, args_t &&... args) -> basic_string
xtd::single
float single
Represents a single-precision floating-point number.
Definition
single.hpp:23
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::drawing::yuv
The yuv struct.
Definition
yuv.hpp:22
xtd::drawing::yuv::v
xtd::single v
Gets or sets the v component value of this xtd::drawing::yuv struct.
Definition
yuv.hpp:34
xtd::drawing::yuv::from_yuv
static auto from_yuv(xtd::single y, xtd::single u, xtd::single v) noexcept -> xtd::drawing::yuv
Creates a xtd::yuv struct from the specified y, u, and v single values.
Definition
yuv.hpp:45
xtd::drawing::yuv::y
xtd::single y
Gets or sets the y component value of this xtd::drawing::yuv struct.
Definition
yuv.hpp:28
xtd::drawing::yuv::from_yuv
static auto from_yuv(const yuv &value) noexcept -> xtd::drawing::yuv
Creates a xtd::yuv struct from the specified axtd::drawing::yuv value.
Definition
yuv.hpp:51
xtd::drawing::yuv::u
xtd::single u
Gets or sets the u component value of this xtd::drawing::yuv struct.
Definition
yuv.hpp:31
Generated on
for xtd by
Gammasoft
. All rights reserved.