| /test/xts/acts/multimedia/image/image_js_standard/imageDecodeOptions/entry/src/ohosTest/ets/test/ |
| D | imagePixelLocation.test.ets | 58 async function checkDecode(done: Function, testNum: string, picture: string, decodingOptions: image… 68 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 94 async function checkHeicDecode(done: Function, testNum: string, picture: string, decodingOptions: i… 108 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 134 async function checkDecodeErr(done: Function, testNum: string, picture: string, decodingOptions: im… 144 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 162 async function checkHeicDecodeErr(done: Function, testNum: string, picture: string, decodingOptions… 175 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 265 let decodingOptions: image.DecodingOptions = { 274 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { [all …]
|
| D | image.test.ets | 99 * @tc.name : createPixelMap(decodingOptions)-pixelformat:RGBA_8888-jpg 119 let decodingOptions: Options = { 128 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 155 * @tc.name : createPixelMap(decodingOptions)-pixelformat:RGB_565-jpg 175 let decodingOptions: Options = { 184 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 211 * @tc.name : createPixelMap(decodingOptions)-pixelformat:unknown-jpg 231 let decodingOptions: Options = { 240 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 267 * @tc.name : createPixelMap(decodingOptions: index 1})-jpg [all …]
|
| /test/xts/acts/multimedia/image/image_ets_standard/imagePixelMap/entry/src/ohosTest/ets/test/ |
| D | imagePixelMapForDMATest.ets | 96 …const getImageInfo = async (logger: Logger, buffer: ArrayBuffer, decodingOptions?: image.DecodingO… 99 if (decodingOptions != undefined) { 100 pixelMap = await imageSource.createPixelMap(decodingOptions); 114 decodingOptions?: image.DecodingOptions, 121 if (decodingOptions != undefined && allocatorType == undefined) { 122 pixelMap = imageSource.createPixelMapUsingAllocatorSync(decodingOptions); 123 } else if (decodingOptions != undefined && allocatorType != undefined) { 124 pixelMap = imageSource.createPixelMapUsingAllocatorSync(decodingOptions, allocatorType); 125 } else if (decodingOptions == undefined && allocatorType == undefined) { 129 if (decodingOptions != undefined && allocatorType == undefined) { [all …]
|
| /test/xts/acts/multimedia/image/image_ets_standard/imageDecodeOptionsYuvRaw/entry/src/ohosTest/ets/test/ |
| D | ImageDecodeOptionsRaw.test.ets | 75 let decodingOptions: image.DecodingOptions = { 87 case 'decodingOptions': 88 await decodingOptionsCreate(TAG, imageSourceApi, decodingOptions, desiredPixelFormat); 91 await callBackCreate(TAG, imageSourceApi, decodingOptions, desiredPixelFormat); 100 … decodingOptions: image.DecodingOptions, desiredPixelFormat: number) => { 102 await imageSourceApi.createPixelMap(decodingOptions) 121 … decodingOptions: image.DecodingOptions, desiredPixelFormat: number) => { 123 …imageSourceApi.createPixelMap(decodingOptions, async (err: BusinessError, pixelMap: image.PixelMap… 150 let decodingOptions: image.DecodingOptions = { 162 case 'decodingOptions': [all …]
|
| D | ImageDecodeOptionsYuv.test.ets | 98 let decodingOptions: image.DecodingOptions = { 114 await promiseCreate(TAG, imageSourceApi, decodingOptions); 117 await callBackCreate(TAG, imageSourceApi, decodingOptions); 120 await syncCreate(TAG, imageSourceApi, decodingOptions); 135 let decodingOptions: image.DecodingOptions = { 155 await promiseCreate(TAG, imageSourceApi, decodingOptions); 158 await callBackCreate(TAG, imageSourceApi, decodingOptions); 161 await syncCreate(TAG, imageSourceApi, decodingOptions); 176 let decodingOptions: image.DecodingOptions = {}; 179 await VerifyPixelMap(TAG, imageSourceApi, width, height, decodingOptions); [all …]
|
| /test/xts/acts/multimedia/image/image_ets_standard/imageXts/entry/src/ohosTest/ets/test/image/ImageSource/ |
| D | createPixelMapList.test.ets | 119 let decodingOptions: image.DecodingOptions = { 129 await createPixelMapListPromiseTest(done, testName, path, decodingOptions); 144 let decodingOptions: image.DecodingOptions = { 154 await createPixelMapListPromiseTest(done, testName, path, decodingOptions); 169 let decodingOptions: image.DecodingOptions = { 179 await createPixelMapListPromiseTest(done, testName, path, decodingOptions); 194 let decodingOptions: image.DecodingOptions = { 204 await createPixelMapListPromiseTest(done, testName, path, decodingOptions); 219 let decodingOptions: image.DecodingOptions = { 226 await createPixelMapListPromiseTest(done, testName, path, decodingOptions); [all …]
|
| D | createPixelMapUsingAllocatorSync.test.ets | 76 const decodingOptions: image.DecodingOptions = { 86 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 101 const decodingOptions: image.DecodingOptions = { 111 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 126 const decodingOptions: image.DecodingOptions = { 136 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 151 const decodingOptions: image.DecodingOptions = { 161 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 176 const decodingOptions = undefined 179 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… [all …]
|
| D | createPixelMapUsingAllocator.test.ets | 76 const decodingOptions: image.DecodingOptions = { 86 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 101 const decodingOptions: image.DecodingOptions = { 111 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 126 const decodingOptions: image.DecodingOptions = { 136 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 151 const decodingOptions: image.DecodingOptions = { 161 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… 176 const decodingOptions = undefined 179 …await createPixelMapUsingAllocatorPromiseTest(done, testName, path, decodingOptions, allocatorType… [all …]
|
| D | createPixelMap.test.ets | 115 let decodingOptions: image.DecodingOptions = { 125 await createPixelMapPromiseTest(done, testName, path, decodingOptions); 140 let decodingOptions: image.DecodingOptions = { 150 await createPixelMapPromiseTest(done, testName, path, decodingOptions); 259 let decodingOptions: image.DecodingOptions = { 271 await createPixelMapDecodingOptionsCallbackTest(done, testName, path, decodingOptions); 284 let decodingOptions: image.DecodingOptions = { 296 await createPixelMapDecodingOptionsCallbackTest(done, testName, path, decodingOptions); 309 let decodingOptions: image.DecodingOptions = { 321 await createPixelMapDecodingOptionsCallbackTest(done, testName, path, decodingOptions); [all …]
|
| D | createPixelMapSync.test.ets | 71 let decodingOptions: image.DecodingOptions = { 81 await createPixelMapSyncPromiseTest(done, testName, path, decodingOptions); 96 let decodingOptions: image.DecodingOptions = { 106 await createPixelMapSyncPromiseTest(done, testName, path, decodingOptions); 121 let decodingOptions: image.DecodingOptions = { 131 await createPixelMapSyncPromiseTest(done, testName, path, decodingOptions);
|
| /test/xts/acts/multimedia/image/image_js_standard/image/entry/src/ohosTest/ets/test/ |
| D | imageSync.test.ets | 158 let decodingOptions: image.DecodingOptions | undefined = { 161 let pixelmap = incSouce.createPixelMapSync(decodingOptions); 500 let decodingOptions: image.DecodingOptions = { 518 …tCreatePixelMap(done, "SUB_MULTIMEDIA_IMAGE_CREATEPIXELMAPSYNC_0300", "test.jpg", decodingOptions); 532 let decodingOptions: image.DecodingOptions = { 548 …elMapInvaildOpt(done, "SUB_MULTIMEDIA_IMAGE_CREATEPIXELMAPSYNC_0400", "test.jpg", decodingOptions); 563 let decodingOptions: image.DecodingOptions = { 580 …tCreatePixelMap(done, "SUB_MULTIMEDIA_IMAGE_CREATEPIXELMAPSYNC_0500", "test.jpg", decodingOptions); 596 let decodingOptions: image.DecodingOptions = { 613 …tCreatePixelMap(done, "SUB_MULTIMEDIA_IMAGE_CREATEPIXELMAPSYNC_0600", "test.jpg", decodingOptions); [all …]
|
| D | addImage.test.ets | 130 let decodingOptions: DecodingOptions = { 133 incSouce.createPixelMap(decodingOptions, (err, pixelmap) => { 184 let decodingOptions: DecodingOptions = { 187 incSouce.createPixelMap(decodingOptions, (err, pixelmap) => {
|
| D | image.test.ets | 3227 let decodingOptions: image.DecodingOptions = { 3230 incSouce.createPixelMap(decodingOptions, (err, pixelmap) => { 3282 let decodingOptions: image.DecodingOptions = { 3285 incSouce.createPixelMap(decodingOptions, (err, pixelmap) => {
|
| /test/xts/acts/pcs/pcs_arkts/entry/src/ohosTest/ets/test/ |
| D | OptionalSystemCapability.test.ets | 139 let decodingOptions : image.DecodingOptions = { 144 await imageSource.createPixelMap(decodingOptions).then((pixelMap : image.PixelMap) => { 173 let decodingOptions : image.DecodingOptions = { 178 await imageSource.createPixelMap(decodingOptions).then((pixelMap : image.PixelMap) => { 207 let decodingOptions : image.DecodingOptions = { 212 await imageSource.createPixelMap(decodingOptions).then((pixelMap : image.PixelMap) => { 240 let decodingOptions : image.DecodingOptions = { 245 await imageSource.createPixelMap(decodingOptions).then((pixelMap : image.PixelMap) => { 274 let decodingOptions : image.DecodingOptions = { 279 await imageSource.createPixelMap(decodingOptions).then((pixelMap : image.PixelMap) => { [all …]
|
| /test/xts/acts/multimedia/image/image_js_standard/imageWebp/entry/src/ohosTest/ets/test/ |
| D | webp.test.ets | 609 let decodingOptions: ESObject = { 624 imageSourceApi.createPixelMap(decodingOptions).then((pixelmap) => { 667 let decodingOptions: ESObject = { 682 imageSourceApi.createPixelMap(decodingOptions, (err, pixelmap) => { 785 let decodingOptions: ESObject = { 800 …createPixMapCbErr(done, "SUB_MULTIMEDIA_IMAGE_WEBP_CREATEPIXELMAP_CALLBACK_0300", decodingOptions); 815 let decodingOptions: ESObject = { 830 …createPixMapCbErr(done, "SUB_MULTIMEDIA_IMAGE_WEBP_CREATEPIXELMAP_CALLBACK_0400", decodingOptions); 845 let decodingOptions: ESObject = { 860 …createPixMapCbErr(done, "SUB_MULTIMEDIA_IMAGE_WEBP_CREATEPIXELMAP_CALLBACK_0500", decodingOptions); [all …]
|
| /test/xts/acts/multimedia/image/image_ets_standard/pictureNdk/entry/src/main/cpp/ |
| D | PictureNdk.cpp | 102 OH_DecodingOptionsForPicture *decodingOptions = nullptr; member 175 …IMG_NAPI_RELEASE_PTR(g_ctx.decodingOptions, OH_DecodingOptionsForPicture_Release(g_ctx.decodingOpt… in ReleaseTestContext() 663 IMG_NAPI_CHECK_NULL_PTR(g_ctx.decodingOptions, result); in CreatePictureByImageSource() 664 …if (OH_ImageSourceNative_CreatePicture(g_ctx.imageSource, g_ctx.decodingOptions, &g_ctx.picture) !… in CreatePictureByImageSource() 680 IMG_NAPI_NOT_NULL_PTR_RETURN(g_ctx.decodingOptions, result); in CreatePictureDecodingOptions() 681 if (OH_DecodingOptionsForPicture_Create(&g_ctx.decodingOptions) != IMAGE_SUCCESS) { in CreatePictureDecodingOptions() 696 IMG_NAPI_CHECK_NULL_PTR(g_ctx.decodingOptions, result); in GetDesiredAuxiliaryPictures() 699 …if (OH_DecodingOptionsForPicture_GetDesiredAuxiliaryPictures(g_ctx.decodingOptions, &auxTypes, &le… in GetDesiredAuxiliaryPictures() 738 IMG_NAPI_CHECK_NULL_PTR(g_ctx.decodingOptions, result); in SetDesiredAuxiliaryPictures() 740 g_ctx.decodingOptions, auxTypes, static_cast<size_t>(length)); in SetDesiredAuxiliaryPictures() [all …]
|
| /test/xts/acts/graphic/graphicImage/entry/src/ohosTest/ets/test/ |
| D | graphicImagePixelMap.test.ets | 259 let decodingOptions: image.DecodingOptions = { 265 pixelMap = imageSource.createPixelMapSync(decodingOptions) 345 let decodingOptions: image.DecodingOptions = { 351 pixelMap = imageSource.createPixelMapSync(decodingOptions) 493 let decodingOptions: image.DecodingOptions = { 499 pixelMap = imageSource.createPixelMapSync(decodingOptions) 566 let decodingOptions: image.DecodingOptions = { 572 pixelMap = imageSource.createPixelMapSync(decodingOptions) 639 let decodingOptions: image.DecodingOptions = { 645 pixelMap = imageSource.createPixelMapSync(decodingOptions) [all …]
|
| D | pixelMapErrorCode.ets | 469 let decodingOptions: image.DecodingOptions = { 472 let pixelmap = imageSource.createPixelMapSync(decodingOptions);
|
| /test/xts/acts/multimedia/image/image_ets_standard/imageQualityEnhancement/entry/src/ohosTest/ets/test/ |
| D | Ability.test.ets | 38 let decodingOptions: image.DecodingOptions = { 41 await imageSourceApi.createPixelMap(decodingOptions).then(async (pixelMap) => {
|
| /test/xts/acts/multimedia/image/image_js_standard/imagePixelMapFramework/entry/src/ohosTest/js/test/ |
| D | framework.test.js | 285 async function getDensityTest(done, testNum, imageData, decodingOptions) { argument 293 let pixelMap = await imageSource.createPixelMap(decodingOptions); 299 expect(decodingOptions ? (density == 240) : (density == 120)).assertTrue(); 1198 let decodingOptions = { fitDensity: 240 }; variable 1199 …ityTest(done, 'SUB_MULTIMEDIA_IMAGE_PIXELMAPFRAMEWORK_FITDENSITY_0100', imageData, decodingOptions) 1280 let decodingOptions = { fitDensity: 240 }; variable 1281 …ityTest(done, 'SUB_MULTIMEDIA_IMAGE_PIXELMAPFRAMEWORK_FITDENSITY_0300', imageData, decodingOptions) 1297 let decodingOptions = { fitDensity: 240 }; variable 1298 …ityTest(done, 'SUB_MULTIMEDIA_IMAGE_PIXELMAPFRAMEWORK_FITDENSITY_0400', imageData, decodingOptions) 1314 let decodingOptions = { fitDensity: 240 }; variable [all …]
|
| /test/xts/acts/multimedia/image/image_js_standard/imageColorSpaceTransfer/entry/src/ohosTest/ets/test/ |
| D | ImageColorSpaceTransferTest.ets | 55 let decodingOptions: image.DecodingOptions = { desiredColorSpace: csm }; 56 let pixelMap: image.PixelMap = await imageSource.createPixelMap(decodingOptions); 91 let decodingOptions: image.DecodingOptions = { desiredColorSpace: csm }; 92 imageSource.createPixelMap(decodingOptions, async (err, pixelMap) => {
|
| /test/xts/acts/multimedia/image/image_ets_standard/imagePixelMapSupportYuv/entry/src/ohosTest/ets/test/ |
| D | ImagepixelMapSupportYuv.test.ets | 79 let decodingOptions: image.DecodingOptions = { 83 let pixelMap_NV12: image.PixelMap = await imageSourceApi.createPixelMap(decodingOptions); 89 let decodingOptions: image.DecodingOptions = { 93 let pixelMap_NV21: image.PixelMap = await imageSourceApi.createPixelMap(decodingOptions); 110 let decodingOptions: image.DecodingOptions = { 115 let pixelMap: image.PixelMap = await imageSource.createPixelMap(decodingOptions); 119 let decodingOptions: image.DecodingOptions = { 123 let pixelMap: image.PixelMap = await imageSource.createPixelMap(decodingOptions); 1046 let decodingOptions: image.DecodingOptions = { 1049 let pixelMap_NV12: image.PixelMap = await imageSourceApi.createPixelMap(decodingOptions);
|
| /test/xts/acts/multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/ohosTest/ets/test/ |
| D | PixelMapNDKForDMATest.ets | 98 let decodingOptions: image.DecodingOptions = { 103 pixelMap = await imageSource.createPixelMap(decodingOptions); 105 let decodingOptions: image.DecodingOptions = { 109 pixelMap = await imageSource.createPixelMap(decodingOptions);
|
| /test/xts/acts/multimedia/image/image_ets_standard/imageNdk/entry/src/ohosTest/ets/test/ |
| D | ImageNdk.test.ets | 4921 * @tc.desc : 1.decodingOptions dynamicrange 5086 …fo(0x0000, 'Native_SetCropRegionTest', '%{public}s', TAG + `create image decodingOptions success`); 6225 * @tc.desc : 1.decodingOptions get dynamicRange 6244 * @tc.desc : 1.decodingOptions get dynamicRange
|
| /test/xts/acts/multimedia/image/image_ets_standard/imageFormatTranscoding/entry/src/ohosTest/ets/test/ |
| D | imageformattranscoding.test.ets | 75 let decodingOptions: image.DecodingOptions = { 81 let pixelMap = await imageSourceApi.createPixelMap(decodingOptions);
|