From 549c347d6feb2e94a810a720c97a8bf0f57317a1 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 4 May 2026 16:19:04 +0300 Subject: kms++util: Replace test-pattern generator with pixpat Switch draw_test_pattern() to call libpixpat (linked statically into libkms++util.so) instead of the in-tree pattern generator. Pixpat covers every pattern (kmstest, smpte, solid colors) and every pixel format the previous generator handled, so behavior is unchanged for all callers. Drop the now-unused machinery: conv.h and conv-*.h template writers, color16.h (RGB16/YUV16 plus conversions), the *_old / _single / _multi declarations that had no definitions or callers, and the c_draw_test_pattern C ABI which had no callers anywhere in the tree. RecStandard and ColorRange move from color16.h directly into kms++util.h, since they are still part of the public TestPatternOptions struct. --- kms++util/meson.build | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'kms++util/meson.build') diff --git a/kms++util/meson.build b/kms++util/meson.build index e2beed6..dcdae8f 100644 --- a/kms++util/meson.build +++ b/kms++util/meson.build @@ -19,7 +19,6 @@ libkmsxxutil_sources = files([ public_headers = [ 'inc/kms++util/color.h', - 'inc/kms++util/color16.h', 'inc/kms++util/kms++util.h', 'inc/kms++util/stopwatch.h', 'inc/kms++util/cpuframebuffer.h', @@ -29,7 +28,7 @@ public_headers = [ 'inc/kms++util/resourcemanager.h', ] -private_includes = include_directories('src', 'inc', '../ext/mdspan/include') +private_includes = include_directories('src', 'inc') public_includes = include_directories('inc') thread_dep = dependency('threads', required : false) @@ -40,7 +39,11 @@ if thread_dep.found() libkmsxxutil_args += [ '-DHAS_PTHREAD' ] endif -libkmsxxutil_deps = [ libkmsxx_dep, thread_dep ] +pixpat_proj = subproject('pixpat', + default_options : ['config=pixpat-native/profiles/pattern_only.toml']) +libpixpat_dep = pixpat_proj.get_variable('libpixpat_static_dep') + +libkmsxxutil_deps = [ libkmsxx_dep, thread_dep, libpixpat_dep ] libkmsxxutil = library('kms++util', libkmsxxutil_sources, -- cgit v1.2.3