45 template <
size_t N>
constexpr FourCC(
const char (&str)[
N])
46 :
FourCC(str[0], str[1], str[2], str[3]) {
47 static_assert(
N == 5,
"FourCC string must have exactly 4 characters");
A four-character code (FourCC) identifier.
Definition fourcc.h:25
friend constexpr bool operator<=(const FourCC &a, const FourCC &b)
Less-than-or-equal comparison by numeric value.
Definition fourcc.h:77
constexpr FourCC(char c0, char c1, char c2, char c3)
Constructs a FourCC from four individual characters.
Definition fourcc.h:34
constexpr uint32_t value() const
Returns the packed 32-bit integer value.
Definition fourcc.h:54
friend constexpr bool operator>=(const FourCC &a, const FourCC &b)
Greater-than-or-equal comparison by numeric value.
Definition fourcc.h:82
constexpr FourCC(const char(&str)[N])
Constructs a FourCC from a string literal.
Definition fourcc.h:45
friend constexpr bool operator!=(const FourCC &a, const FourCC &b)
Returns true if the FourCC values are not equal.
Definition fourcc.h:62
friend constexpr bool operator==(const FourCC &a, const FourCC &b)
Returns true if both FourCC values are equal.
Definition fourcc.h:57
friend constexpr bool operator<(const FourCC &a, const FourCC &b)
Less-than comparison by numeric value.
Definition fourcc.h:67
friend constexpr bool operator>(const FourCC &a, const FourCC &b)
Greater-than comparison by numeric value.
Definition fourcc.h:72
Dynamic array container wrapping std::vector.
Definition list.h:40
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19