mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
Free pixels
This commit is contained in:
@@ -65,6 +65,7 @@ val encode(std::string buffer, int width, int height, AvifOptions options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto js_result = Uint8Array.new_(typed_memory_view(output.size, output.data));
|
auto js_result = Uint8Array.new_(typed_memory_view(output.size, output.data));
|
||||||
|
avifRGBImageFreePixels(&srcRGB);
|
||||||
avifImageDestroy(image);
|
avifImageDestroy(image);
|
||||||
avifEncoderDestroy(encoder);
|
avifEncoderDestroy(encoder);
|
||||||
return js_result;
|
return js_result;
|
||||||
|
|||||||
Binary file not shown.
6
codecs/avif/package.json
Normal file
6
codecs/avif/package.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "avif",
|
||||||
|
"scripts": {
|
||||||
|
"build": "../build-cpp.sh"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user