Tag Parser
12.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
Variables
Typedefs
Enumerations
a
b
c
d
e
f
g
i
k
l
m
p
r
s
t
v
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
c
d
f
i
t
Related Symbols
:
f
g
i
m
o
t
w
Files
File List
File Members
All
Functions
Variables
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
aspectratio.cpp
Go to the documentation of this file.
1
#include "
./aspectratio.h
"
2
3
using namespace
std;
4
5
namespace
TagParser
{
6
15
AspectRatio::AspectRatio
(std::uint8_t aspectRatioType)
16
{
17
static
const
AspectRatio
predefinedPars[] = {
AspectRatio
(),
AspectRatio
(1, 1),
AspectRatio
(12, 11),
AspectRatio
(10, 11),
AspectRatio
(16, 11),
18
AspectRatio
(40, 33),
AspectRatio
(24, 11),
AspectRatio
(20, 11),
AspectRatio
(32, 11),
AspectRatio
(80, 33),
AspectRatio
(18, 11),
19
AspectRatio
(15, 11),
AspectRatio
(64, 33),
AspectRatio
(160, 99),
AspectRatio
(4, 3),
AspectRatio
(3, 2),
AspectRatio
(2, 1) };
20
if
(aspectRatioType < (
sizeof
(predefinedPars) /
sizeof
(
AspectRatio
))) {
21
*
this
= predefinedPars[aspectRatioType];
22
}
else
{
23
numerator
=
denominator
= 0;
24
}
25
type
= aspectRatioType;
26
}
15
AspectRatio::AspectRatio
(std::uint8_t aspectRatioType) {
…
}
27
28
}
// namespace TagParser
aspectratio.h
TagParser
Contains all classes and functions of the TagInfo library.
Definition
aaccodebook.h:10
TagParser::AspectRatio
The AspectRatio struct defines an aspect ratio.
TagParser::AspectRatio::numerator
std::uint16_t numerator
Definition
aspectratio.h:22
TagParser::AspectRatio::type
std::uint8_t type
Definition
aspectratio.h:21
TagParser::AspectRatio::denominator
std::uint16_t denominator
Definition
aspectratio.h:23
TagParser::AspectRatio::AspectRatio
constexpr AspectRatio()
Constructs an invalid aspect ratio.
Definition
aspectratio.h:29
Generated on Tue Dec 3 2024 17:03:31 for Tag Parser by
1.12.0