Tag Parser  9.1.3
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
size.cpp
Go to the documentation of this file.
1 #include "./size.h"
2 
3 namespace TagParser {
4 
9 const char *Size::abbreviation() const
10 {
11  if (*this >= Size(7680, 4320)) {
12  return "8k";
13  } else if (*this >= Size(3840, 2160)) {
14  return "4k";
15  } else if (*this >= Size(1920, 1080)) {
16  return "1080p";
17  } else if (*this >= Size(1280, 720)) {
18  return "720p";
19  } else if (*this >= Size(704, 576)) {
20  return "576p";
21  } else if (*this >= Size(640, 480)) {
22  return "480p";
23  } else if (*this >= Size(480, 320)) {
24  return "320p";
25  } else if (*this >= Size(320, 240)) {
26  return "240p";
27  }
28  return "<240p";
29 }
30 
31 } // namespace TagParser
TagParser
Contains all classes and functions of the TagInfo library.
Definition: aaccodebook.h:10
TagParser::Size::Size
constexpr Size()
Constructs a new Size.
Definition: size.h:41
TagParser::Size::abbreviation
const char * abbreviation() const
Returns an abbreviation for the current instance, eg.
Definition: size.cpp:9
size.h