Home
last modified time | relevance | path

Searched refs:fWidth (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_offscreen_canvas.cpp144 double fWidth = 0.0; in Constructor() local
155 if (napi_get_value_double(env, argv[0], &fWidth) == napi_ok) { in Constructor()
156 fWidth *= density; in Constructor()
157 workCanvas->SetWidth(fWidth); in Constructor()
164 static_cast<int32_t>(fWidth), static_cast<int32_t>(fHeight)); in Constructor()
237 double fWidth = GetWidth(); in OnGetWidth() local
239 fWidth /= density; in OnGetWidth()
241 napi_create_double(env, fWidth, &width); in OnGetWidth()
H A Djs_canvas_renderer.cpp616 double fWidth = 0.0; in JsCreateImageData() local
621 info.GetDoubleArg(0, fWidth); in JsCreateImageData()
623 fWidth *= density; in JsCreateImageData()
629 JSViewAbstract::ParseJsDouble(widthValue, fWidth); in JsCreateImageData()
632 uint32_t finalWidth = static_cast<uint32_t>(std::abs(fWidth + DIFF)); in JsCreateImageData()
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/custom/
H A Dlume_custom_render.cpp204 auto fWidth = static_cast<float>(width); in OnSizeChange() local
206 if ((buffer[0] == fWidth) && (buffer[1] == fHeight)) { in OnSizeChange()
210 WIDGET_LOGD("update custom shader resolution %f X %f", fWidth, fHeight); in OnSizeChange()
211 resolutionBuffer_.Update(fWidth, 0U); in OnSizeChange()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dpoints_mask_filter.cpp50 float fWidth = 10.0f; in OnTestFunction() local
65 OH_Drawing_PenSetWidth(pen, fWidth); in OnTestFunction()
H A Dstroke_rect_shader.cpp33 float fWidth = 10.f; in drawRect() local
39 OH_Drawing_PenSetWidth(pen, fWidth); in drawRect()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/
H A Drender_motion_blur.cpp223 const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in Execute() local
225 …const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, … in Execute()
261 const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in ExecuteTileVelocity() local
263 …const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, … in ExecuteTileVelocity()
H A Drender_copy.cpp146 … const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in Execute() local
148 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in Execute()
H A Drender_node_back_buffer.cpp52 const float fWidth = static_cast<float>(dstImageDesc.width); in FillPushConstant() local
55 pushData.texSizeInvTexSize[0u] = fWidth; in FillPushConstant()
57 pushData.texSizeInvTexSize[2u] = 1.0f / fWidth; in FillPushConstant()
H A Drender_node_single_post_process.cpp349 … const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in ExecuteSinglePostProcess() local
351 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in ExecuteSinglePostProcess()
366 const float fWidth = static_cast<float>(targetSize.x); in ExecuteSinglePostProcess() local
368 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in ExecuteSinglePostProcess()
H A Drender_node_mip_chain_post_process.cpp357 const float fWidth = static_cast<float>(width); in RenderGraphics() local
395 cmdList.SetDynamicStateViewport(ViewportDesc { 0.0f, 0.0f, fWidth, fHeight, 0.0f, 0.0f }); in RenderGraphics()
410 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in RenderGraphics()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/
H A Dskia_image_data.cpp101 imageSize.SetSizeT(SizeF(codec->dimensions().fHeight, codec->dimensions().fWidth)); in Parse()
104 imageSize.SetSizeT(SizeF(codec->dimensions().fWidth, codec->dimensions().fHeight)); in Parse()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_node_default_shadows_blur.cpp182 const float fWidth = static_cast<float>(tempImage.width); in ProcessSingleShadow() local
184 const Math::Vec4 texSizeInvTexSize = { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }; in ProcessSingleShadow()
186 const ViewportDesc viewport { 0.0f, 0.0f, fWidth, fHeight, 0.0f, 1.0f }; in ProcessSingleShadow()
H A Drender_node_camera_single_post_process.cpp358 … const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in ExecuteSinglePostProcess() local
360 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in ExecuteSinglePostProcess()
375 const float fWidth = static_cast<float>(targetSize.x); in ExecuteSinglePostProcess() local
377 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in ExecuteSinglePostProcess()
H A Drender_node_camera_cubemap.cpp295 const float fWidth = static_cast<float>(currSize.x); in ExecuteSinglePostProcess() local
297 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in ExecuteSinglePostProcess()
H A Drender_node_default_material_deferred_shading.cpp212 const float fWidth = static_cast<float>(renderPass_.renderPassDesc.renderArea.extentWidth); in RenderData() local
214 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in RenderData()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/
H A Drender_node_post_process_util.cpp558 const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in ExecuteCombine() local
560 …const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, … in ExecuteCombine()
668 const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in ExecuteTAA() local
670 … const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, in ExecuteTAA()
747 const float fWidth = static_cast<float>(rp.renderPassDesc.renderArea.extentWidth); in ExecuteDofBlur() local
749 …const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, … in ExecuteDofBlur()
810 const float fWidth = static_cast<float>(renderPass.renderPassDesc.renderArea.extentWidth); in ExecuteDof() local
812 …const LocalPostProcessPushConstantStruct pc { { fWidth, fHeight, 1.0f / fWidth, 1.0f / fHeight }, … in ExecuteDof()
/ohos5.0/foundation/multimedia/media_foundation/video_processing_engine/framework/algorithm/detail_enhancer/skia/
H A Dskia_impl.cpp163 imageSize.fWidth = buffer->GetWidth(); in CreateYUVPixmap()
164 if (imageSize.fWidth <= 0) { in CreateYUVPixmap()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/
H A Dtypography.cpp267 return lines[lineNumber].fWidth; in GetLineWidth()
331 lineMetrics->width = sklineMetrics.fWidth; in GetLineInfo()
369 line.width = skLineMetrics.fWidth; in GetLineMetrics()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_object.cpp125 imageSize.SetSize(Size(codec->dimensions().fHeight, codec->dimensions().fWidth)); in BuildImageObject()
128 imageSize.SetSize(Size(codec->dimensions().fWidth, codec->dimensions().fHeight)); in BuildImageObject()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/
H A Drender_node_scene_util.cpp88 const float fWidth = static_cast<float>(renderArea.extentWidth); in UpdateRenderArea() local
91 const float offsetX = (fWidth * scissor.x); in UpdateRenderArea()
93 const float extentWidth = (fWidth * scissor.z); in UpdateRenderArea()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dcanvas_renderer.h102 … std::unique_ptr<ImageData> GetImageData(double fLeft, double fTop, double fWidth, double fHeight);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsproperty_fuzzer/
H A Drsproperty_fuzzer.cpp308 float fWidth = GetData<float>(); in RSPropertiesPainterFuzzTest() local
310 RectF rect(fLeft, fTop, fWidth, fHeight); in RSPropertiesPainterFuzzTest()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/rosen/
H A Ddrawing_image_data.cpp139 imageSize.SetSizeT(SizeF(codec->dimensions().fWidth, codec->dimensions().fHeight)); in Parse()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_canvas_ffi.h177 int64_t contextId, double fLeft, double fTop, double fWidth, double fHeight);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/
H A Dparagraph_builder_impl.cpp136 placeholderStyle.fWidth = run.width; in AddPlaceholder()

12