Home
last modified time | relevance | path

Searched refs:NUM_2 (Results 1 - 25 of 100) sorted by relevance

1234

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpixel_yuv_ext_utils_test.cpp33 static constexpr int32_t NUM_2 = 2; member
218 info.yWidth = NUM_2; in HWTEST_F()
219 info.yHeight = NUM_2; in HWTEST_F()
220 info.imageSize.width = NUM_2; in HWTEST_F()
221 info.imageSize.height = NUM_2; in HWTEST_F()
223 info.uvStride = (info.yWidth + 1) / NUM_2 * NUM_2; in HWTEST_F()
243 dstSize.width = NUM_2; in HWTEST_F()
244 dstSize.height = NUM_2; in HWTEST_F()
246 info.yWidth = NUM_2; in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dpixel_yuv_utils.cpp40 static const uint8_t NUM_2 = 2; member
103 return (width + 1) / NUM_2; in GetUStride()
108 return (height + 1) / NUM_2; in GetUVHeight()
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()
138 if (memcpy_s(dstUV + ((dstPos.y) / NUM_2 + i) * GetUVStride(yuvDataInfo.uvStride) + dstPos.x, in WriteDataNV12Convert()
165 if (memcpy_s(dstUV + ((dstPos.y) / NUM_2 in WriteDataNV12P010Convert()
[all...]
H A Dpixel_yuv_ext_utils.cpp38 static const uint8_t NUM_2 = 2; member
57 return width * height + ((width + 1) / NUM_2) * ((height + 1) / NUM_2); in GetVOffset()
62 return (width + 1) / NUM_2; in GetUStride()
67 return (height + 1) / NUM_2; in GetUVHeight()
73 return (width + 1) / NUM_2 * NUM_2; in GetUVStride()
78 return width * height + ((width + 1) / NUM_2) * ((height + 1) / NUM_2) * NUM_2; in GetImageSize()
[all...]
H A Dimage_utils.cpp89 static const uint8_t NUM_2 = 2; member
199 rowDataSize = pixelBytes * (((uWidth + NUM_3) >> NUM_2) << NUM_2); in GetRowDataSizeByPixelFormat()
419 dst[NUM_1] = src[NUM_2]; in ReversePixels()
420 dst[NUM_2] = src[NUM_1]; in ReversePixels()
634 offset += NUM_2; in BytesToUint16()
647 (bytes[offset + NUM_2] << MOVE_BITS_8) | (bytes[offset + NUM_3]); in BytesToUint32()
649 data = (bytes[offset + NUM_3] << MOVE_BITS_24) | (bytes[offset + NUM_2] << MOVE_BITS_16) | in BytesToUint32()
665 (bytes[offset + NUM_2] << MOVE_BITS_8) | (bytes[offset + NUM_3]); in BytesToInt32()
667 data = (bytes[offset + NUM_3] << MOVE_BITS_24) | (bytes[offset + NUM_2] << MOVE_BITS_1 in BytesToInt32()
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dflex_modifier.cpp22 constexpr int NUM_2 = 2; member
39 case NUM_2: //WrapAlignment::END in ParseFlexToWrap()
70 int justifyContent = options[NUM_2]; in SetFlexOptions()
91 direction <= 1 ? direction += NUM_2 * (wrap - NUM_1) : direction -= NUM_2 * (wrap - NUM_1); in SetFlexOptions()
95 WrapDirection wrapDirection = wrap == NUM_2 ? WrapDirection::HORIZONTAL_REVERSE : WrapDirection::HORIZONTAL; in SetFlexOptions()
H A Dextension_companion_node.cpp24 constexpr int NUM_2 = 2; member
116 event.data[NUM_2] = layoutConstraint.maxWidth; in OnMeasure()
135 event.data[NUM_2] = width; in OnLayout()
154 event.data[NUM_2] = context.width; in OnDraw()
174 event.data[NUM_2] = context.width; in OnForegroundDraw()
194 event.data[NUM_2] = context.width; in OnOverlayDraw()
H A Dnode_container_span_modifier.cpp23 constexpr int NUM_2 = 2; member
39 borderRadius.radiusBottomLeft = Dimension(values[NUM_2], static_cast<OHOS::Ace::DimensionUnit>(units[NUM_2])); in SetContainerSpanTextBackgroundStyle()
H A Dhyperlink_modifier.cpp25 constexpr int NUM_2 = 2; member
76 CalcDimension(values[i * NUM_4 + NUM_2], static_cast<DimensionUnit>(units[i * NUM_4 + NUM_2])); in SetHyperlinkResponseRegion()
/foundation/multimedia/camera_framework/test/fuzztest/capturesession_fuzzer/
H A Dcapture_session_fuzzer.cpp37 const int32_t NUM_2 = 2; member
76 data.ReadInt32() % (SceneMode::APERTURE_VIDEO + NUM_2)); in Test()
101 CHECK_AND_RETURN_RET_LOG(cameras.size() >= NUM_2, nullptr, "CaptureSessionFuzzer: GetSupportedCameras Error"); in GetCameraInput()
144 data.ReadInt32() % (ExposureMode::EXPOSURE_MODE_CONTINUOUS_AUTO + NUM_2)); in TestExposure()
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()
351 size_t max = EffectSuggestionType::EFFECT_SUGGESTION_SUNRISE_SUNSET + NUM_2; in TestAperture()
373 data.ReadInt32() % (BeautyType::SKIN_TONE + NUM_2)); in TestBeauty()
384 data.ReadInt32() % (FilterType::PINK + NUM_2)); in TestBeauty()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert_ext_utils.cpp31 constexpr uint32_t NUM_2 = 2; member
137 int uvStride = (rgbInfo.width + NUM_1) / NUM_2 * NUM_2; in RGBToYuvParam()
243 i420Info.uStride = (width + NUM_1) / NUM_2; in I420Param()
244 i420Info.vStride = (width + NUM_1) / NUM_2; in I420Param()
245 i420Info.uvHeight = (height + NUM_1) / NUM_2; in I420Param()
248 i420Info.uStride * i420Info.uvHeight * NUM_2); in I420Param()
259 auto i420VOffset = i420UOffset + i420Info.uStride * ((height + NUM_1) / NUM_2); in I420Param()
355 i010Info.uStride = (i010Info.width + NUM_1) / NUM_2; in I010Param()
356 i010Info.vStride = (i010Info.width + NUM_1) / NUM_2; in I010Param()
[all...]
H A Dimage_format_convert.cpp41 constexpr uint8_t NUM_2 = 2; member
355 return size.width * size.height * NUM_2; in GetBufferSizeByFormat()
367 return (((size.width + NUM_1) / NUM_2) * NUM_2) * size.height * NUM_8; in GetBufferSizeByFormat()
371 return size.width * size.height + ((size.width + NUM_1) / NUM_2) * in GetBufferSizeByFormat()
372 ((size.height + NUM_1) / NUM_2) * NUM_2; in GetBufferSizeByFormat()
376 return (size.width * size.height + ((size.width + NUM_1) / NUM_2) * in GetBufferSizeByFormat()
377 ((size.height + NUM_1) / NUM_2) * NUM_2) * NUM_ in GetBufferSizeByFormat()
[all...]
/foundation/multimedia/camera_framework/test/fuzztest/cloudenhancesession_fuzzer/
H A Dcloud_enhance_session_fuzzer.cpp38 const int32_t NUM_2 = 2; member
77 CHECK_AND_RETURN_RET_LOG(cameras.size() >= NUM_2, nullptr, "CloudEnhanceSessionFuzzer: GetSupportedCameras Error"); in GetCameraInput()
116 data.ReadInt32() % (PreconfigType::PRECONFIG_HIGH_QUALITY + NUM_2)); in TestSession()
118 data.ReadInt32() % (ProfileSizeRatio::RATIO_16_9 + NUM_2)); in TestSession()
136 data.ReadInt32() % (CaptureOutputType::CAPTURE_OUTPUT_TYPE_MAX + NUM_2)); in TestSession()
163 data.ReadInt32() % (SceneMode::APERTURE_VIDEO + NUM_2)); in Test()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/
H A Dpixel_convert_adapter.cpp45 static const uint8_t NUM_2 = 2; member
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()
/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/listener/
H A Dkv_data_change_listener.cpp142 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()
/foundation/multimedia/camera_framework/test/fuzztest/cameradevice_fuzzer/
H A Dcamera_device_fuzzer.cpp33 const int32_t NUM_2 = 2; member
81 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTest()
124 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTestUpdateSetting()
227 if (rawData == nullptr || size < NUM_2) { in CameraDeviceFuzzTest2()
272 if (rawData == nullptr || size < NUM_2) { in Test3()
278 CHECK_AND_RETURN_LOG(cameras.size() >= NUM_2, "PhotoOutputFuzzer: GetSupportedCameras Error"); in Test3()
308 CHECK_ERROR_RETURN(rawData == nullptr || size < NUM_2); in TestXCollie()
331 CHECK_ERROR_RETURN(rawData == nullptr || size < NUM_2); in TestCameraDeviceServiceCallback()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dshader_effect_test.cpp36 const int NUM_2 = 2; variable
51 ShaderEffect = OH_Drawing_ShaderEffectCreateLinearGradient(startPt, endPt, colors, pos, NUM_2, CLAMP); in OnTestPerformance()
54 ShaderEffect = OH_Drawing_ShaderEffectCreateLinearGradient(startPt, endPt, colors, pos, NUM_2, CLAMP); in OnTestPerformance()
/foundation/multimedia/camera_framework/test/fuzztest/photooutput_fuzzer/
H A Dphoto_output_fuzzer.cpp33 const int32_t NUM_2 = 2; member
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()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dnative_image.cpp31 constexpr uint32_t NUM_2 = 2; member
84 if (i % NUM_2 == NUM_1) { in YUV422SPDataCopy()
124 uint64_t uvStride = static_cast<uint64_t>((width + NUM_1) / NUM_2); in SplitYUV422SPComponent()
127 if (surfaceSize < (yuv.ySize + yuv.uvSize * NUM_2)) { in SplitYUV422SPComponent()
129 " + uv plane %{public}" PRIu64, surfaceSize, yuv.ySize, yuv.uvSize * NUM_2); in SplitYUV422SPComponent()
134 NativeComponent* u = CreateComponent(int32_t(ComponentType::YUV_U), yuv.uvSize, uvStride, NUM_2, nullptr); in SplitYUV422SPComponent()
135 NativeComponent* v = CreateComponent(int32_t(ComponentType::YUV_V), yuv.uvSize, uvStride, NUM_2, nullptr); in SplitYUV422SPComponent()
H A Dpixel_yuv.cpp45 static const uint8_t NUM_2 = 2; member
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()
249 int32_t dst_uvStride = (dstWidth + 1) / NUM_2 * NUM_2; in CreateMemory()
272 } else if (planes->planeCount >= NUM_2) { in CreateMemory()
546 yuvDataInfo.uvWidth = yuvDataInfo.uvWidth * NUM_2; in GetYUVInfoForCopyPixels()
548 yuvDataInfo.yWidth = static_cast<uint32_t>(imageInfo_.size.width) * NUM_2; in GetYUVInfoForCopyPixels()
550 yuvDataInfo.yOffset = yuvDataInfo.yOffset * NUM_2; in GetYUVInfoForCopyPixels()
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/ui_effect/src/
H A Dfilter_napi.cpp21 constexpr uint32_t NUM_2 = 2; member
34 { NUM_2, Drawing::TileMode::MIRROR },
286 if (argCount >= NUM_2) { in SetPixelStretch()
357 rippleCenterX = GetSpecialValue(env, argValue[NUM_2]); in SetWaterRipple()
390 napi_value argValue[NUM_2] = {0}; in SetFlyOut()
391 size_t argCount = NUM_2; in SetFlyOut()
401 if (argCount != NUM_2) { in SetFlyOut()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_side_bar_container_bridge.cpp24 constexpr int NUM_2 = 2; member
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()
H A Darkts_native_symbol_glyph_bridge.cpp31 constexpr int NUM_2 = 2; member
136 secondArg->Int32Value(vm) <= NUM_2) { in SetRenderingStrategy()
162 secondArg->Int32Value(vm) <= NUM_2) { in SetEffectStrategy()
192 if (info.Length() > NUM_2 && !info[NUM_2]->IsUndefined()) { in SetSymbolEffect()
193 Framework::JSSymbol::parseSymbolSwitch(info[NUM_2], symbolEffectOptions); in SetSymbolEffect()
H A Darkts_native_polygon_bridge.cpp21 constexpr int NUM_2 = 2; member
30 Local<JSValueRef> yPoint = runtimeCallInfo->GetCallArgRef(NUM_2); in SetPolygonPoints()
H A Darkts_native_polyline_bridge.cpp21 constexpr int NUM_2 = 2; member
30 Local<JSValueRef> yPoint = runtimeCallInfo->GetCallArgRef(NUM_2); in SetPoints()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/
H A Doverlength_dot_indicator_paint_method.cpp29 constexpr int32_t NUM_2 = 2; member
190 if (currentIndex_ < realItemCount_ - NUM_2) { in CalculatePointCenterX()
277 } else if (currentIndex_ >= NUM_2 && currentIndex_ < realItemCount_ - NUM_2) { in AnalysisIndexRange()
278 nposStation = NUM_2; in AnalysisIndexRange()
279 } else if (currentIndex_ >= realItemCount_ - NUM_2) { in AnalysisIndexRange()

Completed in 19 milliseconds

1234