/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | hyperlink_modifier.cpp | 27 constexpr int NUM_4 = 4; member 70 for (int32_t i = 0; i < length / NUM_4; i++) { in SetHyperlinkResponseRegion() 72 CalcDimension(values[i * NUM_4 + NUM_0], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_0])); in SetHyperlinkResponseRegion() 74 CalcDimension(values[i * NUM_4 + NUM_1], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_1])); in SetHyperlinkResponseRegion() 76 CalcDimension(values[i * NUM_4 + NUM_2], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_2])); in SetHyperlinkResponseRegion() 78 CalcDimension(values[i * NUM_4 + NUM_3], static_cast<DimensionUnit>(units[i * NUM_4 in SetHyperlinkResponseRegion() [all...] |
H A D | flex_modifier.cpp | 24 constexpr int NUM_4 = 4; member 45 case NUM_4: //WrapAlignment::SPACE_BETWEEN in ParseFlexToWrap() 72 int alignContent = options[NUM_4]; in SetFlexOptions()
|
H A D | node_stack_modifier.cpp | 26 constexpr int NUM_4 = 4; member 50 case NUM_4: in SetAlignContent()
|
H A D | extension_companion_node.cpp | 26 constexpr int NUM_4 = 4; member 118 event.data[NUM_4] = layoutConstraint.parentIdealWidth; in OnMeasure()
|
H A D | node_text_modifier.cpp | 67 constexpr int NUM_4 = 4; member 150 for (int32_t i = 0; i < length / NUM_4; i++) { in SetResponseRegion() 152 CalcDimension(values[i * NUM_4 + NUM_0], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_0])); in SetResponseRegion() 154 CalcDimension(values[i * NUM_4 + NUM_1], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_1])); in SetResponseRegion() 156 CalcDimension(values[i * NUM_4 + NUM_2], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_2])); in SetResponseRegion() 158 CalcDimension(values[i * NUM_4 + NUM_3], static_cast<DimensionUnit>(units[i * NUM_4 in SetResponseRegion() [all...] |
H A D | node_common_modifier.cpp | 56 constexpr int NUM_4 = 4; member 160 case NUM_4: in ParseAlignment() 196 return NUM_4; in ConvertAlignmentToInt() 210 return NUM_4; in ConvertAlignmentToInt() 228 return NUM_4; in ParseAlignmentToIndex() 351 if ((values == nullptr) || (valuesLength != NUM_4)) { in SetLinearGradientValues() 399 auto centerYValue = values[NUM_4].f32; in SetSweepGradientValues() 448 auto centerYValue = values[NUM_4].f32; in SetRadialGradientValues() 633 if ((values == nullptr) || (valuesLength != NUM_4)) { in SetBorderImageGradientValues() 813 frameNode, Matrix4(matrix[NUM_0], matrix[NUM_4], matri in SetTransform() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/ |
H A D | pixel_convert_adapter.cpp | 47 static const uint8_t NUM_4 = 4; member 84 if (byteCount % NUM_4 != NUM_0) { in ARGBToRGBA() 90 for (uint32_t i = NUM_0 ; i < byteCount; i += NUM_4) { in ARGBToRGBA() 96 src += NUM_4; in ARGBToRGBA() 97 dst += NUM_4; in ARGBToRGBA() 103 if (byteCount % NUM_4 != NUM_0) { in RGBAToARGB() 109 for (uint32_t i = NUM_0 ; i < byteCount; i += NUM_4) { in RGBAToARGB() 115 src += NUM_4; in RGBAToARGB() 116 dst += NUM_4; in RGBAToARGB() 122 if (byteCount % NUM_4 ! in RGBxToRGB() [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_pixel_convert.cpp | 21 constexpr uint32_t NUM_4 = 4;
member 65 if (src.byteCount % NUM_4 != NUM_0) {
in RGBxToRGB() 68 size_t srcPixelCount = src.byteCount / NUM_4;
in RGBxToRGB() 86 if (srcPixelCount * NUM_4 > dst.byteCount) {
in RGBToRGBx()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_stack_bridge.cpp | 18 constexpr int NUM_4 = 4; member 27 int32_t align = NUM_4; in SetAlignContent()
|
H A D | arkts_native_date_picker_bridge.cpp | 27 constexpr int NUM_4 = 4; member 40 Local<JSValueRef> fontFamilyArgs = runtimeCallInfo->GetCallArgRef(NUM_4); in SetSelectedTextStyle() 99 Local<JSValueRef> fontFamilyArgs = runtimeCallInfo->GetCallArgRef(NUM_4); in SetTextStyle() 157 Local<JSValueRef> fontFamilyArgs = runtimeCallInfo->GetCallArgRef(NUM_4); in SetDisappearTextStyle()
|
H A D | arkts_native_side_bar_container_bridge.cpp | 26 constexpr int NUM_4 = 4; member 103 Local<JSValueRef> heightArg = runtimeCallInfo->GetCallArgRef(NUM_4); in SetControlButton() 107 ArkUI_Float32 values[NUM_4]; in SetControlButton() 152 GetArkUINodeModifiers()->getSideBarContainerModifier()->setControlButton(nativeNode, values, NUM_4, &iconsStruct); in SetControlButton() 339 Local<JSValueRef> endMarginArg = runtimeCallInfo->GetCallArgRef(NUM_4); in SetDivider()
|
H A D | arkts_native_shape_bridge.cpp | 23 constexpr int NUM_4 = 4; member 34 Local<JSValueRef> heightArg = runtimeCallInfo->GetCallArgRef(NUM_4); in SetViewPort()
|
H A D | arkts_native_timepicker_bridge.cpp | 26 constexpr int NUM_4 = 4;
member 61 Local<JSValueRef> fontFamilyArg = runtimeCallInfo->GetCallArgRef(NUM_4);
in SetTextStyle() 110 Local<JSValueRef> fontFamilyArg = runtimeCallInfo->GetCallArgRef(NUM_4);
in SetSelectedTextStyle() 159 Local<JSValueRef> fontFamilyArg = runtimeCallInfo->GetCallArgRef(NUM_4);
in SetDisappearTextStyle()
|
H A D | arkts_native_common_bridge.cpp | 45 constexpr int NUM_4 = 4; member 322 if (ParseCalcDimensions(runtimeCallInfo, offset, NUM_4, optDimensions, CalcDimension(0.0))) { in ParseBorderImageSlice() 325 offset += NUM_4; in ParseBorderImageSlice() 331 if (ParseCalcDimensions(runtimeCallInfo, offset, NUM_4, optDimensions, CalcDimension(0.0))) { in ParseBorderImageWidth() 334 offset += NUM_4; in ParseBorderImageWidth() 340 if (ParseCalcDimensions(runtimeCallInfo, offset, NUM_4, optDimensions, CalcDimension(0.0))) { in ParseBorderImageOutset() 343 offset += NUM_4; in ParseBorderImageOutset() 414 if ((offset + NUM_4) > argsNumber) { in ParseBorderImageLinearGradient() 463 offset += NUM_4; // skip 4 args in ParseBorderImageSource() 899 Local<JSValueRef> bottomArgs = runtimeCallInfo->GetCallArgRef(NUM_4); in ParseOuterBorderWidth() [all...] |
H A D | arkts_native_image_animator_bridge.cpp | 31 constexpr int NUM_4 = 4; member 193 Local<JSValueRef> fifthArg = runtimeCallInfo->GetCallArgRef(NUM_4); in SetImages()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | alignment.cpp | 24 constexpr int NUM_4 = 4; member 138 case NUM_4: in ParseAlignment()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | image_utils.cpp | 91 static const uint8_t NUM_4 = 4; member 352 return ((static_cast<uint32_t>(width) * NUM_4) & INT_255) == 0; in IsWidthAligned() 410 if (byteCount % NUM_4 != NUM_0) { in ReversePixels() 416 for (uint32_t i = NUM_0 ; i < byteCount; i += NUM_4) { in ReversePixels() 422 src += NUM_4; in ReversePixels() 423 dst += NUM_4; in ReversePixels() 652 offset += NUM_4; in BytesToUint32() 670 offset += NUM_4; in BytesToInt32()
|
H A D | pixel_yuv_ext_utils.cpp | 39 static const uint8_t NUM_4 = 4; member 87 r = converter.ARGBToNV12(src, srcW * NUM_4, in BGRAToYuv420() 92 r = converter.ARGBToNV21(src, srcW * NUM_4, in BGRAToYuv420() 106 const uint32_t dstStrideARGB = static_cast<uint32_t>(size.width * NUM_4); in Yuv420ToBGRA() 121 std::unique_ptr<uint8_t[]> temp = std::make_unique<uint8_t[]>(size.width * size.height * NUM_4); in Yuv420ToARGB() 127 if (converter.ARGBToBGRA(temp.get(), size.width * NUM_4, dstArgb, in Yuv420ToARGB() 128 size.width * NUM_4, size.width, size.height) != SUCCESS) { in Yuv420ToARGB()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/src/ |
H A D | filter_napi.cpp | 23 constexpr uint32_t NUM_4 = 4; member 235 if (arraySize < NUM_4) { in GetStretchPercent() 240 for (size_t i = 0; i < NUM_4; i++) { in GetStretchPercent() 359 rippleMode = GetSpecialIntValue(env, argValue[NUM_4]); in SetWaterRipple()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | image_utils_test.cpp | 28 static const uint8_t NUM_4 = 4; variable 462 ASSERT_EQ(byteCount % NUM_4, 1); in HWTEST_F() 463 ASSERT_NE(byteCount % NUM_4, NUM_0); in HWTEST_F()
|
H A D | jpg_yuv_test.cpp | 50 static const uint8_t NUM_4 = 4; member 865 const size_t totalSize = ySize * NUM_4; in RGBA1010102Crop() 888 uint32_t size = srcPixelMap->GetWidth() * srcPixelMap->GetHeight() * NUM_4; in RGBA1010102Crop() 905 const size_t totalSize = ySize * NUM_4; in RGBA1010102Rotate() 925 uint32_t size = srcPixelMap->GetWidth() * srcPixelMap->GetHeight() * NUM_4; in RGBA1010102Rotate() 943 const size_t totalSize = ySize * NUM_4; in RGBA1010102Scale() 964 uint32_t size = srcPixelMap->GetWidth() * srcPixelMap->GetHeight() * NUM_4; in RGBA1010102Scale() 981 const size_t totalSize = ySize * NUM_4; in RGBA1010102Resize() 1001 uint32_t size = srcPixelMap->GetWidth() * srcPixelMap->GetHeight() * NUM_4; in RGBA1010102Resize() 1018 const size_t totalSize = ySize * NUM_4; in RGBA1010102Flip() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_yuv_ext.cpp | 47 static const uint8_t NUM_4 = 4; member 359 std::make_unique<uint8_t[]>(width * height * NUM_4); in ApplyColorSpace() 383 std::make_unique<uint8_t[]>(width * height * NUM_4); in ApplyColorSpace()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/ |
H A D | image_module.h | 26 enum class ArgsCount { NUM_1 = 1, NUM_2, NUM_3, NUM_4, NUM_5, NUM_6 }; member in OHOS::ACELite::final::ArgsCount
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | style_modifier.cpp | 42 constexpr int NUM_4 = 4; member 424 case NUM_4: in ShapeToString() 495 return (year % NUM_4 == 0 && year % NUM_100 != 0) || (year % NUM_400 == 0); in IsLeapYear() 935 if (item->size != NUM_1 && item->size != NUM_4) { in SetPadding() 975 ArkUI_Float32 paddings[NUM_4]; in GetPadding() 1042 if (!item || (item->size != NUM_4 && item->size != NUM_1)) { in SetMargin() 1057 } else if (item->size == NUM_4) { in SetMargin() 1091 ArkUI_Float32 margins[NUM_4]; in GetMargin() 1219 g_numberValues[NUM_4].f32 = rotateType.sightDistance; in GetRotate() 1334 ArkUIInt32orFloat32 values[NUM_4] in SetLinearGradient() [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/effect_kit/src/ |
H A D | color_picker_napi.cpp | 31 constexpr uint32_t NUM_4 = 4; member 318 if (arraySize < NUM_4) { in GetRegionCoordinates() 322 for (size_t i = 0; i < NUM_4; i++) { in GetRegionCoordinates() 391 napi_value argValue[NUM_4] = { 0 }; in CreateColorPicker() 392 size_t argCount = NUM_4; in CreateColorPicker()
|