PVRTexToolCLI.exe -l option using PVRTC library

This topic contains 2 replies, has 2 voices, and was last updated by  Slion 2 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #48782

    Slion
    Member

    How can I do the equivalent of the -l PVRTexToolCLI.exe command line parameter using the PVRTC library?
    In fact if someone has code samples that does the equivalent of the following command line it would be fantastic
    PVRTexToolCLI.exe -i myasset.png -o myasset-pvrtc24bleed.pvr -f PVRTC2_4 -q pvrtcbest -l

    #48800

    PaulL
    Admin

    You’ll first need to use another library to decompress the .png. Set up your pvrtexture::CPVRTextureHeader object, and then pass that and the raw bitmap data pointer to a pvrtexture::CPVRTexture object. Then you can call pvrtexture::Bleed() with the texture as the parameter.

    The documentation in the SDK folder \PowerVR_Tools\PVRTexTool\Documentation should have more detail about using the PVRTexTool library.

    #48801

    Slion
    Member

    All right so -l is indeed that Bleed function. It was not quite clear from the docs/comments on both flag and function.
    Thanks a lot Paul.

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.