/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | pixel_yuv_ext_utils_test.cpp | 33 static constexpr int32_t NUM_2 = 2; variable 218 info.yWidth = NUM_2; 219 info.yHeight = NUM_2; 220 info.imageSize.width = NUM_2; 223 info.uvStride = (info.yWidth + 1) / NUM_2 * NUM_2; 243 dstSize.width = NUM_2; 244 dstSize.height = NUM_2; 246 info.yWidth = NUM_2; 247 info.yHeight = NUM_2; 251 info.uvStride = (info.yWidth + 1) / NUM_2 * NUM_2; [all …]
|
H A D | jpg_yuv_test.cpp | 48 static const uint8_t NUM_2 = 2; variable 256 ((pixelMap->GetHeight() + 1) / NUM_2) * NUM_2; in YuvRotate() 291 ((pixelMap->GetHeight() + 1) / NUM_2) * NUM_2; in YuvCrop() 323 ((region.height + 1) / NUM_2) * NUM_2); in YuvWriteConvert() 336 ((pixelMap->GetHeight() + 1) / NUM_2) * NUM_2; in YuvWriteConvert() 649 ((srcPixelMap->GetHeight() + 1) / NUM_2) * NUM_2) * NUM_2; in YuvP010Crop() 688 ((srcPixelMap->GetHeight() + 1) / NUM_2) * NUM_2) * NUM_2; in YuvP010Rotate() 1392 … ImageSize imageSize = {ODDTREE_ORIGINAL_WIDTH, ODDTREE_ORIGINAL_HEIGHT, NUM_2, NUM_2, 0, 0}; 1412 ImageSize imageSize = {ODDTREE_ORIGINAL_WIDTH, ODDTREE_ORIGINAL_HEIGHT, NUM_2, NUM_2, 0, 0}; 1700 … ImageSize imageSize = {P101TREE_ORIGINAL_WIDTH, P101TREE_ORIGINAL_HEIGHT, NUM_2, NUM_2, 0, 0}; [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | pixel_yuv_utils.cpp | 40 static const uint8_t NUM_2 = 2; variable 103 return (width + 1) / NUM_2; in GetUStride() 114 return (width + 1) / NUM_2 * NUM_2; in GetUVStride() 119 return width * height + ((width + 1) / NUM_2) * ((height + 1) / NUM_2) * NUM_2; in GetImageSize() 771 … return *(in + y / NUM_2 * NUM_2 + info.uvOffset + (y / NUM_2) * (width - 1) + (x & ~1) + 1); in GetYuv420U() 776 … return *(in + y / NUM_2 * NUM_2 + info.uvOffset + (y / NUM_2) * (width - 1) + (x & ~1)); in GetYuv420U() 792 … return *(in + y / NUM_2 * NUM_2 + info.uvOffset + (y / NUM_2) * (width - 1) + (x & ~1)); in GetYuv420V() 797 … return *(in + y / NUM_2 * NUM_2 + info.uvOffset + (y / NUM_2) * (width - 1) + (x & ~1) + 1); in GetYuv420V() 923 int32_t newX = pos.x / NUM_2 * NUM_2; in Yuv420SPWritePixel() 945 *(srcUV + (pos.y / NUM_2) * yuvDataInfo.uvStride + pos.x / NUM_2) = colorU; in P010WritePixel() [all …]
|
H A D | pixel_yuv_ext_utils.cpp | 38 static const uint8_t NUM_2 = 2; variable 56 return width * height + ((width + 1) / NUM_2) * ((height + 1) / NUM_2); in GetVOffset() 61 return (width + 1) / NUM_2; in GetUStride() 66 return (height + 1) / NUM_2; in GetUVHeight() 72 return (width + 1) / NUM_2 * NUM_2; in GetUVStride() 77 return width * height + ((width + 1) / NUM_2) * ((height + 1) / NUM_2) * NUM_2; in GetImageSize() 267 std::unique_ptr<uint8_t[]> uvData = std::make_unique<uint8_t[]>(NUM_2 * srcUWidth * srcUHeight); in ScaleUVPlane() 288 …std::unique_ptr<uint8_t[]> tempUVData = std::make_unique<uint8_t[]>(NUM_2 * dstUWidth * dstUHeight… in ScaleUVPlane() 311 int32_t dstUVStride = static_cast<int32_t>(dstUWidth * NUM_2); in ScaleUVPlane()
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/capturesession_fuzzer/ |
H A D | capture_session_fuzzer.cpp | 37 const int32_t NUM_2 = 2; variable 76 data.ReadInt32() % (SceneMode::APERTURE_VIDEO + NUM_2)); in Test() 181 data.ReadInt32() % (FocusMode::FOCUS_MODE_LOCKED + NUM_2)); in TestFocus() 263 data.ReadInt32() % (VideoStabilizationMode::AUTO + NUM_2)); in TestStabilization() 286 data.ReadInt32() % (FlashMode::FLASH_MODE_ALWAYS_OPEN + NUM_2)); in TestFlash() 373 data.ReadInt32() % (BeautyType::SKIN_TONE + NUM_2)); in TestBeauty() 384 data.ReadInt32() % (FilterType::PINK + NUM_2)); in TestBeauty() 389 data.ReadInt32() % (ColorEffect::COLOR_EFFECT_BLACK_WHITE + NUM_2)); in TestBeauty() 392 data.ReadInt32() % (BeautyType::SKIN_TONE + NUM_2)); in TestBeauty() 407 data.ReadInt32() % (SceneFeature::FEATURE_ENUM_MAX + NUM_2)); in TestOther() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | image_format_convert_ext_utils.cpp | 31 constexpr uint32_t NUM_2 = 2; variable 135 int uvStride = (rgbInfo.width + NUM_1) / NUM_2 * NUM_2; in RGBToYuvParam() 241 i420Info.uStride = (width + NUM_1) / NUM_2; in I420Param() 242 i420Info.vStride = (width + NUM_1) / NUM_2; in I420Param() 243 i420Info.uvHeight = (height + NUM_1) / NUM_2; in I420Param() 246 i420Info.uStride * i420Info.uvHeight * NUM_2); in I420Param() 357 i010Info.uStride * i010Info.uvHeight * NUM_2); in I010Param() 399 i420Info.uStride = (rgbInfo.width + NUM_1) / NUM_2; in RGBToI420ToYuvP010Param() 403 i420Info.uStride * i420Info.uvHeight * NUM_2); in RGBToI420ToYuvP010Param() 523 i420Info.uStride * i420Info.uvHeight * NUM_2); in RGB10ToRGBToI420Param() [all …]
|
H A D | image_format_convert.cpp | 41 constexpr uint8_t NUM_2 = 2; variable 387 return size.width * size.height * NUM_2; in GetBufferSizeByFormat() 399 return (((size.width + NUM_1) / NUM_2) * NUM_2) * size.height * NUM_8; in GetBufferSizeByFormat() 403 return size.width * size.height + ((size.width + NUM_1) / NUM_2) * in GetBufferSizeByFormat() 404 ((size.height + NUM_1) / NUM_2) * NUM_2; in GetBufferSizeByFormat() 408 return (size.width * size.height + ((size.width + NUM_1) / NUM_2) * in GetBufferSizeByFormat() 409 ((size.height + NUM_1) / NUM_2) * NUM_2) * NUM_2; in GetBufferSizeByFormat() 499 strides = {width, (width + 1) / NUM_2 * NUM_2, 0, width * height}; in CreateMemory() 526 } else if (planes->planeCount >= NUM_2) { in CreateMemory() 663 yDInfo.uvWidth = static_cast<uint32_t>((imageInfo.size.width + 1) / NUM_2); in YUVConvertImageFormatOption() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | flex_modifier.cpp | 29 constexpr int NUM_2 = 2; variable 46 case NUM_2: //WrapAlignment::END in ParseFlexToWrap() 77 int justifyContent = options[NUM_2]; in SetFlexOptions() 98 … direction <= 1 ? direction += NUM_2 * (wrap - NUM_1) : direction -= NUM_2 * (wrap - NUM_1); in SetFlexOptions() 102 …WrapDirection wrapDirection = wrap == NUM_2 ? WrapDirection::HORIZONTAL_REVERSE : WrapDirection::H… in SetFlexOptions()
|
H A D | extension_companion_node.cpp | 26 constexpr int NUM_2 = 2; variable 118 event.data[NUM_2] = layoutConstraint.maxWidth; in OnMeasure() 137 event.data[NUM_2] = width; in OnLayout() 156 event.data[NUM_2] = context.width; in OnDraw() 176 event.data[NUM_2] = context.width; in OnForegroundDraw() 196 event.data[NUM_2] = context.width; in OnOverlayDraw()
|
H A D | node_container_span_modifier.cpp | 28 constexpr int NUM_2 = 2; variable 44 …orderRadius.radiusBottomLeft = Dimension(values[NUM_2], static_cast<OHOS::Ace::DimensionUnit>(unit… in SetContainerSpanTextBackgroundStyle()
|
H A D | node_image_span_modifier.cpp | 29 constexpr int NUM_2 = 2; variable 95 …orderRadius.radiusBottomLeft = Dimension(values[NUM_2], static_cast<OHOS::Ace::DimensionUnit>(unit… in SetImageSpanTextBackgroundStyle() 201 …orderRadius.radiusBottomLeft = Dimension(values[NUM_2], static_cast<OHOS::Ace::DimensionUnit>(unit… in SetImageSpanBorderRadius()
|
H A D | hyperlink_modifier.cpp | 27 constexpr int NUM_2 = 2; variable 78 … CalcDimension(values[i * NUM_4 + NUM_2], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_2])); in SetHyperlinkResponseRegion()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/ |
H A D | pixel_convert_adapter.cpp | 45 static const uint8_t NUM_2 = 2; variable 93 dst[NUM_1] = src[NUM_2]; in ARGBToRGBA() 94 dst[NUM_2] = src[NUM_3]; in ARGBToRGBA() 113 dst[NUM_2] = src[NUM_1]; in RGBAToARGB() 114 dst[NUM_3] = src[NUM_2]; in RGBAToARGB() 132 dst[NUM_2] = src[NUM_2]; in RGBxToRGB() 150 dst[NUM_2] = src[NUM_2]; in RGBToRGBx()
|
/ohos5.0/drivers/hdf_core/framework/model/input/driver/touchscreen/ |
H A D | touch_ft5x06.c | 50 if (rdbuf[EDT_NAME_LEN - NUM_2] == '$') { in Ft5x06_EP00() 51 rdbuf[EDT_NAME_LEN - NUM_2] = '\0'; in Ft5x06_EP00() 71 rdbuf[EDT_NAME_LEN - NUM_2] = '\0'; in Ft5x06_EP01() 106 error = InputI2cRead(i2cClient, "\xA6", NUM_1, rdbuf, NUM_2); in Ft5x06_Identify() 110 strlcpy(touch_fw_version, rdbuf, NUM_2); in Ft5x06_Identify() 243 y = get_unaligned_be16(rdbuf + NUM_2) & 0x0fff; in ParsePointData() 250 frame->fingers[i].trackId = (rdbuf[NUM_2] >> NUM_4) & 0x0f; in ParsePointData() 295 pointNum = buf[NUM_2] & GT_FINGER_NUM_MASK; in ChipDataHandle()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | native_image.cpp | 32 constexpr uint32_t NUM_2 = 2; variable 85 if (i % NUM_2 == NUM_1) { in YUV422SPDataCopy() 125 uint64_t uvStride = static_cast<uint64_t>((width + NUM_1) / NUM_2); in SplitYUV422SPComponent() 132 if (surfaceSize < (yuv.ySize + yuv.uvSize * NUM_2)) { in SplitYUV422SPComponent() 134 " + uv plane %{public}" PRIu64, surfaceSize, yuv.ySize, yuv.uvSize * NUM_2); in SplitYUV422SPComponent() 139 …NativeComponent* u = CreateComponent(int32_t(ComponentType::YUV_U), yuv.uvSize, uvStride, NUM_2, n… in SplitYUV422SPComponent() 140 …NativeComponent* v = CreateComponent(int32_t(ComponentType::YUV_V), yuv.uvSize, uvStride, NUM_2, n… in SplitYUV422SPComponent()
|
H A D | pixel_yuv.cpp | 45 static const uint8_t NUM_2 = 2; variable 61 constexpr int32_t MAX_DIMENSION = INT32_MAX >> NUM_2; 183 return (width + 1) / NUM_2; in GetUStride() 188 return (height + 1) / NUM_2; in GetUVHeight() 271 int32_t dst_uvStride = (dstWidth + 1) / NUM_2 * NUM_2; in CreateMemory() 294 } else if (planes->planeCount >= NUM_2) { in CreateMemory() 566 yuvDataInfo.uvWidth = yuvDataInfo.uvWidth * NUM_2; in GetYUVInfoForCopyPixels() 570 yuvDataInfo.yOffset = yuvDataInfo.yOffset * NUM_2; in GetYUVInfoForCopyPixels() 879 rowDataSize_ = info.size.width * NUM_3 / NUM_2; in SetRowDataSizeForImageInfo() 881 rowDataSize_ *= NUM_2; in SetRowDataSizeForImageInfo() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/cameradevice_fuzzer/ |
H A D | camera_device_fuzzer.cpp | 33 const int32_t NUM_2 = 2; variable 58 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTest() 110 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTestUpdateSetting() 213 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTest2() 259 if (rawData == nullptr || size < NUM_2) { in Test3() 265 CHECK_AND_RETURN_LOG(cameras.size() >= NUM_2, "PhotoOutputFuzzer: GetSupportedCameras Error"); in Test3() 295 CHECK_ERROR_RETURN(rawData == nullptr || size < NUM_2); in TestXCollie()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/ |
H A D | overlength_dot_indicator_paint_method.cpp | 34 constexpr int32_t NUM_2 = 2; variable 192 if (currentIndex_ < realItemCount_ - NUM_2) { in CalculatePointCenterX() 279 } else if (currentIndex_ >= NUM_2 && currentIndex_ < realItemCount_ - NUM_2) { in AnalysisIndexRange() 280 nposStation = NUM_2; in AnalysisIndexRange() 281 } else if (currentIndex_ >= realItemCount_ - NUM_2) { in AnalysisIndexRange()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/listener/ |
H A D | kv_data_change_listener.cpp | 142 if (ProfileUtils::EndsWith(res[NUM_2], OH_PROFILE_SUFFIX)) { in FilterEntries() 143 res[NUM_2] = ProfileUtils::CheckAndRemoveOhSuffix(res[NUM_2]); in FilterEntries() 147 if (ProfileUtils::IsNeedAddOhSuffix(res[NUM_2], res.front() == SVR_PREFIX)) { in FilterEntries() 148 res[NUM_2] = ProfileUtils::CheckAndAddOhSuffix(res[NUM_2], res.front() == SVR_PREFIX); in FilterEntries()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/sendable/ |
H A D | sendable_pixel_map_napi.cpp | 39 constexpr uint32_t NUM_2 = 2; variable 819 size_t argCount = NUM_2; in ConvertFromPixelMap() 856 size_t argCount = NUM_2; in ConvertToPixelMap() 894 size_t argCount = NUM_2; in CreateSendablePixelMapSync() 909 if (argCount == NUM_2) { in CreateSendablePixelMapSync() 1287 size_t argCount = NUM_2; in ReadPixelsToBuffer() 1392 size_t argCount = NUM_2; in ReadPixels() 2247 nVal.argc = NUM_2; in SetAlpha() 2595 nVal.argc = NUM_2; in Rotate() 2824 nVal.argc = NUM_2; in Crop() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_symbol_glyph_bridge.cpp | 36 constexpr int NUM_2 = 2; variable 141 secondArg->Int32Value(vm) <= NUM_2) { in SetRenderingStrategy() 167 secondArg->Int32Value(vm) <= NUM_2) { in SetEffectStrategy() 197 if (info.Length() > NUM_2 && !info[NUM_2]->IsUndefined()) { in SetSymbolEffect() 198 Framework::JSSymbol::parseSymbolSwitch(info[NUM_2], symbolEffectOptions); in SetSymbolEffect()
|
H A D | arkts_native_side_bar_container_bridge.cpp | 24 constexpr int NUM_2 = 2; variable 101 Local<JSValueRef> topArg = runtimeCallInfo->GetCallArgRef(NUM_2); in SetControlButton() 120 values[NUM_2] = widthArg->ToNumber(vm)->Value(); in SetControlButton() 123 values[NUM_2] = DEFAULT_CONTROL_BUTTON_WIDTH_V10.Value(); in SetControlButton() 125 values[NUM_2] = DEFAULT_CONTROL_BUTTON_WIDTH.Value(); in SetControlButton() 337 Local<JSValueRef> colorArg = runtimeCallInfo->GetCallArgRef(NUM_2); in SetDivider() 364 values[NUM_2] = endMargin.Value(); in SetDivider() 365 units[NUM_2] = static_cast<int32_t>(endMargin.Unit()); in SetDivider()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | pixel_map_napi.cpp | 50 constexpr uint32_t NUM_2 = 2; variable 1177 size_t argCount = NUM_2; in CreatePixelMapSync() 1192 if (argCount == NUM_2) { in CreatePixelMapSync() 1380 size_t argCount = NUM_2; in CreatePixelMapFromSurfaceSync() 2638 nVal.argc = NUM_2; in SetAlpha() 3067 nVal.argc = NUM_2; in Rotate() 3293 nVal.argc = NUM_2; in Crop() 3634 nVal.argc = NUM_2; in ApplyColorSpace() 3874 size_t argc = NUM_2; in ConvertPixelMapFormat() 4496 nVal.argc = NUM_2; in SetMetadataSync() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/test/fuzztest/photooutput_fuzzer/ |
H A D | photo_output_fuzzer.cpp | 33 const int32_t NUM_2 = 2; variable 66 CHECK_AND_RETURN_LOG(cameras.size() >= NUM_2, "PhotoOutputFuzzer: GetSupportedCameras Error"); in Test() 71 int32_t mode = data.ReadInt32() % (SceneMode::APERTURE_VIDEO + NUM_2); in Test()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/src/ |
H A D | filter_napi.cpp | 21 constexpr uint32_t NUM_2 = 2; variable 34 { NUM_2, Drawing::TileMode::MIRROR }, 292 if (argCount >= NUM_2) { in SetPixelStretch() 362 rippleCenterX = GetSpecialValue(env, argValue[NUM_2]); in SetWaterRipple() 395 napi_value argValue[NUM_2] = {0}; in SetFlyOut() 396 size_t argCount = NUM_2; in SetFlyOut() 406 if (argCount != NUM_2) { in SetFlyOut()
|