/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/ |
H A D | napi_common.cpp | 96 if (argValue == nullptr) { in GetDecorationFromJS() 301 SetTextStyleBaseType(env, argValue, textStyle); in ParsePartTextStyle() 302 ReceiveFontFeature(env, argValue, textStyle); in ParsePartTextStyle() 303 ReceiveFontVariation(env, argValue, textStyle); in ParsePartTextStyle() 324 …if (argValue == nullptr || napi_typeof(env, argValue, &valueType) != napi_ok || valueType != napi_… in GetTextStyleFromJS() 328 ParsePartTextStyle(env, argValue, textStyle); in GetTextStyleFromJS() 336 if (argValue == nullptr) { in GetParagraphStyleFromJS() 391 if (argValue == nullptr) { in GetPlaceholderSpanFromJS() 449 if (argValue == nullptr) { in GetFontMetricsFromJS() 478 if (argValue == nullptr) { in GetRunMetricsFromJS() [all …]
|
H A D | napi_common.h | 314 if (napi_get_named_property(env, argValue, "x", &objValue) != napi_ok || in GetPointXFromJsNumber() 327 if (napi_get_named_property(env, argValue, "y", &objValue) != napi_ok || in GetPointYFromJsNumber() 338 GetPointXFromJsNumber(env, argValue, point); in GetPointFromJsValue() 339 GetPointYFromJsNumber(env, argValue, point); in GetPointFromJsValue() 356 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetDoubleValueFromJS() 366 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetBoolValueFromJS() 463 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetFontMetricsFloatValueFromJS() 476 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetLineMetricsDoubleValueFromJS() 486 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetLineMetricsSizeTValueFromJS() 502 bool GetTextStyleFromJS(napi_env env, napi_value argValue, TextStyle& textStyle); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/effect_kit/src/ |
H A D | color_picker_napi.cpp | 533 napi_value argValue[NUM_1] = {0}; in GetMainColor() local 617 napi_value argValue[NUM_1] = {0}; in GetMainColorSync() local 654 napi_value argValue[NUM_1] = {0}; in GetLargestProportionColor() local 690 napi_value argValue[NUM_1] = {0}; in GetHighestSaturationColor() local 726 napi_value argValue[NUM_1] = {0}; in GetAverageColor() local 762 napi_value argValue[NUM_1] = {0}; in IsBlackOrWhiteOrGrayColor() local 802 napi_value argValue[NUM_1] = {0}; in GetMorandiBackgroundColor() local 837 napi_value argValue[NUM_1] = {0}; in GetMorandiShadowColor() local 872 napi_value argValue[NUM_1] = {0}; in GetDeepenImmersionColor() local 907 napi_value argValue[NUM_1] = {0}; in GetImmersiveBackgroundColor() local [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/sendable/ |
H A D | sendable_pixel_map_napi.cpp | 657 napi_value argValue[NUM_3] = {0}; in CreatePremultipliedSendablePixelMap() local 2154 napi_value argValue[1] = {0}; in Release() local 2249 nVal.argv = argValue; in SetAlpha() 2365 nVal.argv = argValue; in Scale() 2480 nVal.argv = argValue; in Translate() 2597 nVal.argv = argValue; in Rotate() 2704 nVal.argv = argValue; in Flip() 2826 nVal.argv = argValue; in Crop() 2959 nVal.argv = argValue; in SetColorSpace() 2994 nVal.argv = argValue; in Marshalling() [all …]
|
H A D | sendable_image_source_napi.cpp | 283 if (!hasNamedProperty(env, argValue, "fd") || in isRawFileDescriptor() 284 !hasNamedProperty(env, argValue, "offset") || in isRawFileDescriptor() 285 !hasNamedProperty(env, argValue, "length")) { in isRawFileDescriptor() 573 auto inputType = ImageNapiUtils::getType(env, argValue); in CreateNativeImageSource() 583 napi_get_value_int32(env, argValue, &context->fdIndex); in CreateNativeImageSource() 586 } else if (isRawFileDescriptor(env, argValue, context)) { in CreateNativeImageSource() 618 napi_value argValue[NUM_2] = {0}; in CreatePixelMap() local 620 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreatePixelMap() 674 napi_value argValue[NUM_2] = {0}; in CreateImageSource() local 683 parseSourceOptions(env, argValue[NUM_1], &opts); in CreateImageSource() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_source_napi.cpp | 1299 napi_value argValue[NUM_2] = {0}; in CreateImageSource() local 1383 napi_value argValue[NUM_2] = {0}; in CreateIncrementalSource() local 1427 napi_value argValue[NUM_2] = {0}; in GetImageInfo() local 1483 napi_value argValue[NUM_1] = {0}; in GetImageInfoSync() local 1610 napi_value argValue[NUM_2] = {0}; in CreatePixelMap() local 1665 napi_value argValue[NUM_1] = {0}; in CreatePixelMapSync() local 1881 napi_value argValue[NUM_3] = {0}; in UnwrapContext() local 2035 napi_value argValue[NUM_4] = {0}; in UnwrapContextForModify() local 2218 napi_value argValue[NUM_5] = {0}; in UpdateData() local 2310 napi_value argValue[NUM_1] = {0}; in Release() local [all …]
|
H A D | pixel_map_napi.cpp | 2640 nVal.argv = argValue; in SetAlpha() 2773 nVal.argv = argValue; in Scale() 2886 nVal.argv = argValue; in SetMemoryNameSync() 2953 nVal.argv = argValue; in Translate() 3069 nVal.argv = argValue; in Rotate() 3175 nVal.argv = argValue; in Flip() 3295 nVal.argv = argValue; in Crop() 3460 nVal.argv = argValue; in ToSdr() 3526 nVal.argv = argValue; in SetColorSpace() 3561 nVal.argv = argValue; in Marshalling() [all …]
|
H A D | picture_napi.cpp | 415 napi_value argValue[NUM_1] = {0}; in GetAuxiliaryPicture() local 420 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in GetAuxiliaryPicture() 467 napi_value argValue[NUM_2] = {0}; in SetAuxiliaryPicture() local 472 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in SetAuxiliaryPicture() 539 napi_value argValue[NUM_1] = {0}; in CreatePicture() local 542 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreatePicture() 589 napi_value argValue[NUM_1] = {0}; in CreatePictureFromParcel() local 671 napi_value argValue[NUM_1] = {0}; in Marshalling() local 672 nVal.argv = argValue; in Marshalling() 812 napi_value argValue[NUM_1] = {0}; in GetMetadata() local [all …]
|
H A D | auxiliary_picture_napi.cpp | 247 static bool ParseBuffer(napi_env env, napi_value argValue, in ParseBuffer() argument 289 napi_value argValue[NUM_3] = {0}; in CreateAuxiliaryPicture() local 293 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in CreateAuxiliaryPicture() 300 if (!ParseBuffer(env, argValue[NUM_0], asyncContext)) { in CreateAuxiliaryPicture() 436 napi_value argValue[NUM_1] = {0}; in GetMetadata() local 440 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in GetMetadata() 500 napi_value argValue[NUM_2] = {0}; in SetMetadata() local 503 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in SetMetadata() 695 napi_value argValue[NUM_2] = {0}; in SetAuxiliaryPictureInfo() local 799 napi_value argValue[NUM_1] = {0}; in WritePixelsFromBuffer() local [all …]
|
H A D | metadata_napi.cpp | 443 napi_value argValue[NUM_1] = {0}; in UnwrapContext() local 445 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in UnwrapContext() 465 if (ImageNapiUtils::getType(env, argValue[NUM_0]) == napi_object) { in UnwrapContext() 466 context->keyStrArray = GetStrArrayArgument(env, argValue[NUM_0]); in UnwrapContext() 478 napi_value argValue[NUM_1] = {0}; in UnwrapContextForModify() local 480 IMG_JS_ARGS(env, info, status, argCount, argValue, thisVar); in UnwrapContextForModify() 494 if (ImageNapiUtils::getType(env, argValue[NUM_0]) == napi_object) { in UnwrapContextForModify() 495 context->KVSArray = GetArrayArgument(env, argValue[NUM_0]); in UnwrapContextForModify()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/src/ |
H A D | filter_napi.cpp | 276 napi_value argValue[NUM_3] = {0}; in SetPixelStretch() local 293 tileMode = ParserArgumentType(env, argValue[NUM_1]); in SetPixelStretch() 339 napi_value argValue[NUM_5] = {0}; in SetWaterRipple() local 360 progress = GetSpecialValue(env, argValue[NUM_0]); in SetWaterRipple() 361 waveCount = GetSpecialIntValue(env, argValue[NUM_1]); in SetWaterRipple() 362 rippleCenterX = GetSpecialValue(env, argValue[NUM_2]); in SetWaterRipple() 363 rippleCenterY = GetSpecialValue(env, argValue[NUM_3]); in SetWaterRipple() 364 rippleMode = GetSpecialIntValue(env, argValue[NUM_4]); in SetWaterRipple() 395 napi_value argValue[NUM_2] = {0}; in SetFlyOut() local 410 float degree = GetSpecialValue(env, argValue[NUM_0]); in SetFlyOut() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/interfaces/kits/native/ndk_test_example/ |
H A D | my_pixel_map.cpp | 106 napi_value argValue[TEST_ARG_SUM] = {0}; in TestGetImageInfo() local 109 status = napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); in TestGetImageInfo() 116 int32_t res = OH_GetImageInfo(env, argValue[0], &pixelMapInfo); in TestGetImageInfo() 134 napi_value argValue[TEST_ARG_SUM] = {0}; in TestAccessPixels() local 137 status = napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); in TestAccessPixels() 144 int32_t res = OH_AccessPixels(env, argValue[0], &addrPtr); in TestAccessPixels() 160 napi_value argValue[TEST_ARG_SUM] = {0}; in TestUnAccessPixels() local 163 status = napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); in TestUnAccessPixels() 169 int32_t res = OH_UnAccessPixels(env, argValue[0]); in TestUnAccessPixels()
|
/ohos5.0/docs/zh-cn/application-dev/media/image/ |
H A D | image-transformation-native.md | 56 napi_value argValue[1] = {0}; 59 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 62 OHOS::Media::OH_GetImageInfo(env, argValue[0], &pixelMapInfo); 76 napi_value argValue[1] = {0}; 79 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 82 OHOS::Media::OH_AccessPixels(env, argValue[0], &addrPtr); 96 napi_value argValue[1] = {0}; 99 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 101 OHOS::Media::OH_UnAccessPixels(env, argValue[0]);
|
H A D | image-pixelmap-operation-native.md | 86 napi_value argValue[1] = {0}; 93 …if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || argCount < 1… 94 argValue[0] == nullptr) { 97 int32_t res = OH_PixelMap_CreateAlphaPixelMap(env, argValue[0], &alphaPixelMap); 110 napi_value argValue[1] = {0}; 113 …if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || argCount < 1… 114 argValue[0] == nullptr) { 121 NativePixelMap *native = OH_PixelMap_InitNativePixelMap(env, argValue[0]);
|
H A D | image-source-c.md | 43 napi_value argValue[NUM_1] = {0}; 45 …if (napi_get_cb_info(env, info, &argCount, argValue, nullptr, nullptr) != napi_ok || argCount < NU… 46 argValue[NUM_0] == nullptr) { 52 napi_get_value_string_utf8(env, argValue[NUM_0], name, 1024, &nameSize);
|
/ohos5.0/docs/en/application-dev/media/image/ |
H A D | image-transformation-native.md | 56 napi_value argValue[1] = {0}; 59 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 62 OHOS::Media::OH_GetImageInfo(env, argValue[0], &pixelMapInfo); 76 napi_value argValue[1] = {0}; 79 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 82 OHOS::Media::OH_AccessPixels(env, argValue[0], &addrPtr); 96 napi_value argValue[1] = {0}; 99 napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr); 101 OHOS::Media::OH_UnAccessPixels(env, argValue[0]);
|
H A D | image-pixelmap-operation-native.md | 86 napi_value argValue[1] = {0}; 93 …if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || argCount < 1… 94 argValue[0] == nullptr) { 97 int32_t res = OH_PixelMap_CreateAlphaPixelMap(env, argValue[0], &alphaPixelMap); 110 napi_value argValue[1] = {0}; 113 …if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || argCount < 1… 114 argValue[0] == nullptr) { 121 NativePixelMap *native = OH_PixelMap_InitNativePixelMap(env, argValue[0]);
|
H A D | image-source-c.md | 43 napi_value argValue[NUM_1] = {0}; 45 …if (napi_get_cb_info(env, info, &argCount, argValue, nullptr, nullptr) != napi_ok || argCount < NU… 46 argValue[NUM_0] == nullptr) { 52 napi_get_value_string_utf8(env, argValue[NUM_0], name, 1024, &nameSize);
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/ |
H A D | changelogs-image.md | 155 napi_value argValue[NUM_1] = {0}; 158 if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || 159 argCount < NUM_1 || argValue[NUM_0] == nullptr) { 162 return OH_PixelMap_InitNativePixelMap(env, argValue[NUM_0]);
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.1/ |
H A D | changelogs-image.md | 177 napi_value argValue[NUM_1] = {0}; 180 if (napi_get_cb_info(env, info, &argCount, argValue, &thisVar, nullptr) != napi_ok || 181 argCount < NUM_1 || argValue[NUM_0] == nullptr) { 184 return OH_PixelMap_InitNativePixelMap(env, argValue[NUM_0]);
|
/ohos5.0/base/theme/wallpaper_mgr/frameworks/js/napi/ |
H A D | napi_wallpaper_ability.h | 182 static bool IsValidArgType(napi_env env, napi_value argValue, napi_valuetype expectationType); 183 static bool IsValidArgRange(napi_env env, napi_value argValue); 184 static bool IsValidFoldStateRange(napi_env env, napi_value argValue); 185 static bool IsValidRotateStateRange(napi_env env, napi_value argValue); 186 static bool IsValidWallpaperInfos(napi_env env, napi_value argValue); 188 napi_env env, size_t argc, napi_value argValue, std::shared_ptr<Call::Context> ctx);
|
H A D | napi_wallpaper_ability.cpp | 1026 napi_typeof(env, argValue, &valueType); in IsValidArgType() 1030 bool NapiWallpaperAbility::IsValidArgRange(napi_env env, napi_value argValue) in IsValidArgRange() argument 1033 napi_get_value_int32(env, argValue, &wallpaperType); in IsValidArgRange() 1037 bool NapiWallpaperAbility::IsValidWallpaperInfos(napi_env env, napi_value argValue) in IsValidWallpaperInfos() argument 1051 bool NapiWallpaperAbility::IsValidFoldStateRange(napi_env env, napi_value argValue) in IsValidFoldStateRange() argument 1054 auto res = napi_get_value_int32(env, argValue, &foldState); in IsValidFoldStateRange() 1062 bool NapiWallpaperAbility::IsValidRotateStateRange(napi_env env, napi_value argValue) in IsValidRotateStateRange() argument 1065 auto res = napi_get_value_int32(env, argValue, &rotateState); in IsValidRotateStateRange() 1074 napi_env env, size_t argc, napi_value argValue, std::shared_ptr<Call::Context> ctx) in CheckValidArgWallpaperType() argument 1081 if (!NapiWallpaperAbility::IsValidArgType(env, argValue, napi_number) in CheckValidArgWallpaperType() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/include/ |
H A D | filter_napi.h | 60 static float GetSpecialValue(napi_env env, napi_value argValue); 61 static uint32_t GetSpecialIntValue(napi_env env, napi_value argValue);
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/ |
H A D | js_drawing_utils.h | 370 inline bool GetDrawingPointXFromJsNumber(napi_env env, napi_value argValue, Drawing::Point& point) in GetDrawingPointXFromJsNumber() argument 374 if (napi_get_named_property(env, argValue, "x", &objValue) != napi_ok || in GetDrawingPointXFromJsNumber() 382 inline bool GetDrawingPointYFromJsNumber(napi_env env, napi_value argValue, Drawing::Point& point) in GetDrawingPointYFromJsNumber() argument 386 if (napi_get_named_property(env, argValue, "y", &objValue) != napi_ok || in GetDrawingPointYFromJsNumber() 394 inline bool GetDrawingPointFromJsValue(napi_env env, napi_value argValue, Drawing::Point& point) in GetDrawingPointFromJsValue() argument 396 return GetDrawingPointXFromJsNumber(env, argValue, point) && in GetDrawingPointFromJsValue() 397 GetDrawingPointYFromJsNumber(env, argValue, point); in GetDrawingPointFromJsValue()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/effect_kit/include/ |
H A D | color_picker_napi.h | 50 napi_env env, napi_status& status, napi_value* argValue, size_t argCount); 51 static bool ProcessCallbackAndCoordinates(napi_env env, napi_value* argValue, size_t argCount,
|