Imagination PowerVR SDK Blog

PVRTexToolCLI.exe -l option using PVRTC library

pvrtextool

#1

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


#2

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.


#3

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.