Decompressed image looks ugly.

This topic contains 4 replies, has 3 voices, and was last updated by  Harish Kumar 7 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29993

    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.

    #33566

    warmi
    Member

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

    #33567

    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… 🙁 and some or really grt….:-)
    -Harish

    #33568

    Gordon
    Moderator

    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?

    #33569

    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… 🙁

    Thanks in Advance…

    -Harish

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