kodi
HDRCapabilities.h
1 /*
2  * Copyright (C) 2005-2021 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 
12 {
13 public:
14  CHDRCapabilities() = default;
15  ~CHDRCapabilities() = default;
16 
17  bool SupportsHDR10() const { return m_hdr10; }
18  bool SupportsHLG() const { return m_hlg; }
19  bool SupportsHDR10Plus() const { return m_hdr10_plus; }
20  bool SupportsDolbyVision() const { return m_dolby_vision; }
21 
22  void SetHDR10() { m_hdr10 = true; }
23  void SetHLG() { m_hlg = true; }
24  void SetHDR10Plus() { m_hdr10_plus = true; }
25  void SetDolbyVision() { m_dolby_vision = true; }
26 
27 private:
28  bool m_hdr10 = false;
29  bool m_hlg = false;
30  bool m_hdr10_plus = false;
31  bool m_dolby_vision = false;
32 };
Definition: HDRCapabilities.h:11