diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-11-02 23:15:01 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-11-02 23:15:01 -0700 |
commit | d9f0a3edace7eac5679a5bb33f18ff176cf7f877 (patch) | |
tree | 646e9f32768f36dbac1abfd013b50c07286ef7c5 /src/til.h | |
parent | 5758164a4fd4a65c148aee72159c7cff0010764f (diff) |
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.
Diffstat (limited to 'src/til.h')
-rw-r--r-- | src/til.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5,6 +5,8 @@ #include "til_module_context.h" #include "til_setup.h" +#include <stdint.h> + /* 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 |