简体   繁体   English

如何在C ++中将PVR解压缩为原始格式8888?

[英]How to decompress pvr to raw format 8888 in c++?

Im looking for informations, how to uncompress pvr data to raw format like 8888. 我正在寻找信息,如何将pvr数据解压缩为原始格式,例如8888。

For png there is libpng, for jpeg is libjpeg, is there something for pvr? 对于png有libpng,对于jpeg是libjpeg,是否有pvr?

I dont want to use compressed texture in OpenGL (i have my reasons). 我不想在OpenGL中使用压缩纹理(我有我的理由)。

I know how to get infomation from header data, but how to uncompress image data from pvr? 我知道如何从标头数据获取信息,但是如何从pvr解压缩图像数据?

You can find source code to decompress PVR texture in Imagination PowerVR OpenGL ES SDK located here: http://www.imgtec.com/powervr/insider/sdk/KhronosOpenGLES2xSGX.asp 您可以在以下位置的Imagination PowerVR OpenGL ES SDK中找到用于解压缩PVR纹理的源代码: http : //www.imgtec.com/powervr/insider/sdk/KhronosOpenGLES2xSGX.asp

You'll need following source files: 您需要以下源文件:

  • PVRTDecompress.h/cpp PVRTDecompress.h / CPP
  • PVRTTexture.h/cpp PVRTTexture.h / CPP
  • PVRTGlobal.h PVRTGlobal.h

Alternatively look at source code in oolongengine - it uses same source code to decompress PVR textures: 或者查看oolongengine中的源代码-它使用相同的源代码解压缩PVR纹理:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM