- changed return value of CreatePalettedPixels.
The new struct will allpw return of static pixel data without reallocation and copying.
This commit is contained in:
parent
4e4642d0ed
commit
1a0aa95ff4
24 changed files with 103 additions and 84 deletions
|
|
@ -98,9 +98,9 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
TArray<uint8_t> CreatePalettedPixels(int conversion) override
|
||||
PalettedPixels CreatePalettedPixels(int conversion) override
|
||||
{
|
||||
TArray<uint8_t> Pix(512, true);
|
||||
PalettedPixels Pix(512);
|
||||
if (conversion == luminance)
|
||||
{
|
||||
memcpy(Pix.Data(), Pixels, 512);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue