GCC Code Coverage Report


Directory: ./
File: channeloutput/processors/HoldValueOutputProcessor.h
Date: 2026-10-29 08:11:58
Exec Total Coverage
Lines: 3 4 75.0%
Functions: 1 2 50.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 "OutputProcessor.h"
15 #include "fpp-json-fwd.h"
16
17 class HoldValueOutputProcessor : public OutputProcessor {
18 public:
19 HoldValueOutputProcessor(const Json::Value& config);
20 virtual ~HoldValueOutputProcessor();
21
22 virtual void ProcessData(unsigned char* channelData) const override;
23
24 ✗ virtual OutputProcessorType getType() const override { return HOLDVALUE; }
25
26 4 virtual void GetRequiredChannelRanges(const std::function<void(int, int)>& addRange) override {
27 4 addRange(start, start + count - 1);
28 4 }
29
30 protected:
31 int start;
32 int count;
33 unsigned char* lastValues;
34 std::string model;
35 };
36