How to save the image conversion result data in memory stream?

I want to save the image conversion results in the memory stream, but I can’t find a suitable way, only found a way to save to a file, what should I do?


If you are using a recent version of PVRTexLib (v5.0+) then the following APIs might be of interest:

  • PVRTexLib_GetTextureDataSize → Size of texture data in bytes.
  • PVRTexLib_GetTextureData[Const]Ptr → Direct access to the texture data (does not include the file header).

Using the above APIs and a simple memcpy(), you can save the encoded texture data to a memory location of your choice.

Kind regards,

1 Like

Thank you,I’ll try it

© Imagination Technologies Limited. All rights reserved.
Privacy PolicyTerms & ConditionsTrademarksCookies