Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
18a41225
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看板
提交
18a41225
编写于
9月 22, 2022
作者:
L
ling990
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify testcases Signed-off-by: ling990 <liling96@huawei.com>
Signed-off-by:
N
ling990
<
ling990@qq.com
>
上级
ca92b0b5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
35 addition
and
8 deletion
+35
-8
multimedia/BUILD.gn
multimedia/BUILD.gn
+1
-0
multimedia/media/media_cpp_standard/BUILD.gn
multimedia/media/media_cpp_standard/BUILD.gn
+10
-4
multimedia/media/media_cpp_standard/Test.json
multimedia/media/media_cpp_standard/Test.json
+6
-2
multimedia/media/media_cpp_standard/audioDecEncNdk/src/ActsAudioDecEncNdkTest.cpp
...pp_standard/audioDecEncNdk/src/ActsAudioDecEncNdkTest.cpp
+18
-2
未找到文件。
multimedia/BUILD.gn
浏览文件 @
18a41225
...
...
@@ -40,6 +40,7 @@ group("multimedia") {
"image/image_js_standard/imageYUV:image_yuv_js_hap",
"image/image_js_standard/image_ndk_test:image_pixelmap_ndk_hap",
"media/media_cpp_standard:ActsAvcodecNdkTest",
"media/media_cpp_standard:ActsAvcodecNdkTest",
"media/media_js_standard/audioPlayer:audio_player_js_hap",
"media/media_js_standard/audioRecorder:audio_recorder_js_hap",
"media/media_js_standard/recorderFormat:recorder_format_js_hap",
...
...
multimedia/media/media_cpp_standard/BUILD.gn
浏览文件 @
18a41225
...
...
@@ -28,9 +28,13 @@ ohos_moduletest_suite("ActsAvcodecNdkTest") {
"audioDecEncNdk/include",
"videoDecEncNdk/include",
"//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include",
"//foundation/multimedia/player_framework/interfaces/inner_api/native",
"//foundation/multimedia/player_framework/interfaces/kits/c",
"//commonlibrary/c_utils/base/include",
"//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
"//foundation/multimedia/player_framework/frameworks/native/capi/common",
"//utils/native/base/include",
"//graphic/graphic_2d/interfaces/kits/surface",
"//graphic/graphic_2d/interfaces/inner_api/surface",
"//foundation/graphic/graphic_2d/frameworks/surface/include",
]
cflags = [
...
...
@@ -51,8 +55,8 @@ ohos_moduletest_suite("ActsAvcodecNdkTest") {
"",
]
external_deps = [ "c_utils:utils" ]
deps = [
"//foundation/graphic/graphic_2d:libsurface",
"//foundation/graphic/graphic_2d/frameworks/surface:surface",
"//foundation/multimedia/player_framework/interfaces/kits/c:native_media_adec",
"//foundation/multimedia/player_framework/interfaces/kits/c:native_media_aenc",
...
...
@@ -60,8 +64,10 @@ ohos_moduletest_suite("ActsAvcodecNdkTest") {
"//foundation/multimedia/player_framework/interfaces/kits/c:native_media_core",
"//foundation/multimedia/player_framework/interfaces/kits/c:native_media_vdec",
"//foundation/multimedia/player_framework/interfaces/kits/c:native_media_venc",
"//utils/native/base:utils",
]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
subsystem_name = "multimedia"
part_name = "multimedia_player_framework"
subsystem_name = "multimedia"
}
multimedia/media/media_cpp_standard/Test.json
浏览文件 @
18a41225
...
...
@@ -2,15 +2,19 @@
"description"
:
"Config for avcodec ndk test cases"
,
"driver"
:
{
"module-name"
:
"ActsAvcodecNdkTest"
,
"native-test-timeout"
:
"30000"
,
"native-test-timeout"
:
"30000
0
"
,
"native-test-device-path"
:
"/data/local/tmp"
,
"runtime-hint"
:
"1s"
,
"type"
:
"CppTest"
},
"kits"
:
[
{
"type"
:
"PushKit"
,
"type"
:
"PushKit"
,
"pre-push"
:
[
"mount -o rw,remount /"
,
"rm /data/media/*"
,
"mkdir -p /data/media/"
,
"mkdir -p /data/local/tmp/"
],
"push"
:
[
"ActsAvcodecNdkTest->/data/local/tmp/ActsAvcodecNdkTest"
,
...
...
multimedia/media/media_cpp_standard/audioDecEncNdk/src/ActsAudioDecEncNdkTest.cpp
浏览文件 @
18a41225
...
...
@@ -244,11 +244,19 @@ HWTEST_F(ActsAudioDecEncNdkTest, SUB_MULTIMEDIA_MEDIA_AUDIO_DEC_ENC_FUNCTION_040
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
PrepareEnc
());
aDecEncSample
->
SetReadPath
(
READPATH
,
ES_AAC_48000_32_1
,
ES_AAC_48000_32_1_Length
);
aDecEncSample
->
SetSavePath
(
"/data/media/AAC_48000_32_1_out4.aac"
);
aDecEncSample
->
SetEosState
(
false
);
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartEnc
());
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartDec
());
while
(
aDecEncSample
->
GetFrameCount
()
<
10
0
)
{};
while
(
aDecEncSample
->
GetFrameCount
()
<
5
0
)
{};
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
FlushDec
());
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
FlushEnc
());
aDecEncSample
->
ReRead
();
aDecEncSample
->
ResetDecParam
();
aDecEncSample
->
ResetEncParam
();
aDecEncSample
->
SetSavePath
(
"/data/media/AAC_48000_32_1_out4_2.aac"
);
aDecEncSample
->
SetEosState
(
true
);
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartEnc
());
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartDec
());
while
(
!
aDecEncSample
->
GetEncEosState
())
{};
...
...
@@ -341,11 +349,19 @@ HWTEST_F(ActsAudioDecEncNdkTest, SUB_MULTIMEDIA_MEDIA_AUDIO_DEC_ENC_FUNCTION_060
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
PrepareEnc
());
aDecEncSample
->
SetReadPath
(
READPATH
,
ES_AAC_48000_32_1
,
ES_AAC_48000_32_1_Length
);
aDecEncSample
->
SetSavePath
(
"/data/media/AAC_48000_32_1_out6.aac"
);
aDecEncSample
->
SetEosState
(
false
);
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartEnc
());
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartDec
());
while
(
aDecEncSample
->
GetFrameCount
()
<
10
0
)
{};
while
(
aDecEncSample
->
GetFrameCount
()
<
5
0
)
{};
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StopDec
());
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StopEnc
());
aDecEncSample
->
ReRead
();
aDecEncSample
->
ResetDecParam
();
aDecEncSample
->
ResetEncParam
();
aDecEncSample
->
SetSavePath
(
"/data/media/AAC_48000_32_1_out6_2.aac"
);
aDecEncSample
->
SetEosState
(
true
);
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartEnc
());
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
StartDec
());
ASSERT_EQ
(
AV_ERR_OK
,
aDecEncSample
->
CalcuError
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录