Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e6820140
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看板
提交
e6820140
编写于
2月 26, 2022
作者:
L
ling990
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify Signed-off-by: ling990 <liling96@huawei.com>
Signed-off-by:
N
ling990
<
liling96@huawei.com
>
上级
0d9e0004
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
125 addition
and
123 deletion
+125
-123
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/List.test.js
...ia_js_standard/videoEncoder/src/main/js/test/List.test.js
+1
-1
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderMultiInstancesTest.test.js
...r/src/main/js/test/VideoEncoderMultiInstancesTest.test.js
+1
-1
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js
...main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js
+3
-2
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js
.../main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js
+1
-1
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityCallbackTest.test.js
.../test/VideoEncoderSoftwareReliabilityCallbackTest.test.js
+55
-54
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityPromiseTest.test.js
...s/test/VideoEncoderSoftwareReliabilityPromiseTest.test.js
+64
-64
未找到文件。
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/List.test.js
浏览文件 @
e6820140
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderMultiInstancesTest.test.js
浏览文件 @
e6820140
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncCallbackTest.test.js
浏览文件 @
e6820140
...
...
@@ -264,8 +264,9 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_CALLBACK_00_0100
'
,
0
,
async
function
(
done
)
{
let
decPath
=
BASIC_PATH
+
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_CALLBACK_00_0100.es
'
;
let
name
=
'
avenc_mpeg4
'
;
let
mime
=
'
video/mp4v-es
'
;
let
mediaDescription
=
{
"
codec_mime
"
:
'
video/mp4v-es
'
,
'
width
'
:
720
,
'
height
'
:
480
,
'
pixel_format
'
:
3
,
...
...
@@ -297,7 +298,7 @@ describe('VideoEncoderSoftwareFuncCallbackTest', function () {
}
})
})
media
.
createVideoEncoderBy
Name
(
na
me
,
(
err
,
processor
)
=>
{
media
.
createVideoEncoderBy
Mime
(
mi
me
,
(
err
,
processor
)
=>
{
expect
(
err
).
assertUndefined
();
if
(
typeof
(
processor
)
!=
'
undefined
'
)
{
console
.
info
(
'
case create createVideoEncoderByName success
'
);
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareFuncPromiseTest.test.js
浏览文件 @
e6820140
...
...
@@ -334,7 +334,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
let
height
=
480
;
let
framerate
=
60
;
let
mediaDescription
=
{
"
codec_mime
"
:
"
video/avc
"
,
"
codec_mime
"
:
'
video/mp4v-es
'
,
"
width
"
:
width
,
"
height
"
:
height
,
"
pixel_format
"
:
3
,
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityCallbackTest.test.js
浏览文件 @
e6820140
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -21,7 +21,7 @@ export
const
ENCODE_STEP
=
{
WAIT_FOR_EOS
:
'
encode:waitForEOS
'
,
CONFIGURE
:
'
encode:configure
'
,
GET_SURFACE
:
'
encode:getSurface
'
,
GET_
INPUT
SURFACE
:
'
encode:getSurface
'
,
PREPARE
:
'
encode:prepare
'
,
START
:
'
encode:start
'
,
FLUSH
:
'
encode:flush
'
,
...
...
@@ -50,7 +50,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
let
isStreamRunning
=
false
;
let
workdoneAtEOS
=
false
;
let
stopBuffer
=
false
;
const
BASIC_PATH
=
'
/data/media/
encoder
/
'
;
const
BASIC_PATH
=
'
/data/media/
results
/
'
;
let
mediaDescription
=
{
'
width
'
:
720
,
'
height
'
:
480
,
...
...
@@ -300,7 +300,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
console
.
info
(
`case to StoptStream`
);
toStopStream
(
mySteps
,
done
);
break
;
case
ENCODE_STEP
.
GET_SURFACE
:
case
ENCODE_STEP
.
GET_
INPUT
SURFACE
:
mySteps
.
shift
();
console
.
info
(
`case to setOutputSurface`
);
runCase
(
mySteps
,
toGetInputSurface
,
done
);
...
...
@@ -413,7 +413,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -429,7 +429,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -445,7 +445,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -462,7 +462,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -479,7 +479,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -497,9 +497,9 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -515,7 +515,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
CONFIGURE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -531,9 +531,9 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -563,7 +563,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -579,7 +579,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -595,7 +595,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -612,7 +612,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -629,7 +629,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -646,7 +646,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -664,7 +664,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RESET
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -695,7 +695,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
STREAM_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -711,7 +711,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -727,7 +727,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -743,7 +743,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -759,7 +759,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -775,7 +775,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -793,7 +793,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -824,7 +824,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -840,7 +840,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -856,7 +856,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -872,7 +872,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -888,7 +888,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -905,7 +905,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -923,7 +923,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -969,7 +969,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -985,7 +985,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -1001,7 +1001,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -1018,7 +1018,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -1035,7 +1035,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -1053,7 +1053,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
ERROR
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -1084,7 +1084,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -1100,7 +1100,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -1116,7 +1116,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -1132,7 +1132,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -1148,7 +1148,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -1164,7 +1164,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
...
...
@@ -1181,7 +1181,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RESET
,
ENCODE_STEP
.
RELEASE
);
toCreateVideoEncoderByName
(
'
avenc_mpeg4
'
,
path
,
mySteps
,
done
);
})
...
...
@@ -1197,7 +1197,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -1215,7 +1215,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
FLUSH
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -1233,7 +1233,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
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
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
...
...
@@ -1252,7 +1252,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -1270,7 +1270,7 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
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
mySteps
=
new
Array
(
ENCODE_STEP
.
CONFIGURE
,
STREAM_STEP
.
CREATE
,
STREAM_STEP
.
SET_PARAM
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_SURFACE
,
STREAM_STEP
.
START
,
STREAM_STEP
.
SET_EOS_FRAME
,
ENCODE_STEP
.
GET_
INPUT
SURFACE
,
STREAM_STEP
.
START
,
ENCODE_STEP
.
PREPARE
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
WAIT_FOR_EOS
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
START
,
ENCODE_STEP
.
STOP
,
ENCODE_STEP
.
RELEASE
);
frameTotal
=
50
;
...
...
@@ -1401,7 +1401,8 @@ describe('VideoEncoderSoftwareReliCallbackTest', function () {
}
})
})
/* *
/* *
* @tc.number : SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CREATE-RELEASE_CALLBACK_0100
* @tc.name : 001. create -> release for 50 times
* @tc.desc : Reliability Test
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityPromiseTest.test.js
浏览文件 @
e6820140
/*
* Copyright (C) 202
1
Huawei Device Co., Ltd.
* Copyright (C) 202
2
Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
...
...
@@ -19,7 +19,7 @@ import Fileio from '@ohos.fileio'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
describe
(
'
videoEncoderReliability
'
,
function
()
{
const
BASIC_PATH
=
'
/data/media/results/
encode_func
_promise_
'
;
const
BASIC_PATH
=
'
/data/media/results/
videoencode_reli
_promise_
'
;
let
videoEncodeProcessor
;
let
mediaTest
=
mediademo
.
createMediaTest
();
let
surfaceID
=
''
;
...
...
@@ -443,7 +443,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0100.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -457,7 +457,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
CONFIGURE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -471,7 +471,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
CONFIGURE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -486,7 +486,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
FLUSH
,
CONFIGURE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -501,7 +501,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
CONFIGURE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -516,7 +516,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0600.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
CONFIGURE
,
ERROR
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -532,7 +532,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0700.
es
'
;
let
mySteps
=
new
Array
(
RESET
,
CONFIGURE
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -546,7 +546,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0800.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0800.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
CONFIGURE
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -560,7 +560,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_CONFIGURE_PROMISE_0900
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
configure_0900.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
configure_0900.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
RESET
,
CONFIGURE
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -574,7 +574,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0100.
es
'
;
let
mySteps
=
new
Array
(
PREPARE
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -588,7 +588,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -602,7 +602,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
PREPARE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -616,7 +616,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
PREPARE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -631,7 +631,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
FLUSH
,
PREPARE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -646,7 +646,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0600.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
PREPARE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -661,7 +661,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0700.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
PREPARE
,
ERROR
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -677,7 +677,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_PREPARE_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
prepare_0800.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
prepare_0800.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RESET
,
PREPARE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -692,7 +692,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0100.
es
'
;
let
mySteps
=
new
Array
(
START
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -706,7 +706,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
START
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -720,7 +720,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
WAITFORALLOUTS
);
workdoneAtEOS
=
true
;
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -735,7 +735,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
START
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -750,7 +750,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
FLUSH
,
START
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -765,7 +765,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0600.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
START
,
WAITFORALLOUTS
);
workdoneAtEOS
=
true
;
...
...
@@ -781,7 +781,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0700.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
START
,
ERROR
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -797,7 +797,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_START_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
start_0800.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
start_0800.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RESET
,
START
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -812,7 +812,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0100.
es
'
;
let
mySteps
=
new
Array
(
FLUSH
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -826,7 +826,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
FLUSH
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -840,7 +840,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
FLUSH
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -854,7 +854,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
FLUSH
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -869,7 +869,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
FLUSH
,
FLUSH
,
WAITFORALLOUTS
);
workdoneAtEOS
=
true
;
...
...
@@ -885,7 +885,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0600.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
FLUSH
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -900,7 +900,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0700.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
FLUSH
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -916,7 +916,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_FLUSH_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
flush_0800.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
flush_0800.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RESET
,
FLUSH
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -931,7 +931,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0100.
es
'
;
let
mySteps
=
new
Array
(
STOP
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -945,7 +945,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
STOP
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -959,7 +959,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STOP
,
ERROR
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -973,7 +973,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -988,7 +988,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
FLUSH
,
STOP
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1003,7 +1003,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0600.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
STOP
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1018,7 +1018,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0700.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
STOP
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -1034,7 +1034,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_STOP_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
stop_0800.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
stop_0800.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RESET
,
STOP
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1049,7 +1049,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0100.
es
'
;
let
mySteps
=
new
Array
(
RESET
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -1063,7 +1063,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
RESET
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -1077,7 +1077,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
RESET
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -1091,7 +1091,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RESET
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1106,7 +1106,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
FLUSH
,
RESET
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1121,7 +1121,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0600.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
RESET
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1136,7 +1136,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0700.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
RESET
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -1152,7 +1152,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RESET_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
reset_0800.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
reset_0800.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RESET
,
RESET
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1167,7 +1167,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0100.
es
'
;
let
mySteps
=
new
Array
(
RELEASE
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -1181,7 +1181,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
RELEASE
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -1195,7 +1195,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
RELEASE
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
})
...
...
@@ -1209,7 +1209,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RELEASE
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1224,7 +1224,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
FLUSH
,
RELEASE
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1239,7 +1239,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0600
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0600.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
STOP
,
RELEASE
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1254,7 +1254,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0700
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0700.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
RELEASE
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -1270,7 +1270,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_RELEASE_PROMISE_0800
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
release_0800.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
release_0800.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
STARTSTREAM
,
START
,
RELEASE
,
RELEASE
,
ERROR
,
STOPSTREAM
,
END
);
createVideoEncoder
(
savepath
,
mySteps
,
done
);
...
...
@@ -1285,7 +1285,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_PROMISE_0100
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
eos_0100.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
eos_0100.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
FLUSH
,
STOP
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -1301,7 +1301,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_PROMISE_0200
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
eos_0200.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
eos_0200.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
FLUSH
,
STARTSTREAM
,
WAITFORALLOUTS
);
frameTotal
=
2
;
...
...
@@ -1318,7 +1318,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
eos_0300.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
eos_0300.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
RESET
,
CONFIGURE
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
@@ -1334,7 +1334,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_PROMISE_0400
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
eos_0400.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
eos_0400.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
STOPSTREAM
,
STOP
,
START
,
SETSTREAMPARAM
,
STARTSTREAM
,
WAITFORALLOUTS
);
frameTotal
=
2
;
...
...
@@ -1350,7 +1350,7 @@ describe('videoEncoderReliability', function () {
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_API_EOS_PROMISE_0500
'
,
0
,
async
function
(
done
)
{
let
savepath
=
BASIC_PATH
+
'
eos_0500.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
eos_0500.
es
'
;
let
mySteps
=
new
Array
(
CONFIGURE
,
GETSURFACE
,
SETSTREAMPARAM
,
PREPARE
,
START
,
STARTSTREAM
,
HOLDON
,
JUDGE_EOS
,
STOP
,
START
,
STOP
,
STOPSTREAM
,
END
);
frameTotal
=
2
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录