Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
70c30bb9
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看板
提交
70c30bb9
编写于
8月 03, 2022
作者:
L
lwx1121892
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<liuxueqi3@huawei.com>
Signed-off-by:
N
lwx1121892
<
liuxueqi3@huawei.com
>
上级
81f0f3ce
变更
19
展开全部
隐藏空白更改
内联
并排
Showing
19 changed file
with
256 addition
and
237 deletion
+256
-237
multimedia/image/image_js_standard/image/src/main/js/test/List.test.js
...age/image_js_standard/image/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
...ge/image_js_standard/image/src/main/js/test/image.test.js
+2
-2
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/List.test.js
...js_standard/imageColorspace/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
...ndard/imageColorspace/src/main/js/test/colorspace.test.js
+2
-2
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/List.test.js
...standard/imageDecodeOptions/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
...tandard/imageDecodeOptions/src/main/js/test/image.test.js
+134
-118
multimedia/image/image_js_standard/imageExif/src/main/js/test/addImage.test.js
...e_js_standard/imageExif/src/main/js/test/addImage.test.js
+1
-1
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
...mage_js_standard/imageExif/src/main/js/test/image.test.js
+11
-8
multimedia/image/image_js_standard/imageExif/src/main/js/test/testImg.js
...e/image_js_standard/imageExif/src/main/js/test/testImg.js
+6
-6
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/List.test.js
...tandard/imageModifyProperty/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
...ndard/imageModifyProperty/src/main/js/test/modify.test.js
+2
-2
multimedia/image/image_js_standard/imagePacking/src/main/js/test/List.test.js
...ge_js_standard/imagePacking/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
...js_standard/imagePacking/src/main/js/test/packing.test.js
+56
-56
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/List.test.js
...dard/imagePixelMapFramework/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
...imagePixelMapFramework/src/main/js/test/framework.test.js
+2
-2
multimedia/image/image_js_standard/imageWebp/src/main/js/test/List.test.js
...image_js_standard/imageWebp/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
...image_js_standard/imageWebp/src/main/js/test/webp.test.js
+2
-2
multimedia/image/image_js_standard/imageYUV/src/main/js/test/List.test.js
.../image_js_standard/imageYUV/src/main/js/test/List.test.js
+2
-2
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
...e/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
+22
-22
未找到文件。
multimedia/image/image_js_standard/image/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
Image_test
from
'
./image.test.js
'
import
image
from
'
./image.test.js
'
export
default
function
testsuite
()
{
Image_test
()
image
()
}
multimedia/image/image_js_standard/image/src/main/js/test/image.test.js
浏览文件 @
70c30bb9
...
...
@@ -19,8 +19,8 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
import
{
testPng
,
testJpg
}
from
'
./testImg
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
export
default
function
Image_test
()
{
describe
(
'
Image_test
'
,
function
()
{
export
default
function
image
()
{
describe
(
'
image
'
,
function
()
{
let
filePath
;
let
fdNumber
;
let
globalpixelmap
;
...
...
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -14,7 +14,7 @@
*/
import
Image_test
from
'
./colorspace.test.js
'
import
imageColorSpace
from
'
./colorspace.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imageColorSpace
()
}
multimedia/image/image_js_standard/imageColorspace/src/main/js/test/colorspace.test.js
浏览文件 @
70c30bb9
...
...
@@ -17,8 +17,8 @@ import image from '@ohos.multimedia.image'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
{
iccbuf
}
from
'
./testImg2
'
export
default
function
Image_test
()
{
describe
(
'
Image_test
'
,
function
()
{
export
default
function
imageColorSpace
()
{
describe
(
'
imageColorSpace
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
})
...
...
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
Image_test
from
'
./image.test.js
'
import
imageDecodeOptions
from
'
./image.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imageDecodeOptions
()
}
multimedia/image/image_js_standard/imageDecodeOptions/src/main/js/test/image.test.js
浏览文件 @
70c30bb9
此差异已折叠。
点击以展开。
multimedia/image/image_js_standard/imageExif/src/main/js/test/addImage.test.js
浏览文件 @
70c30bb9
...
...
@@ -17,7 +17,7 @@ import image from '@ohos.multimedia.image'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
testPng
}
from
'
../../../../../image/src/main/js/test/testImg
'
describe
(
'
A
ddImage
'
,
function
()
{
describe
(
'
a
ddImage
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
...
...
multimedia/image/image_js_standard/imageExif/src/main/js/test/image.test.js
浏览文件 @
70c30bb9
...
...
@@ -16,10 +16,10 @@
import
image
from
'
@ohos.multimedia.image
'
import
fileio
from
'
@ohos.fileio
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
tc_020
buf
,
tc_020_1buf
,
tc_021buf
,
tc_021_1buf
,
tc_022b
uf
}
from
'
./testImg
'
import
{
tc_020
Buf
,
tc_020_1Buf
,
tc_021Buf
,
tc_021_1Buf
,
tc_022B
uf
}
from
'
./testImg
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
describe
(
'
Image
'
,
function
()
{
describe
(
'
imageExif
'
,
function
()
{
let
filePath
;
let
fdNumber
;
let
globalpixelmap
;
...
...
@@ -111,6 +111,7 @@ describe('Image', function () {
done
();
})
})
/**
* @tc.number : TC_001-2
* @tc.name : createpixelmap-promise (editable: true, pixelFormat: RGB_565, size: { height: 6, width: 8 },bytes = buffer)
...
...
@@ -161,6 +162,7 @@ describe('Image', function () {
})
})
/**
* @tc.number : TC_001-4
* @tc.name : createpixelmap-promise(editable: true, pixelFormat: unkonwn, size: { height: 6, width: 8 })
...
...
@@ -210,6 +212,7 @@ describe('Image', function () {
done
();
})
})
/**
* @tc.number : TC_001-6
* @tc.name : create pixelmap-callback(editable: true, pixelFormat: RGBA_8888, size: { height: 6, width: 8 } bytes > buffer )
...
...
@@ -331,7 +334,7 @@ describe('Image', function () {
var
bufferArr2
=
new
Uint8Array
(
readBuffer
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
bufferArr2
.
length
;
i
++
)
{
if
(
bufferArr2
[
i
]
!=
tc_020
b
uf
[
i
])
{
if
(
bufferArr2
[
i
]
!=
tc_020
B
uf
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_20_buffer
'
+
bufferArr2
[
i
]);
console
.
info
(
'
TC_020 failed
'
);
...
...
@@ -389,7 +392,7 @@ describe('Image', function () {
var
bufferArr
=
new
Uint8Array
(
readBuffer
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
bufferArr
.
length
;
i
++
)
{
if
(
bufferArr
[
i
]
!=
tc_020_1
b
uf
[
i
])
{
if
(
bufferArr
[
i
]
!=
tc_020_1
B
uf
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_020-1 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -493,7 +496,7 @@ describe('Image', function () {
var
bufferArr2
=
new
Uint8Array
(
area
.
pixels
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
bufferArr2
.
length
;
i
++
)
{
if
(
bufferArr2
[
i
]
!=
tc_021
b
uf
[
i
])
{
if
(
bufferArr2
[
i
]
!=
tc_021
B
uf
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_021 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -551,7 +554,7 @@ describe('Image', function () {
var
res
=
true
;
for
(
var
i
=
0
;
i
<
bufferArr
.
length
;
i
++
)
{
console
.
info
(
'
TC_021-1 buffer
'
+
bufferArr
[
i
]);
if
(
bufferArr
[
i
]
!=
tc_021_1
b
uf
[
i
])
{
if
(
bufferArr
[
i
]
!=
tc_021_1
B
uf
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_021-1 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -788,7 +791,7 @@ describe('Image', function () {
var
readArr
=
new
Uint8Array
(
readArea
.
pixels
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
readArr
.
length
;
i
++
)
{
if
(
readArr
[
i
]
!=
tc_022
b
uf
[
i
])
{
if
(
readArr
[
i
]
!=
tc_022
B
uf
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_022 failed
'
);
expect
(
false
).
assertTrue
();
...
...
@@ -853,7 +856,7 @@ describe('Image', function () {
var
readArr
=
new
Uint8Array
(
readArea
.
pixels
);
var
res
=
true
;
for
(
var
i
=
0
;
i
<
readArr
.
length
;
i
++
)
{
if
(
readArr
[
i
]
!=
tc_022
b
uf
[
i
])
{
if
(
readArr
[
i
]
!=
tc_022
B
uf
[
i
])
{
res
=
false
;
console
.
info
(
'
TC_022-1 failed
'
);
expect
(
false
).
assertTrue
();
...
...
multimedia/image/image_js_standard/imageExif/src/main/js/test/testImg.js
浏览文件 @
70c30bb9
...
...
@@ -13,10 +13,10 @@
* limitations under the License.
*/
let
tc_020
b
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc_020_1
b
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc_021
b
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc_021_1
b
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc_022
b
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc_020
B
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc_020_1
B
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
,
1
,
0
,
0
,
12
,
1
,
1
,
1
,
16
,
1
,
1
,
1
,
20
,
2
,
2
,
2
,
24
,
3
,
3
,
3
,
28
,
4
,
4
,
4
,
32
,
5
,
5
,
5
,
36
,
6
,
6
,
6
,
40
,
7
,
7
,
7
,
44
,
9
,
9
,
8
,
48
,
10
,
10
,
10
,
52
,
12
,
12
,
12
,
56
,
14
,
14
,
13
,
60
,
16
,
16
,
15
,
64
,
18
,
18
,
17
,
68
,
20
,
20
,
19
,
72
,
22
,
22
,
22
,
76
,
25
,
24
,
24
,
80
,
27
,
27
,
27
,
84
,
30
,
30
,
29
,
88
,
33
,
32
,
32
,
92
,
36
,
35
,
35
,
96
])
let
tc_021
B
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc_021_1
B
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
let
tc_022
B
uf
=
new
Uint8Array
([
0
,
0
,
0
,
4
,
0
,
0
,
0
,
8
])
export
{
tc_020buf
,
tc_020_1buf
,
tc_021buf
,
tc_021_1buf
,
tc_022buf
}
\ No newline at end of file
export
{
tc_020Buf
,
tc_020_1Buf
,
tc_021Buf
,
tc_021_1Buf
,
tc_022Buf
}
\ No newline at end of file
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
Image
from
'
./modify.test.js
'
import
imageModifyProperty
from
'
./modify.test.js
'
export
default
function
testsuite
()
{
Image
()
imageModifyProperty
()
}
multimedia/image/image_js_standard/imageModifyProperty/src/main/js/test/modify.test.js
浏览文件 @
70c30bb9
...
...
@@ -19,8 +19,8 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
import
{
modifyBuf
}
from
'
./modifyBuffer
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
export
default
function
Image
()
{
describe
(
'
Image
'
,
function
()
{
export
default
function
imageModifyProperty
()
{
describe
(
'
imageModifyProperty
'
,
function
()
{
let
filePath
;
let
fdNumber
;
async
function
getFd
(
fileName
)
{
...
...
multimedia/image/image_js_standard/imagePacking/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
Image_test
from
'
./packing.test.js
'
import
imagePacking
from
'
./packing.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imagePacking
()
}
multimedia/image/image_js_standard/imagePacking/src/main/js/test/packing.test.js
浏览文件 @
70c30bb9
...
...
@@ -16,8 +16,8 @@
import
image
from
'
@ohos.multimedia.image
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
export
default
function
Image_test
()
{
describe
(
'
Image_test
'
,
function
()
{
export
default
function
imagePacking
()
{
describe
(
'
imagePacking
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
...
...
@@ -35,7 +35,7 @@ describe('Image_test', function () {
console
.
info
(
'
afterAll case
'
);
})
function
packing_
p
romise
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing_
P
romise
(
done
,
testNum
,
pixFormat
,
arg
)
{
let
opts
;
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
...
...
@@ -81,7 +81,7 @@ describe('Image_test', function () {
})
}
function
packing_
c
b
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing_
C
b
(
done
,
testNum
,
pixFormat
,
arg
)
{
let
opts
;
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
...
...
@@ -127,7 +127,7 @@ describe('Image_test', function () {
})
}
function
packing_
cb_f
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing_
Cb_F
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
var
opts
=
{
editable
:
true
,
pixelFormat
:
2
,
size
:
{
height
:
4
,
width
:
6
}
}
...
...
@@ -160,7 +160,7 @@ describe('Image_test', function () {
})
}
function
packing_
promise_f
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
function
packing_
Promise_F
ail
(
done
,
testNum
,
pixFormat
,
arg
)
{
const
Color
=
new
ArrayBuffer
(
96
);
if
(
pixFormat
==
2
)
{
var
opts
=
{
editable
:
true
,
pixelFormat
:
2
,
size
:
{
height
:
4
,
width
:
6
}
}
...
...
@@ -209,7 +209,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_001
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
packing_
p
romise
(
done
,
'
SUB_IMAGE_packing_P_001
'
,
2
,
packOpts
)
packing_
P
romise
(
done
,
'
SUB_IMAGE_packing_P_001
'
,
2
,
packOpts
)
})
/**
...
...
@@ -224,7 +224,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_002
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_002
'
,
2
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_002
'
,
2
,
packOpts
)
})
/**
...
...
@@ -239,7 +239,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_003
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_003
'
,
2
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_003
'
,
2
,
packOpts
)
})
/**
...
...
@@ -254,7 +254,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_004
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_004
'
,
2
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_004
'
,
2
,
packOpts
)
})
/**
...
...
@@ -269,7 +269,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_005
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_005
'
,
2
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_005
'
,
2
,
packOpts
)
})
/**
...
...
@@ -284,7 +284,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
50
}
packing_
p
romise
(
done
,
'
SUB_IMAGE_packing_P_006
'
,
5
,
packOpts
)
packing_
P
romise
(
done
,
'
SUB_IMAGE_packing_P_006
'
,
5
,
packOpts
)
})
/**
...
...
@@ -299,7 +299,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_007
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_007
'
,
5
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_007
'
,
5
,
packOpts
)
})
/**
...
...
@@ -314,7 +314,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_008
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_008
'
,
5
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_008
'
,
5
,
packOpts
)
})
/**
...
...
@@ -329,7 +329,7 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_009
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_009
'
,
5
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_009
'
,
5
,
packOpts
)
})
/**
...
...
@@ -344,12 +344,12 @@ describe('Image_test', function () {
*/
it
(
'
SUB_IMAGE_packing_P_010
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing_
promise_f
ail
(
done
,
'
SUB_IMAGE_packing_P_010
'
,
5
,
packOpts
)
packing_
Promise_F
ail
(
done
,
'
SUB_IMAGE_packing_P_010
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_001
* @tc.name : SUB_IMAGE_packing_C
B
_001
* @tc.number : SUB_IMAGE_packing_C
b
_001
* @tc.name : SUB_IMAGE_packing_C
b
_001
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -357,14 +357,14 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_001
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_001
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
packing_
cb
(
done
,
'
SUB_IMAGE_packing_CB
_001
'
,
2
,
packOpts
)
packing_
Cb
(
done
,
'
SUB_IMAGE_packing_Cb
_001
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_002
* @tc.name : SUB_IMAGE_packing_C
B
_002 - callback - RGB565 quality 123
* @tc.number : SUB_IMAGE_packing_C
b
_002
* @tc.name : SUB_IMAGE_packing_C
b
_002 - callback - RGB565 quality 123
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -372,15 +372,15 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_002
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_002
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_002
'
,
2
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_002
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_003
* @tc.name : SUB_IMAGE_packing_C
B
_003 - callback - RGB565 quality null
* @tc.number : SUB_IMAGE_packing_C
b
_003
* @tc.name : SUB_IMAGE_packing_C
b
_003 - callback - RGB565 quality null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -388,14 +388,14 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_003
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_003
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_003
'
,
2
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_003
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_004
* @tc.name : SUB_IMAGE_packing_C
B
_004 - callback - RGB565 format null
* @tc.number : SUB_IMAGE_packing_C
b
_004
* @tc.name : SUB_IMAGE_packing_C
b
_004 - callback - RGB565 format null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -403,14 +403,14 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_004
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_004
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_004
'
,
2
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_004
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_005
* @tc.name : SUB_IMAGE_packing_C
B
_005 - callback - RGB565 wrong format
* @tc.number : SUB_IMAGE_packing_C
b
_005
* @tc.name : SUB_IMAGE_packing_C
b
_005 - callback - RGB565 wrong format
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -418,14 +418,14 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_005
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_005
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_005
'
,
2
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_005
'
,
2
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_006
* @tc.name : SUB_IMAGE_packing_C
B
_006
* @tc.number : SUB_IMAGE_packing_C
b
_006
* @tc.name : SUB_IMAGE_packing_C
b
_006
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -433,14 +433,14 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_006
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_006
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
50
}
packing_
cb
(
done
,
'
SUB_IMAGE_packing_CB
_006
'
,
5
,
packOpts
)
packing_
Cb
(
done
,
'
SUB_IMAGE_packing_Cb
_006
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_007
* @tc.name : SUB_IMAGE_packing_C
B
_007 - callback - RGB888 quality 123
* @tc.number : SUB_IMAGE_packing_C
b
_007
* @tc.name : SUB_IMAGE_packing_C
b
_007 - callback - RGB888 quality 123
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -448,15 +448,15 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_007
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_007
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
123
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_007
'
,
5
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_007
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_008
* @tc.name : SUB_IMAGE_packing_C
B
_008 - callback - RGB888 quality null
* @tc.number : SUB_IMAGE_packing_C
b
_008
* @tc.name : SUB_IMAGE_packing_C
b
_008 - callback - RGB888 quality null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -464,14 +464,14 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_008
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_008
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/jpeg
"
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_008
'
,
5
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_008
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_009
* @tc.name : SUB_IMAGE_packing_C
B
_009 - callback - RGB888 format null
* @tc.number : SUB_IMAGE_packing_C
b
_009
* @tc.name : SUB_IMAGE_packing_C
b
_009 - callback - RGB888 format null
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -479,14 +479,14 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_009
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_009
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
quality
:
99
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_009
'
,
5
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_009
'
,
5
,
packOpts
)
})
/**
* @tc.number : SUB_IMAGE_packing_C
B
_010
* @tc.name : SUB_IMAGE_packing_C
B
_010 - callback - RGB888 wrong format
* @tc.number : SUB_IMAGE_packing_C
b
_010
* @tc.name : SUB_IMAGE_packing_C
b
_010 - callback - RGB888 wrong format
* @tc.desc : 1.create PixelMap
* 2.create ImagePacker
* 3.call packing
...
...
@@ -494,9 +494,9 @@ describe('Image_test', function () {
* @tc.type : Functional
* @tc.level : level 0
*/
it
(
'
SUB_IMAGE_packing_C
B
_010
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_IMAGE_packing_C
b
_010
'
,
0
,
async
function
(
done
)
{
let
packOpts
=
{
format
:
"
image/png
"
,
quality
:
99
}
packing_
cb_fail
(
done
,
'
SUB_IMAGE_packing_CB
_010
'
,
5
,
packOpts
)
packing_
Cb_Fail
(
done
,
'
SUB_IMAGE_packing_Cb
_010
'
,
5
,
packOpts
)
})
})}
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -14,7 +14,7 @@
*/
import
Image_test
from
'
./framework.test.js
'
import
imagePixelMapFramework
from
'
./framework.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imagePixelMapFramework
()
}
multimedia/image/image_js_standard/imagePixelMapFramework/src/main/js/test/framework.test.js
浏览文件 @
70c30bb9
...
...
@@ -17,8 +17,8 @@ import image from '@ohos.multimedia.image'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
{
base64Image
,
scale2x1
,
translate3x1
,
rotate90
,
flipH
,
testBmp
,
testGif
,
crop3x3
,
scale1x4
,
setAlpha8
,
translate1x3
}
from
'
./testImg2
'
import
{
testPng
,
testJpg
}
from
'
../../../../../image/src/main/js/test/testImg
'
export
default
function
Image_test
()
{
describe
(
'
Image_test
'
,
function
()
{
export
default
function
imagePixelMapFramework
()
{
describe
(
'
imagePixelMapFramework
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
})
...
...
multimedia/image/image_js_standard/imageWebp/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
Image_test
from
'
./webp.test.js
'
import
imageWebp
from
'
./webp.test.js
'
export
default
function
testsuite
()
{
Image_test
()
imageWebp
()
}
multimedia/image/image_js_standard/imageWebp/src/main/js/test/webp.test.js
浏览文件 @
70c30bb9
...
...
@@ -18,8 +18,8 @@ import fileio from '@ohos.fileio'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
export
default
function
Image
()
{
describe
(
'
Image
'
,
function
()
{
export
default
function
imageWebp
()
{
describe
(
'
imageWebp
'
,
function
()
{
let
filePath
;
let
fdNumber
;
async
function
getFd
(
fileName
)
{
...
...
multimedia/image/image_js_standard/imageYUV/src/main/js/test/List.test.js
浏览文件 @
70c30bb9
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
Image
from
'
./yuv.test.js
'
import
imageYuv
from
'
./yuv.test.js
'
export
default
function
testsuite
()
{
Image
()
imageYuv
()
}
multimedia/image/image_js_standard/imageYUV/src/main/js/test/yuv.test.js
浏览文件 @
70c30bb9
...
...
@@ -16,8 +16,8 @@
import
image
from
'
@ohos.multimedia.image
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
export
default
function
Image
()
{
describe
(
'
Image
'
,
function
()
{
export
default
function
imageYuv
()
{
describe
(
'
imageYuv
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
...
...
@@ -98,7 +98,7 @@ describe('Image', function () {
}
}
async
function
yuvToJpegByPixelMapPromise_
f
ail
(
done
,
testNum
,
sourceOptions
,
yuvData
)
{
async
function
yuvToJpegByPixelMapPromise_
F
ail
(
done
,
testNum
,
sourceOptions
,
yuvData
)
{
try
{
let
imageSource
=
image
.
createImageSource
(
yuvData
,
sourceOptions
)
if
(
imageSource
==
undefined
)
{
...
...
@@ -161,7 +161,7 @@ describe('Image', function () {
}
}
async
function
yuvToJpegByPixelMapCallback_
f
ail
(
done
,
testNum
,
sourceOptions
,
yuvData
)
{
async
function
yuvToJpegByPixelMapCallback_
F
ail
(
done
,
testNum
,
sourceOptions
,
yuvData
)
{
try
{
let
imageSource
=
image
.
createImageSource
(
yuvData
,
sourceOptions
);
if
(
imageSource
==
undefined
)
{
...
...
@@ -224,7 +224,7 @@ describe('Image', function () {
}
}
async
function
yuvToJpegByImageSourcePromise_
f
ail
(
done
,
testNum
,
sourceOptions
,
arg
,
yuvData
)
{
async
function
yuvToJpegByImageSourcePromise_
F
ail
(
done
,
testNum
,
sourceOptions
,
arg
,
yuvData
)
{
let
imageSource
=
image
.
createImageSource
(
yuvData
,
sourceOptions
);
if
(
imageSource
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create ImageSource failed`
);
...
...
@@ -286,7 +286,7 @@ describe('Image', function () {
}
}
async
function
yuvToJpegByImageSourceCallback_
f
ail
(
done
,
testNum
,
sourceOptions
,
arg
,
yuvData
)
{
async
function
yuvToJpegByImageSourceCallback_
F
ail
(
done
,
testNum
,
sourceOptions
,
arg
,
yuvData
)
{
let
imageSource
=
image
.
createImageSource
(
yuvData
,
sourceOptions
);
if
(
imageSource
==
undefined
)
{
console
.
info
(
`
${
testNum
}
create ImageSource failed`
);
...
...
@@ -364,7 +364,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_P_004
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapPromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_004
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_004
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -394,7 +394,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_P_006
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapPromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_006
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_006
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -409,7 +409,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_P_007
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_007
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_007
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -424,7 +424,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_P_008
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapPromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_008
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapPromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_P_008
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -496,7 +496,7 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_004
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_004
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -532,7 +532,7 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_006
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_006
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -550,7 +550,7 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_007
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_007
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -568,7 +568,7 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourcePromise_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_008
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourcePromise_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_P_008
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -628,7 +628,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_CB_004
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_004
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_004
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -658,7 +658,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_CB_006
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
yuvToJpegByPixelMapCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_006
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_006
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -673,7 +673,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_CB_007
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_007
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_007
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -688,7 +688,7 @@ describe('Image', function () {
it
(
'
SUB_IMAGE_yuv_pixelmap_CB_008
'
,
0
,
async
function
(
done
)
{
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
yuvToJpegByPixelMapCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_008
'
,
sourceOptions
,
yuvData
)
yuvToJpegByPixelMapCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_pixelmap_CB_008
'
,
sourceOptions
,
yuvData
)
})
/**
...
...
@@ -760,7 +760,7 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
8
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_004
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_004
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -796,7 +796,7 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
9
,
sourceSize
:
{
height
:
4
,
width
:
5
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_006
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_006
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -814,7 +814,7 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourcePixelFormat
:
10
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_007
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_007
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
/**
...
...
@@ -832,6 +832,6 @@ describe('Image', function () {
let
yuvData
=
createBuffer
(
4
,
6
);
let
sourceOptions
=
{
sourceDensity
:
120
,
sourceSize
:
{
height
:
4
,
width
:
6
}
};
let
packOpts
=
{
format
:
"
image/jpeg
"
,
quality
:
99
}
yuvToJpegByImageSourceCallback_
f
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_008
'
,
sourceOptions
,
packOpts
,
yuvData
)
yuvToJpegByImageSourceCallback_
F
ail
(
done
,
'
SUB_IMAGE_yuv_imagesource_CB_008
'
,
sourceOptions
,
packOpts
,
yuvData
)
})
})}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录