[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / utils / StreamUtils.h
blob079cfa3f5c62b2ffe86f9cbcabd18766c9206a9e
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include <string>
13 static constexpr int MP4_BOX_HEADER_SIZE = 8;
15 class StreamUtils
17 public:
18 static int GetCodecPriority(const std::string& codec);
20 /*!
21 * \brief Make a FourCC code as unsigned integer value
22 * \param c1 The first FourCC char
23 * \param c2 The second FourCC char
24 * \param c3 The third FourCC char
25 * \param c4 The fourth FourCC char
26 * \return The FourCC as unsigned integer value
28 static constexpr uint32_t MakeFourCC(char c1, char c2, char c3, char c4)
30 return ((static_cast<uint32_t>(c1) << 24) | (static_cast<uint32_t>(c2) << 16) |
31 (static_cast<uint32_t>(c3) << 8) | (static_cast<uint32_t>(c4)));