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
7683665d
Commit
7683665d
authored
May 17, 2022
by
Linshizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6ff90b93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
ENCH264Group.spec.js
tests/ENCH264Group.spec.js
+10
-7
No files found.
tests/ENCH264Group.spec.js
View file @
7683665d
...
...
@@ -41,33 +41,36 @@ describe("H264EncWWGroup Spec", () => {
fit
(
"Encode By H264EncWWGroup with direct write"
,
async
()
=>
{
const
RGBAFrameSize
=
1920
*
1080
*
4
;
let
grp
=
new
H264EncWWGroup
(
"h264enc"
,
2
,
{
let
grp
=
new
H264EncWWGroup
(
"h264enc"
,
8
,
{
encchnlsize
:
RGBAFrameSize
*
10
,
bridgechnlsize
:
Math
.
pow
(
2
,
25
),
blockbased
:
true
,
blocksize
:
RGBAFrameSize
,
});
await
grp
.
start
();
const
data
=
new
Uint8Array
([...
Array
(
RGBAFrameSize
).
keys
()]);
for
(
let
i
=
0
;
i
<
30
;
++
i
)
{
for
(
let
i
=
0
;
i
<
30
0
;
++
i
)
{
let
buffers
=
[];
while
(
true
)
{
buffers
=
grp
.
directWPrepare
(
RGBAFrameSize
);
if
(
buffers
>
0
)
if
(
buffers
.
length
>
0
)
break
;
else
{
console
.
log
(
"Sleep"
);
await
sleep
(
30
);
}
}
expect
(
buffers
.
length
).
toBe
(
1
);
buffers
[
0
].
set
(
data
,
0
);
grp
.
directWConfirm
();
await
grp
.
directWConfirm
();
}
await
grp
.
dispatch
(
null
);
await
waitCond
(()
=>
grp
.
isDone
());
let
result
=
await
grp
.
getResult
();
grp
.
terminate
();
},
30000
);
},
30000
00
);
})
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