Skip to content

Need a function to decode a single pixel #562

Open
@Atrix256

Description

@Atrix256

Thanks for this excellent library!

In a graphics development / debugging application (https://github.com/electronicarts/gigi/) we have a feature where a user can click on a pixel of an image being shown in a debug context, and the UI will show the value of the pixel.

This is done by reading back the resource and displaying the values under the pixel.

This works fine for uncompressed formats, but for compressed formats, it's decompressing the entire texture.

It would be really nice if there was an interface where you could ask for a single pixel, and it could internally do the minimal amount of work needed to get the value - like maybe decoding the single block containing that pixel.

I found this library which can help, but it doesn't support BC6, and it would be nice to use your library, as I'm using it to load and save dds images.
https://github.com/richgel999/bc7enc

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions