Move to makefile for AVIF

This commit is contained in:
Surma
2020-08-03 11:44:17 +01:00
committed by Ingvar Stepanyan
parent 2edb8cbd7e
commit ee99cf6e0b
24 changed files with 1387 additions and 47 deletions

View File

@@ -0,0 +1,11 @@
const fs = require("fs");
const avifEnc = require("./avif_enc.js")(fs.readFileSync("./avif_enc.wasm"));
avifEnc.onRuntimeInitialized = () => {
const avif = avifEnc.encode(
new Uint8Array([255, 0, 0, 255, 0, 255, 0, 255, 0, 0, 255, 255]),
3,
1
);
fs.writeFileSync("lol.avif", avif);
};