Skip to content

Usage with uint8_t array #5

Open
@cinderblock

Description

@cinderblock

I have image data in a uint8_t array that takes up a lot of flash space in my embedded project. It's rather simple image patterns so I suspect it should be possible to compress significantly.

At the lowest level, since C strings are basically just arrays of bytes, I feel it should be possible to use this awesome system to get the same compile time compression, but I'm not seeing the necessary syntax.

I bet I could coax my byte array into a string first and use this project directly, but with bytes often outside the ASCII range I expect that will end up rather... "ugly".

I could alternatively compress my image data ahead of time and use some runtime decompressor of my choosing, but that seems more complicated (for now).

So, is there some alternate API that I'm not seeing to use this with an array of bytes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions