GCC Code Coverage Report


Directory: ./
File: playlist/PlaylistEntrySequence.h
Date: 2026-10-29 08:11:58
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 3 3 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2 /*
3 * This file is part of the Falcon Player (FPP) and is Copyright (C)
4 * 2013-2022 by the Falcon Player Developers.
5 *
6 * The Falcon Player (FPP) is free software, and is covered under
7 * multiple Open Source licenses. Please see the included 'LICENSES'
8 * file for descriptions of what files are covered by each license.
9 *
10 * This source file is covered under the LGPL v2.1 as described in the
11 * included LICENSE.LGPL file.
12 */
13
14 #include <string>
15 #include "fpp-json-fwd.h"
16
17 #include "PlaylistEntryBase.h"
18
19 class PlaylistEntrySequence : public PlaylistEntryBase {
20 public:
21 PlaylistEntrySequence(Playlist* playlist, PlaylistEntryBase* parent = NULL);
22 virtual ~PlaylistEntrySequence();
23
24 virtual int Init(Json::Value& config) override;
25
26 int PreparePlay(int frame = 0);
27 virtual int StartPlaying(void) override;
28 virtual int Process(void) override;
29 virtual int Stop(void) override;
30
31 virtual void Pause() override;
32 virtual bool IsPaused() override;
33 virtual void Resume() override;
34
35 virtual void Dump(void) override;
36
37 virtual Json::Value GetConfig(void) override;
38 virtual Json::Value GetMqttStatus(void) override;
39
40 virtual uint64_t GetLengthInMS() override;
41 virtual uint64_t GetElapsedMS() override;
42
43 void disableAdjustTiming() { m_adjustTiming = false; }
44 46 void setAdjustTiming(bool adjust) { m_adjustTiming = adjust; }
45
46 11575 const std::string& GetSequenceName(void) const { return m_sequenceName; }
47
48 // int, like the member and Sequence::GetSeqStepTime(): callers subtract it
49 // from signed offsets, and an unsigned return turned "offset - frameTime"
50 // into ~4e9 whenever the offset was under one frame.
51 1663 int GetSequenceFrameTime(void) { return m_sequenceFrameTime; }
52
53 private:
54 long long m_startTme;
55 bool m_adjustTiming;
56 bool m_prepared;
57 int m_duration;
58 int m_sequenceFrameTime;
59 std::string m_sequenceName;
60
61 int m_pausedFrame;
62 };
63