Commit fb85fc7d authored by NzSN's avatar NzSN

update

parent 1a70d8c1
......@@ -22,7 +22,7 @@ describe("ParaEncoder", () => {
const data = new Uint8Array([...Array(RGBAFrameSize).keys()]);
let st = new Date();
for (let i = 0; i < 30000; ++i) {
for (let i = 0; i < 3000; ++i) {
await paraEnc.encode(data);
}
......
......@@ -102,7 +102,7 @@ FLAGS_ENCODER=(
-Wno-deprecated-declarations -Wno-pointer-sign -Wno-implicit-int-float-conversion -Wno-switch -Wno-parentheses -Qunused-arguments
-lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lpostproc -lm -lx264 -lz
$WASM_DIR/encoder.c
$WASM_DIR/encoder.cc
-s FORCE_FILESYSTEM=1
-s WASM=1
......@@ -113,7 +113,7 @@ FLAGS_ENCODER=(
-s EXPORT_NAME="createEncoder" # assign export name for browser
-s EXPORTED_FUNCTIONS="[_main,_malloc,_free]" # export main and proxy_main funcs
-s EXPORTED_RUNTIME_METHODS="[FS, cwrap, ccall, setValue, writeAsciiToMemory, getValue]" # export preamble funcs
-s INITIAL_MEMORY=268435456 # 64 KB * 1024 * 16 * 2047 = 2146435072 bytes ~= 2 GB, 268435456 =256M, 134,217,728 =128M
-s INITIAL_MEMORY=536870912 # 64 KB * 1024 * 16 * 2047 = 2146435072 bytes ~= 2 GB, 268435456 =256M, 134,217,728 =128M
-s ASSERTIONS=1
--pre-js $WORKPATH/pre.js
--post-js $WORKPATH/post.js
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment