Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e98081a6
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e98081a6
编写于
10月 13, 2022
作者:
Y
yygxr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix session xts case error
Signed-off-by:
N
yygxr
<
wuhao30@huawei.com
>
上级
2486981a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
36 addition
and
36 deletion
+36
-36
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets
.../main/ets/MainAbility/test/CameraSessionBaseTest.test.ets
+6
-6
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionExposureTest.test.ets
...n/ets/MainAbility/test/CameraSessionExposureTest.test.ets
+6
-6
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFlashTest.test.ets
...main/ets/MainAbility/test/CameraSessionFlashTest.test.ets
+6
-6
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFocusTest.test.ets
...main/ets/MainAbility/test/CameraSessionFocusTest.test.ets
+6
-6
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionVideoStabilizationTest.test.ets
...Ability/test/CameraSessionVideoStabilizationTest.test.ets
+6
-6
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionZoomRatioTest.test.ets
.../ets/MainAbility/test/CameraSessionZoomRatioTest.test.ets
+6
-6
未找到文件。
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionBaseTest.test.ets
浏览文件 @
e98081a6
...
@@ -386,8 +386,8 @@ export default function cameraSessionTest(surfaceId: any) {
...
@@ -386,8 +386,8 @@ export default function cameraSessionTest(surfaceId: any) {
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
previewProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
previewProfiles
.
length
;
j
++
)
{
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
i
],
surfaceId
);
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
j
],
surfaceId
);
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -401,8 +401,8 @@ export default function cameraSessionTest(surfaceId: any) {
...
@@ -401,8 +401,8 @@ export default function cameraSessionTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
photoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
photoProfiles
.
length
;
j
++
)
{
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
i
],
mPhoteSurface
);
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
j
],
mPhoteSurface
);
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -417,8 +417,8 @@ export default function cameraSessionTest(surfaceId: any) {
...
@@ -417,8 +417,8 @@ export default function cameraSessionTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
videoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
videoProfiles
.
length
;
j
++
)
{
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
i
],
mVideoSurface
);
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
j
],
mVideoSurface
);
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionExposureTest.test.ets
浏览文件 @
e98081a6
...
@@ -432,8 +432,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
...
@@ -432,8 +432,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
previewProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
previewProfiles
.
length
;
j
++
)
{
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
i
],
surfaceId
);
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
j
],
surfaceId
);
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -447,8 +447,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
...
@@ -447,8 +447,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
photoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
photoProfiles
.
length
;
j
++
)
{
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
i
],
mPhoteSurface
);
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
j
],
mPhoteSurface
);
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -463,8 +463,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
...
@@ -463,8 +463,8 @@ export default function cameraSessionExposureTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
videoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
videoProfiles
.
length
;
j
++
)
{
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
i
],
mVideoSurface
);
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
j
],
mVideoSurface
);
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFlashTest.test.ets
浏览文件 @
e98081a6
...
@@ -383,8 +383,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
...
@@ -383,8 +383,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
previewProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
previewProfiles
.
length
;
j
++
)
{
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
i
],
surfaceId
);
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
j
],
surfaceId
);
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -398,8 +398,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
...
@@ -398,8 +398,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
photoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
photoProfiles
.
length
;
j
++
)
{
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
i
],
mPhoteSurface
);
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
j
],
mPhoteSurface
);
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -414,8 +414,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
...
@@ -414,8 +414,8 @@ export default function cameraSessionFlashTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
videoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
videoProfiles
.
length
;
j
++
)
{
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
i
],
mVideoSurface
);
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
j
],
mVideoSurface
);
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionFocusTest.test.ets
浏览文件 @
e98081a6
...
@@ -428,8 +428,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
...
@@ -428,8 +428,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
previewProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
previewProfiles
.
length
;
j
++
)
{
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
i
],
surfaceId
);
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
j
],
surfaceId
);
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -443,8 +443,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
...
@@ -443,8 +443,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
photoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
photoProfiles
.
length
;
j
++
)
{
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
i
],
mPhoteSurface
);
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
j
],
mPhoteSurface
);
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -459,8 +459,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
...
@@ -459,8 +459,8 @@ export default function cameraSessionFocusTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
videoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
videoProfiles
.
length
;
j
++
)
{
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
i
],
mVideoSurface
);
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
j
],
mVideoSurface
);
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionVideoStabilizationTest.test.ets
浏览文件 @
e98081a6
...
@@ -381,8 +381,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
...
@@ -381,8 +381,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
previewProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
previewProfiles
.
length
;
j
++
)
{
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
i
],
surfaceId
);
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
j
],
surfaceId
);
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -396,8 +396,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
...
@@ -396,8 +396,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
photoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
photoProfiles
.
length
;
j
++
)
{
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
i
],
mPhoteSurface
);
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
j
],
mPhoteSurface
);
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -412,8 +412,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
...
@@ -412,8 +412,8 @@ export default function cameraSessionVideoStabilizationTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
videoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
videoProfiles
.
length
;
j
++
)
{
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
i
],
mVideoSurface
);
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
j
],
mVideoSurface
);
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
...
multimedia/camera/camera_js_standard/src/main/ets/MainAbility/test/CameraSessionZoomRatioTest.test.ets
浏览文件 @
e98081a6
...
@@ -385,8 +385,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
...
@@ -385,8 +385,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
let
cameraOutputCap
=
await
mCameraManager
.
getSupportedOutputCapability
(
mCameraDevicesArray
[
i
]);
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
previewProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.previewProfiles.length: "
+
cameraOutputCap
.
previewProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
previewProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
previewProfiles
.
length
;
j
++
)
{
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
i
],
surfaceId
);
mPreviewOutputArray
[
i
]
=
await
mCameraManager
.
createPreviewOutput
(
cameraOutputCap
.
previewProfiles
[
j
],
surfaceId
);
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPreviewOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -400,8 +400,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
...
@@ -400,8 +400,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
photoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.photoProfiles.length: "
+
cameraOutputCap
.
photoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
photoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
photoProfiles
.
length
;
j
++
)
{
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
i
],
mPhoteSurface
);
mPhotoOutputArray
[
i
]
=
await
mCameraManager
.
createPhotoOutput
(
cameraOutputCap
.
photoProfiles
[
j
],
mPhoteSurface
);
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mPhotoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
@@ -416,8 +416,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
...
@@ -416,8 +416,8 @@ export default function cameraSessionZoomRatioTest(surfaceId: any) {
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
if
(
!
isEmpty
(
cameraOutputCap
.
videoProfiles
))
{
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
console
.
info
(
TAG
+
"cameraOutputCap.videoProfiles.length: "
+
cameraOutputCap
.
videoProfiles
.
length
);
for
(
let
i
=
0
;
i
<
cameraOutputCap
.
videoProfiles
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
cameraOutputCap
.
videoProfiles
.
length
;
j
++
)
{
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
i
],
mVideoSurface
);
mVideoOutputArray
[
i
]
=
await
mCameraManager
.
createVideoOutput
(
cameraOutputCap
.
videoProfiles
[
j
],
mVideoSurface
);
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
if
(
!
isEmpty
(
mVideoOutputArray
[
i
]))
{
break
;
break
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录