diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-02-02 11:26:23 +0200 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-03-26 15:44:00 +0200 |
| commit | f758e324e17b52116075bb9175a3dd03d223a424 (patch) | |
| tree | b18fba90e2b8498f8228f3eff9bc60adf3153cf2 /kms++util/inc | |
| parent | 6c49fe5b811464f59e3a31b869734071da0ec7c1 (diff) | |
kms++util: New template based conversion & testpat code
New templated conversion and test pattern code.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kms++util/inc')
| -rw-r--r-- | kms++util/inc/kms++util/kms++util.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/kms++util/inc/kms++util/kms++util.h b/kms++util/inc/kms++util/kms++util.h index f046a78..3006a28 100644 --- a/kms++util/inc/kms++util/kms++util.h +++ b/kms++util/inc/kms++util/kms++util.h @@ -29,7 +29,19 @@ void draw_text(IFramebuffer& buf, uint32_t x, uint32_t y, const std::string& str void draw_color_bar(IFramebuffer& buf, int old_xpos, int xpos, int width); -void draw_test_pattern(IFramebuffer& fb, YUVType yuvt = YUVType::BT601_Lim); +void draw_test_pattern_old(IFramebuffer& fb, YUVType yuvt = YUVType::BT601_Lim); +void draw_test_pattern_single_old(IFramebuffer& fb, YUVType yuvt = YUVType::BT601_Lim); +void draw_test_pattern_multi_old(IFramebuffer& fb, YUVType yuvt = YUVType::BT601_Lim); + +struct TestPatternOptions { + std::string pattern; + RecStandard rec = RecStandard::BT709; + ColorRange range = ColorRange::Limited; +}; + +void draw_test_pattern(IFramebuffer& fb, const TestPatternOptions& options = {}); +void draw_test_pattern_single(IFramebuffer& fb, const TestPatternOptions& options = {}); +void draw_test_pattern_multi(IFramebuffer& fb, const TestPatternOptions& options = {}); } // namespace kms #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
