kodi
StreamUtils.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <cstdint>
12 #include <string>
13 
14 static constexpr int MP4_BOX_HEADER_SIZE = 8;
15 
17 {
18 public:
19  static int GetCodecPriority(const std::string& codec);
20 
29  static constexpr uint32_t MakeFourCC(char c1, char c2, char c3, char c4)
30  {
31  return ((static_cast<uint32_t>(c1) << 24) | (static_cast<uint32_t>(c2) << 16) |
32  (static_cast<uint32_t>(c3) << 8) | (static_cast<uint32_t>(c4)));
33  }
34 };
static constexpr uint32_t MakeFourCC(char c1, char c2, char c3, char c4)
Make a FourCC code as unsigned integer value.
Definition: StreamUtils.h:29
Definition: StreamUtils.h:16