Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
0d9e0004
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0d9e0004
编写于
2月 23, 2022
作者:
L
ling990
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
videoEncoder Signed-off-by: ling990 <liling96@huawei.com>
Signed-off-by:
N
ling990
<
liling96@huawei.com
>
上级
0795dc4a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
87 addition
and
121 deletion
+87
-121
multimedia/media/media_js_standard/videoEncoder/src/main/js/test.zip
...media/media_js_standard/videoEncoder/src/main/js/test.zip
+0
-3
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js
...main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js
+1
-1
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js
.../main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js
+15
-14
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityCallbackTest.test.js
.../test/VideoEncoderSoftwareReliabilityCallbackTest.test.js
+68
-100
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityPromiseTest.test.js
...s/test/VideoEncoderSoftwareReliabilityPromiseTest.test.js
+3
-3
未找到文件。
multimedia/media/media_js_standard/videoEncoder/src/main/js/test.zip
已删除
100644 → 0
LFS
浏览文件 @
0795dc4a
文件已删除
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js
浏览文件 @
0d9e0004
...
@@ -31,7 +31,7 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () {
...
@@ -31,7 +31,7 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () {
let
stopBuffer
=
false
;
let
stopBuffer
=
false
;
const
events
=
require
(
'
events
'
);
const
events
=
require
(
'
events
'
);
const
eventEmitter
=
new
events
.
EventEmitter
();
const
eventEmitter
=
new
events
.
EventEmitter
();
const
BASIC_PATH
=
'
/data/media/
encoder
/
'
;
const
BASIC_PATH
=
'
/data/media/
results
/
'
;
beforeAll
(
function
()
{
beforeAll
(
function
()
{
console
.
info
(
'
beforeAll case
'
);
console
.
info
(
'
beforeAll case
'
);
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js
浏览文件 @
0d9e0004
...
@@ -215,8 +215,8 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -215,8 +215,8 @@ describe('videoSoftwareEncoderFuncPromise', function () {
await
videoCaps
.
getPreferredFrameRate
(
width
,
height
).
then
((
valueRange
)
=>
{
await
videoCaps
.
getPreferredFrameRate
(
width
,
height
).
then
((
valueRange
)
=>
{
console
.
info
(
"
case getPreferredFrameRate valueRange success
"
);
console
.
info
(
"
case getPreferredFrameRate valueRange success
"
);
if
(
typeof
(
valueRange
)
!=
'
undefined
'
)
{
if
(
typeof
(
valueRange
)
!=
'
undefined
'
)
{
console
.
info
(
'
getPreferredFrameRate.min
'
+
valueRange
.
min
);
console
.
info
(
'
getPreferredFrameRate.min
:
'
+
valueRange
.
min
);
console
.
info
(
'
getPreferredFrameRate.max
'
+
valueRange
.
max
);
console
.
info
(
'
getPreferredFrameRate.max
:
'
+
valueRange
.
max
);
}
else
{
}
else
{
console
.
info
(
'
case getPreferredFrameRate valueRange is not defined
'
);
console
.
info
(
'
case getPreferredFrameRate valueRange is not defined
'
);
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -225,8 +225,8 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -225,8 +225,8 @@ describe('videoSoftwareEncoderFuncPromise', function () {
await
videoCaps
.
getSupportedFrameRate
(
width
,
height
).
then
((
valueRange
)
=>
{
await
videoCaps
.
getSupportedFrameRate
(
width
,
height
).
then
((
valueRange
)
=>
{
console
.
info
(
"
case getSupportedFrameRate valueRange success
"
);
console
.
info
(
"
case getSupportedFrameRate valueRange success
"
);
if
(
typeof
(
valueRange
)
!=
'
undefined
'
)
{
if
(
typeof
(
valueRange
)
!=
'
undefined
'
)
{
console
.
info
(
'
getSupportedFrameRate.min
'
+
valueRange
.
min
);
console
.
info
(
'
getSupportedFrameRate.min
:
'
+
valueRange
.
min
);
console
.
info
(
'
getSupportedFrameRate.max
'
+
valueRange
.
max
);
console
.
info
(
'
getSupportedFrameRate.max
:
'
+
valueRange
.
max
);
}
else
{
}
else
{
console
.
info
(
'
case getSupportedFrameRate valueRange is not defined
'
);
console
.
info
(
'
case getSupportedFrameRate valueRange is not defined
'
);
expect
().
assertFail
();
expect
().
assertFail
();
...
@@ -328,12 +328,13 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -328,12 +328,13 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_00_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_00_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test stop after last frame
"
);
console
.
info
(
"
case test stop after last frame
"
);
let
savepath
=
BASIC_PATH
+
'
0000.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0000.
es
'
;
let
name
=
'
avenc_mpeg4
'
;
let
name
=
'
avenc_mpeg4
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
let
framerate
=
60
;
let
framerate
=
60
;
let
mediaDescription
=
{
let
mediaDescription
=
{
"
codec_mime
"
:
"
video/avc
"
,
"
width
"
:
width
,
"
width
"
:
width
,
"
height
"
:
height
,
"
height
"
:
height
,
"
pixel_format
"
:
3
,
"
pixel_format
"
:
3
,
...
@@ -392,7 +393,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -392,7 +393,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test stop at runnning state and reset
"
);
console
.
info
(
"
case test stop at runnning state and reset
"
);
let
savepath
=
BASIC_PATH
+
'
0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0100.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
...
@@ -431,7 +432,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -431,7 +432,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test stop at end of stream and restart
"
);
console
.
info
(
"
test stop at end of stream and restart
"
);
let
savepath
=
BASIC_PATH
+
'
0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0200.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
...
@@ -471,7 +472,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -471,7 +472,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
test stop at runnning state and restart
"
);
console
.
info
(
"
test stop at runnning state and restart
"
);
let
savepath
=
BASIC_PATH
+
'
0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0300.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
...
@@ -512,7 +513,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -512,7 +513,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test flush at running state
"
);
console
.
info
(
"
case test flush at running state
"
);
let
savepath
=
BASIC_PATH
+
'
0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0400.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
...
@@ -548,7 +549,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -548,7 +549,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test flush at end of stream
"
);
console
.
info
(
"
case test flush at end of stream
"
);
let
savepath
=
BASIC_PATH
+
'
0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0500.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
...
@@ -588,7 +589,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -588,7 +589,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test reconfigure
"
);
console
.
info
(
"
case test reconfigure
"
);
let
savepath
=
BASIC_PATH
+
'
0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0600.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
...
@@ -623,7 +624,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -623,7 +624,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
"
pixel_format
"
:
3
,
"
pixel_format
"
:
3
,
"
frame_rate
"
:
framerate
,
"
frame_rate
"
:
framerate
,
}
}
let
savepath2
=
BASIC_PATH
+
'
0601.
txt
'
;
let
savepath2
=
BASIC_PATH
+
'
0601.
es
'
;
toSetStreamParam
(
width
,
height
,
framerate
,
frameTotal
);
toSetStreamParam
(
width
,
height
,
framerate
,
frameTotal
);
await
toConfigure
(
mediaDescription2
);
await
toConfigure
(
mediaDescription2
);
setCallback
(
savepath2
,
done
);
setCallback
(
savepath2
,
done
);
...
@@ -643,7 +644,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -643,7 +644,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test recreate videoencoder
"
);
console
.
info
(
"
case test recreate videoencoder
"
);
let
savepath
=
BASIC_PATH
+
'
0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0700.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
width
=
720
;
let
height
=
480
;
let
height
=
480
;
...
@@ -679,7 +680,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
...
@@ -679,7 +680,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
"
pixel_format
"
:
3
,
"
pixel_format
"
:
3
,
"
frame_rate
"
:
framerate
,
"
frame_rate
"
:
framerate
,
}
}
let
savepath2
=
BASIC_PATH
+
'
0701.
txt
'
;
let
savepath2
=
BASIC_PATH
+
'
0701.
es
'
;
await
toCreateByMime
(
mime
,
done
);
await
toCreateByMime
(
mime
,
done
);
toSetStreamParam
(
width
,
height
,
framerate
,
frameTotal
);
toSetStreamParam
(
width
,
height
,
framerate
,
frameTotal
);
await
toConfigure
(
mediaDescription2
);
await
toConfigure
(
mediaDescription2
);
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityCallbackTest.test.js
浏览文件 @
0d9e0004
...
@@ -21,7 +21,7 @@ export
...
@@ -21,7 +21,7 @@ export
const
ENCODE_STEP
=
{
const
ENCODE_STEP
=
{
WAIT_FOR_EOS
:
'
encode:waitForEOS
'
,
WAIT_FOR_EOS
:
'
encode:waitForEOS
'
,
CONFIGURE
:
'
encode:configure
'
,
CONFIGURE
:
'
encode:configure
'
,
GET_
INPUT
SURFACE
:
'
encode:getSurface
'
,
GET_SURFACE
:
'
encode:getSurface
'
,
PREPARE
:
'
encode:prepare
'
,
PREPARE
:
'
encode:prepare
'
,
START
:
'
encode:start
'
,
START
:
'
encode:start
'
,
FLUSH
:
'
encode:flush
'
,
FLUSH
:
'
encode:flush
'
,
...
@@ -247,6 +247,14 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -247,6 +247,14 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
toNextStep
(
mySteps
,
done
);
toNextStep
(
mySteps
,
done
);
});
});
}
}
function
runCase
(
mySteps
,
nextCase
,
done
)
{
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
mySteps
.
shift
();
nextCase
(
mySteps
,
done
,
true
);
}
else
{
nextCase
(
mySteps
,
done
,
false
);
}
}
function
toNextStep
(
mySteps
,
done
)
{
function
toNextStep
(
mySteps
,
done
)
{
console
.
info
(
'
case myStep[0]:
'
+
mySteps
[
0
]);
console
.
info
(
'
case myStep[0]:
'
+
mySteps
[
0
]);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
RELEASE
)
{
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
RELEASE
)
{
...
@@ -265,12 +273,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -265,12 +273,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
case
ENCODE_STEP
.
CONFIGURE
:
case
ENCODE_STEP
.
CONFIGURE
:
mySteps
.
shift
();
mySteps
.
shift
();
console
.
info
(
`case to configure`
);
console
.
info
(
`case to configure`
);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
runCase
(
mySteps
,
toConfigure
,
done
);
mySteps
.
shift
();
toConfigure
(
mySteps
,
done
,
true
);
}
else
{
toConfigure
(
mySteps
,
done
,
false
);
}
break
;
break
;
case
STREAM_STEP
.
CREATE
:
case
STREAM_STEP
.
CREATE
:
mySteps
.
shift
();
mySteps
.
shift
();
...
@@ -297,73 +300,39 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -297,73 +300,39 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
console
.
info
(
`case to StoptStream`
);
console
.
info
(
`case to StoptStream`
);
toStopStream
(
mySteps
,
done
);
toStopStream
(
mySteps
,
done
);
break
;
break
;
case
ENCODE_STEP
.
GET_
INPUT
SURFACE
:
case
ENCODE_STEP
.
GET_SURFACE
:
mySteps
.
shift
();
mySteps
.
shift
();
console
.
info
(
`case to setOutputSurface`
);
console
.
info
(
`case to setOutputSurface`
);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
runCase
(
mySteps
,
toGetInputSurface
,
done
);
mySteps
.
shift
();
toGetInputSurface
(
mySteps
,
done
,
true
);
}
else
{
toGetInputSurface
(
mySteps
,
done
,
false
);
}
break
;
break
;
case
ENCODE_STEP
.
PREPARE
:
case
ENCODE_STEP
.
PREPARE
:
mySteps
.
shift
();
mySteps
.
shift
();
console
.
info
(
`case to prepare`
);
console
.
info
(
`case to prepare`
);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
runCase
(
mySteps
,
toPrepare
,
done
);
mySteps
.
shift
();
toPrepare
(
mySteps
,
done
,
true
);
}
else
{
toPrepare
(
mySteps
,
done
,
false
);
}
break
;
break
;
case
ENCODE_STEP
.
START
:
case
ENCODE_STEP
.
START
:
mySteps
.
shift
();
mySteps
.
shift
();
console
.
info
(
`case to start`
);
console
.
info
(
`case to start`
);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
runCase
(
mySteps
,
toStart
,
done
);
mySteps
.
shift
();
toStart
(
mySteps
,
done
,
true
);
}
else
{
toStart
(
mySteps
,
done
,
false
);
}
break
;
break
;
case
ENCODE_STEP
.
FLUSH
:
case
ENCODE_STEP
.
FLUSH
:
mySteps
.
shift
();
mySteps
.
shift
();
console
.
info
(
`case to flush`
);
console
.
info
(
`case to flush`
);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
runCase
(
mySteps
,
toFlush
,
done
);
mySteps
.
shift
();
toFlush
(
mySteps
,
done
,
true
);
}
else
{
toFlush
(
mySteps
,
done
,
false
);
}
break
;
break
;
case
ENCODE_STEP
.
STOP
:
case
ENCODE_STEP
.
STOP
:
mySteps
.
shift
();
mySteps
.
shift
();
console
.
info
(
`case to stop`
);
console
.
info
(
`case to stop`
);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
runCase
(
mySteps
,
toStop
,
done
);
mySteps
.
shift
();
toStop
(
mySteps
,
done
,
true
);
}
else
{
toStop
(
mySteps
,
done
,
false
);
}
break
;
break
;
case
ENCODE_STEP
.
RESET
:
case
ENCODE_STEP
.
RESET
:
mySteps
.
shift
();
mySteps
.
shift
();
console
.
info
(
`case to reset`
);
console
.
info
(
`case to reset`
);
if
(
mySteps
[
0
]
==
ENCODE_STEP
.
ERROR
)
{
runCase
(
mySteps
,
toReset
,
done
);
mySteps
.
shift
();
toReset
(
mySteps
,
done
,
true
);
}
else
{
toReset
(
mySteps
,
done
,
false
);
}
break
;
break
;
case
ENCODE_STEP
.
WAIT_FOR_EOS
:
case
ENCODE_STEP
.
WAIT_FOR_EOS
:
mySteps
.
shift
();
mySteps
.
shift
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// expect(inputEosFlag).assertTrue();
// if (inputEosFlag == false) {
// console.info(`in case error wait for eos: inputEosFlag = false`);
// }
toNextStep
(
mySteps
,
done
);
toNextStep
(
mySteps
,
done
);
},
5000
);
// wait 5000 ms for eos
},
5000
);
// wait 5000 ms for eos
break
;
break
;
...
@@ -444,7 +413,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -444,7 +413,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0200.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0200.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -460,7 +429,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -460,7 +429,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0300.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0300.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
START
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -476,7 +445,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -476,7 +445,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0400.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0400.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -493,7 +462,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -493,7 +462,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0500.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0500.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -510,7 +479,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -510,7 +479,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0600.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0600.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -528,9 +497,9 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -528,9 +497,9 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0700.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0700.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_PARAM
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -546,7 +515,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -546,7 +515,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0800.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0800.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -562,9 +531,9 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -562,9 +531,9 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0900.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_CALLBACK_0900.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_PARAM
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -594,7 +563,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -594,7 +563,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0200.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0200.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -610,7 +579,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -610,7 +579,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0300.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0300.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -626,7 +595,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -626,7 +595,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0400.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0400.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -643,7 +612,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -643,7 +612,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0500.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0500.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -660,7 +629,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -660,7 +629,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0600.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0600.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -677,7 +646,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -677,7 +646,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0700.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0700.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -695,7 +664,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -695,7 +664,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0800.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_CALLBACK_0800.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -726,7 +695,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -726,7 +695,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0200.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0200.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -742,7 +711,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -742,7 +711,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0300.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0300.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -758,7 +727,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -758,7 +727,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0400.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0400.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -774,7 +743,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -774,7 +743,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0500.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0500.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -790,7 +759,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -790,7 +759,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0600.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0600.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -806,7 +775,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -806,7 +775,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0700.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0700.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -824,7 +793,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -824,7 +793,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0800.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_CALLBACK_0800.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -855,7 +824,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -855,7 +824,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0200.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0200.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
STREAM_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -871,7 +840,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -871,7 +840,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0300.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0300.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -887,7 +856,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -887,7 +856,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0400.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0400.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -903,7 +872,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -903,7 +872,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0500.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0500.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -919,7 +888,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -919,7 +888,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0600.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0600.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -936,7 +905,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -936,7 +905,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0700.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0700.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -954,7 +923,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -954,7 +923,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0800.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_CALLBACK_0800.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -1000,7 +969,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1000,7 +969,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0300.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0300.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1016,7 +985,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1016,7 +985,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0400.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0400.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1032,7 +1001,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1032,7 +1001,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0500.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0500.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -1049,7 +1018,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1049,7 +1018,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0600.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0600.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -1066,7 +1035,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1066,7 +1035,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0700.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0700.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -1084,7 +1053,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1084,7 +1053,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0800.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_CALLBACK_0800.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -1115,7 +1084,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1115,7 +1084,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0200.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0200.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
STREAM_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1131,7 +1100,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1131,7 +1100,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0300.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0300.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1147,7 +1116,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1147,7 +1116,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0400.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0400.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1163,7 +1132,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1163,7 +1132,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0500.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0500.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1179,7 +1148,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1179,7 +1148,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0600.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0600.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1195,7 +1164,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1195,7 +1164,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0700.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0700.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
@@ -1212,7 +1181,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1212,7 +1181,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0800.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_CALLBACK_0800.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
})
...
@@ -1228,7 +1197,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1228,7 +1197,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0100.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0100.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -1246,7 +1215,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1246,7 +1215,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0200.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0200.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -1264,7 +1233,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1264,7 +1233,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0300.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0300.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
STOP
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
STOP
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
STREAM_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
...
@@ -1283,7 +1252,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1283,7 +1252,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0400.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0400.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -1301,7 +1270,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1301,7 +1270,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0500.es
'
;
let
path
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_CALLBACK_0500.es
'
;
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
let
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
frameTotal
=
50
;
...
@@ -1432,8 +1401,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1432,8 +1401,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
}
}
})
})
})
})
/* *
/* *
* @tc.number : SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CREATE-RELEASE_CALLBACK_0100
* @tc.number : SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CREATE-RELEASE_CALLBACK_0100
* @tc.name : 001. create -> release for 50 times
* @tc.name : 001. create -> release for 50 times
* @tc.desc : Reliability Test
* @tc.desc : Reliability Test
...
@@ -1441,7 +1409,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
...
@@ -1441,7 +1409,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
* @tc.type : Reliability
* @tc.type : Reliability
* @tc.level : Level2
* @tc.level : Level2
*/
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_
TOOPLOOP
_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_
CREATE-RELEASE
_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
let
name
=
'
avenc_mpeg4
'
;
let
name
=
'
avenc_mpeg4
'
;
let
events
=
require
(
'
events
'
);
let
events
=
require
(
'
events
'
);
let
eventEmitter
=
new
events
.
EventEmitter
();
let
eventEmitter
=
new
events
.
EventEmitter
();
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityPromiseTest.test.js
浏览文件 @
0d9e0004
...
@@ -234,10 +234,10 @@ describe('videoEncoderReliability', function () {
...
@@ -234,10 +234,10 @@ describe('videoEncoderReliability', function () {
if
(
workdoneAtEOS
)
{
if
(
workdoneAtEOS
)
{
mediaTest
.
closeStream
(
surfaceID
);
mediaTest
.
closeStream
(
surfaceID
);
await
toReset
();
await
toReset
();
await
toRelease
();
await
videoEncodeProcessor
.
release
().
then
(()
=>
{
console
.
info
(
"
case release success
"
);
},
failCallback
).
catch
(
failCatch
);
videoEncodeProcessor
=
null
;
videoEncodeProcessor
=
null
;
console
.
info
(
"
case frameTotal:
"
+
frameTotal
);
console
.
info
(
"
case frameCountOut:
"
+
frameCountOut
);
done
();
done
();
}
else
{
}
else
{
console
.
info
(
"
sawOutputEOS = true;
"
);
console
.
info
(
"
sawOutputEOS = true;
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录