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 () {
let
stopBuffer
=
false
;
const
events
=
require
(
'
events
'
);
const
eventEmitter
=
new
events
.
EventEmitter
();
const
BASIC_PATH
=
'
/data/media/
encoder
/
'
;
const
BASIC_PATH
=
'
/data/media/
results
/
'
;
beforeAll
(
function
()
{
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 () {
await
videoCaps
.
getPreferredFrameRate
(
width
,
height
).
then
((
valueRange
)
=>
{
console
.
info
(
"
case getPreferredFrameRate valueRange success
"
);
if
(
typeof
(
valueRange
)
!=
'
undefined
'
)
{
console
.
info
(
'
getPreferredFrameRate.min
'
+
valueRange
.
min
);
console
.
info
(
'
getPreferredFrameRate.max
'
+
valueRange
.
max
);
console
.
info
(
'
getPreferredFrameRate.min
:
'
+
valueRange
.
min
);
console
.
info
(
'
getPreferredFrameRate.max
:
'
+
valueRange
.
max
);
}
else
{
console
.
info
(
'
case getPreferredFrameRate valueRange is not defined
'
);
expect
().
assertFail
();
...
...
@@ -225,8 +225,8 @@ describe('videoSoftwareEncoderFuncPromise', function () {
await
videoCaps
.
getSupportedFrameRate
(
width
,
height
).
then
((
valueRange
)
=>
{
console
.
info
(
"
case getSupportedFrameRate valueRange success
"
);
if
(
typeof
(
valueRange
)
!=
'
undefined
'
)
{
console
.
info
(
'
getSupportedFrameRate.min
'
+
valueRange
.
min
);
console
.
info
(
'
getSupportedFrameRate.max
'
+
valueRange
.
max
);
console
.
info
(
'
getSupportedFrameRate.min
:
'
+
valueRange
.
min
);
console
.
info
(
'
getSupportedFrameRate.max
:
'
+
valueRange
.
max
);
}
else
{
console
.
info
(
'
case getSupportedFrameRate valueRange is not defined
'
);
expect
().
assertFail
();
...
...
@@ -328,12 +328,13 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_00_0100
'
,
0
,
async
function
(
done
)
{
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
width
=
720
;
let
height
=
480
;
let
framerate
=
60
;
let
mediaDescription
=
{
"
codec_mime
"
:
"
video/avc
"
,
"
width
"
:
width
,
"
height
"
:
height
,
"
pixel_format
"
:
3
,
...
...
@@ -392,7 +393,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0100
'
,
0
,
async
function
(
done
)
{
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
width
=
720
;
let
height
=
480
;
...
...
@@ -431,7 +432,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0200
'
,
0
,
async
function
(
done
)
{
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
width
=
720
;
let
height
=
480
;
...
...
@@ -471,7 +472,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0300
'
,
0
,
async
function
(
done
)
{
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
width
=
720
;
let
height
=
480
;
...
...
@@ -512,7 +513,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0400
'
,
0
,
async
function
(
done
)
{
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
width
=
720
;
let
height
=
480
;
...
...
@@ -548,7 +549,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0500
'
,
0
,
async
function
(
done
)
{
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
width
=
720
;
let
height
=
480
;
...
...
@@ -588,7 +589,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test reconfigure
"
);
let
savepath
=
BASIC_PATH
+
'
0600.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0600.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
height
=
480
;
...
...
@@ -623,7 +624,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
"
pixel_format
"
:
3
,
"
frame_rate
"
:
framerate
,
}
let
savepath2
=
BASIC_PATH
+
'
0601.
txt
'
;
let
savepath2
=
BASIC_PATH
+
'
0601.
es
'
;
toSetStreamParam
(
width
,
height
,
framerate
,
frameTotal
);
await
toConfigure
(
mediaDescription2
);
setCallback
(
savepath2
,
done
);
...
...
@@ -643,7 +644,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
*/
it
(
'
SUB_MEDIA_VIDEO_SOFTWARE_ENCODER_FUNCTION_PROMISE_01_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
case test recreate videoencoder
"
);
let
savepath
=
BASIC_PATH
+
'
0700.
txt
'
;
let
savepath
=
BASIC_PATH
+
'
0700.
es
'
;
let
mime
=
'
video/mp4v-es
'
;
let
width
=
720
;
let
height
=
480
;
...
...
@@ -679,7 +680,7 @@ describe('videoSoftwareEncoderFuncPromise', function () {
"
pixel_format
"
:
3
,
"
frame_rate
"
:
framerate
,
}
let
savepath2
=
BASIC_PATH
+
'
0701.
txt
'
;
let
savepath2
=
BASIC_PATH
+
'
0701.
es
'
;
await
toCreateByMime
(
mime
,
done
);
toSetStreamParam
(
width
,
height
,
framerate
,
frameTotal
);
await
toConfigure
(
mediaDescription2
);
...
...
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityCallbackTest.test.js
浏览文件 @
0d9e0004
此差异已折叠。
点击以展开。
multimedia/media/media_js_standard/videoEncoder/src/main/js/test/VideoEncoderSoftwareReliabilityPromiseTest.test.js
浏览文件 @
0d9e0004
...
...
@@ -234,10 +234,10 @@ describe('videoEncoderReliability', function () {
if
(
workdoneAtEOS
)
{
mediaTest
.
closeStream
(
surfaceID
);
await
toReset
();
await
toRelease
();
await
videoEncodeProcessor
.
release
().
then
(()
=>
{
console
.
info
(
"
case release success
"
);
},
failCallback
).
catch
(
failCatch
);
videoEncodeProcessor
=
null
;
console
.
info
(
"
case frameTotal:
"
+
frameTotal
);
console
.
info
(
"
case frameCountOut:
"
+
frameCountOut
);
done
();
}
else
{
console
.
info
(
"
sawOutputEOS = true;
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录