Debian Codegraph @

xbmc/windowing/VideoSync.h

raw
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 "threads/Event.h"
12
13 class CVideoReferenceClock;
14
15 class CVideoSync
16 {
17 public:
18 explicit CVideoSync(CVideoReferenceClock* clock) { m_refClock = clock; }
19 virtual ~CVideoSync() = default;
20 virtual bool Setup() = 0;
21 virtual void Run(CEvent& stop) = 0;
22 virtual void Cleanup() = 0;
23 virtual float GetFps() = 0;
24 virtual void RefreshChanged() {}
25
26 protected:
27 float m_fps;
28 CVideoReferenceClock* m_refClock;
29 };