Skip to content

Feature request: record mipmap generation options for ktx create/encode #1196

Description

@walcht

Since I'm still working on OIIO KTX2 support, regenerating as-close-as-possible of the original KTX2 input to OIIO is crucial. One of the aspects is to re-generate the same (as usual, as close as possible given the lossy nature) mipmaps.

ktx create (probably also ktx encode) does not record mipmap re-generation options so the following command doesn't save any metadata about the used mipmap filter (among other options as well).

ktx create --testrun --format R8G8B8_SRGB --generate-mipmap --mipmap-filter quadratic_approx tests/resources/input/png/kodim17.png kodim17_quadratic_approx_filer.ktx2

If this is reasonable, I will open a PR + CTS PR to add this.

For the moment, from the OIIO side, I just default to the same defaults used by ktx tools for mipmap regeneration (same with all other defaults, e.g., for UASTC).

I might open quite a lot of issues since I deal with a lot of edge cases (however, no pressure at all to address these as soon as possible).

Edit: wrongly used --runtime-mipmap at first. Issue still stands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions