Simplify memory management for other C++ codecs

This commit is contained in:
Ingvar Stepanyan
2020-05-14 18:08:42 +01:00
committed by Ingvar Stepanyan
parent 97931bad22
commit 93cbe557cd
25 changed files with 171 additions and 257 deletions

View File

@@ -15,5 +15,5 @@ export async function process(data: ImageData, opts: QuantizeOptions): Promise<I
:
module.quantize(data.data, data.width, data.height, opts.maxNumColors, opts.dither);
return new ImageData(new Uint8ClampedArray(result), data.width, data.height);
return new ImageData(result, data.width, data.height);
}