From d9f0a3edace7eac5679a5bb33f18ff176cf7f877 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 2 Nov 2023 23:15:01 -0700 Subject: til,checkers: move checkers_rgb_to_uint32() to libtil Becomes til_rgb_to_uint32(). Nothing functionally changed, just making this generally available for anything wanting to parse an rgb hex string into a uint32 packed pixel in a setup_func. --- src/til.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/til.h') diff --git a/src/til.h b/src/til.h index 9049a0b..3126ced 100644 --- a/src/til.h +++ b/src/til.h @@ -5,6 +5,8 @@ #include "til_module_context.h" #include "til_setup.h" +#include + /* til_fragmenter_t produces fragments from an input fragment, num being the desired fragment for the current call. * return value of 1 means a fragment has been produced, 0 means num is beyond the end of fragments. */ typedef int (*til_fragmenter_t)(til_module_context_t *context, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment); @@ -59,5 +61,6 @@ int til_fragmenter_slice_per_cpu(til_module_context_t *context, const til_fb_fra int til_fragmenter_slice_per_cpu_x16(til_module_context_t *context, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment); int til_fragmenter_tile64(til_module_context_t *context, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment); int til_value_to_pos(const char **options, const char *value, unsigned *res_pos); +int til_rgb_to_uint32(const char *str, uint32_t *res); #endif -- cgit v1.2.1