Wait hold on a few minutes!, wait about 2-5 minutes and then get my latest version!
I just made the code more efficient by getting the byte data by const reference!
**C++ Pixel Core**
Here's the core of my C++ code above where I turn the loaded byte array into Linear Color Pixel data!
**Note how the provided format is BGRA** so I have to re-arrange the values when I send them out to the FLinearColor constructor!
```
const TArray<uint8>& ByteArray = *UncompressedBGRA;
for(int32 v = 0; v < ByteArray.Num(); v+=4)
{
if(!ByteArray.IsValidIndex(v+3))
{
break;
}
const uint8& B = ByteArray[v];
const uint8& G = ByteArray[v+1];
const uint8& R = ByteArray[v+2];
const uint8& A = ByteArray[v+3];
OutPixels.Add(FLinearColor(R,G,B,A));
}
```
Plugin Download ( Tiny file, about 0.5 MB )
Itโs ready now, top-most link, April 17th!
**Latest Download From the UE4 Wiki Site **
https://wiki.unrealengine.com/File:VictoryPlugin.zip