Ken Carpenter

Results 18 comments of Ken Carpenter

Thanks for the feedback. We're considering adding more RAM to the system, but I'd still like to use less memory either way, so I'll try to dig into this in...

My proposal is the following: - Create a new function `quirc_init_with_image(q,w,h,image)` (open to name suggestions). - Assert or perform runtime check that `QUIRC_PIXEL_ALIAS_IMAGE` is `true`. As @kAworu suggested, anyone using...

In my sample code, it's called instead of `quirc_resize()`, which is the first time you specify the image size in the current way of things. If we want to allow...

As a partial review so we're not talking in abstracts anymore, here is the main code that I wrote: ``` /* You will call this instead of quirc_new() */ bool...

@dlbeer Are you OK with exposing `struct quirc` and `quirc_pixel_t`? If so, I'll revise and submit a PR that we can iterate on tonight.

Yes, I allocate a single `struct quirc` once at startup (and a single image buffer that gets reused). So if I understand your suggestion, I would remove the `quirc` parameter...

The only downside I can think of is if `struct quirc` ever needs any dynamic allocation in the future, then that would still need to be done on the global...

Maybe I'm still missing something, but the API for `quirc_init()` in this PR doesn't care if you statically allocated the memory or dynamically allocated it. I don't think it makes...

I needed this recently and took a pass at it in pure Slint and got it mostly working, but it really wants to have two features: 1. Tiled background images...

So that rectangle is defining the insets? Will the center segment be tiled as the image expands?