Imagination PowerVR SDK Blog

Decompressed image looks ugly.

pvrtextool

#1

Some images are decompressed and is not in expected format.

Kindly help me regarding the same.

Wrong Decompressed screenshot:

http://7368606965002926267-a-1802744773732722657-s-sites.googlegroups.com/site/harishkumarselvarajfamily/home/wrong.PNG

Right Decompressed screenshot :

http://7368606965002926267-a-1802744773732722657-s-sites.googlegroups.com/site/harishkumarselvarajfamily/home/Right.PNG

Thanks in advance.


#2

I had this kind of problem occur only with PVRs encoded using Photoshop plugin …



#3

Hi,
While compressing, i used the PVR TexTool, and it looks fine in PVR view tool and also in my target system, but i, myself wrotea view tool and used PVR lib to decompress and those screenshots where the output frm it… some are ugly… :frowning: and some or really grt…:slight_smile:
-Harish


#4

What’s the actual code you’ve used to decompress the PVRs and what dimensions, format are they? Do they have MIPmaps encoded with them? Are you doing this on a 64bit platform?


#5

Hello Gordon,

Thank you for your reply and sorry for the delayed info.

Options Used:
PVRTexTool -fOGLPVRTC4 -m -yflip1 -x256 -y256 -i${IMAGE_NAME} -o${NEW_NAME}

Code Used:

CPVRTexture CompressedTexture(rfrTexture.pu8Data); // pu8Data contains PVR file content
CPVRTexture DeCompressedTexture;
PVRTextureUtilities::getPointer()->DecompressPVR(CompressedTexture,DeCompressedTexture);
// now i assume i got the raw image and process further to get it displayed…


It is working for some pvr images, very accurately and for some images, as we discussed earlier… :frowning:

Thanks in Advance…

-Harish