Imagination PowerVR SDK Blog

PVRTexToolCLI bug encoding ETC2_RGB_A1, ETC2_RGB_A1,UBN,sRGB

pvrtextool

#1

Test command:
“PVRTexToolCLI -i background.png -o background.pvr -f ETC2_RGB_A1”

Error message produced.

INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
testerr: 193, etcerr: 0.000000
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!
INVALID ALPHA DATA!!

Test system: Xubuntu 14.04

Is this a bug in the PVRTexToolCLI?


#2

Thanks for reporting the issue. I’ll discuss it with the TexTool lead and will get back to you.


#3

With the latest version of PVRTexTool CLI (3.4, SDK Version: 3.5@3523712) I wasn’t able to reproduce the issue on Ubuntu 14.04 64-bit. I used the background.png from our SDK’s ExampleUI demo as input.

[blockquote]$ PVRTexToolCLI -i background.png -o background.pvr -f ETC2_RGB_A1
Compressing…
Saved texture to background.pvr
[/blockquote]

If you used a different source texture for your test, can you share it with us?


#4

Hi Joe,

Here’s an image from googling “png file”.
I ran:
/opt/Imagination/PowerVR_Graphics/PowerVR_Tools/PVRTexTool/CLI/Linux_x86_64/PVRTexToolCLI -i apple_raw.png -o apple_raw.pvr -f ETC2_RGB_A1
I was able to get an output pvr file this time, but there are lots of “INVALID ALPHA DATA” messages,


#5

Thanks for sharing that image. I was able to reproduce the problem on Ubuntu 14.04 x86-64 with it. I’ve filed bug BRN57719 against PVRTexTool. We will try to fix the issue in a future release.