Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
ParaEncode
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ParaEncode
Commits
fb85fc7d
Commit
fb85fc7d
authored
May 13, 2022
by
NzSN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1a70d8c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
paraEncodeSpec.spec.js
tests/paraEncodeSpec.spec.js
+1
-1
wasm-build.sh
wasm-build.sh
+2
-2
No files found.
tests/paraEncodeSpec.spec.js
View file @
fb85fc7d
...
...
@@ -22,7 +22,7 @@ describe("ParaEncoder", () => {
const
data
=
new
Uint8Array
([...
Array
(
RGBAFrameSize
).
keys
()]);
let
st
=
new
Date
();
for
(
let
i
=
0
;
i
<
3000
0
;
++
i
)
{
for
(
let
i
=
0
;
i
<
3000
;
++
i
)
{
await
paraEnc
.
encode
(
data
);
}
...
...
wasm-build.sh
View file @
fb85fc7d
...
...
@@ -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.c
c
-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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment