Home
last modified time | relevance | path

Searched refs:half_height (Results 1 – 17 of 17) sorted by relevance

/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Dnon_max_suppression_fp32.h76 float half_height = y_b / 2; in NMSBox() local
77 y1_ = y_a - half_height; in NMSBox()
78 y2_ = y_a + half_height; in NMSBox()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DRasterizer.cpp72 float half_height = height / 2.0f; in SetViewports() local
76 states[i].scale[1] = -half_height; in SetViewports()
80 states[i].translate[1] = half_height + y; in SetViewports()
/third_party/mesa3d/src/gallium/tests/graw/
Dshader-leak.c57 float half_height = (float)height / 2.0f; in set_viewport() local
62 vp.scale[1] = half_height; in set_viewport()
66 vp.translate[1] = half_height + y; in set_viewport()
Dtri-gs.c58 float half_height = (float)height / 2.0f; in set_viewport() local
63 vp.scale[1] = half_height; in set_viewport()
67 vp.translate[1] = half_height + y; in set_viewport()
Dtri-instanced.c87 float half_height = (float)height / 2.0f; in set_viewport() local
92 vp.scale[1] = half_height; in set_viewport()
96 vp.translate[1] = half_height + y; in set_viewport()
Dgraw_util.h192 float half_height = height / 2.0f; in graw_util_viewport() local
197 vp.scale[1] = half_height; in graw_util_viewport()
201 vp.translate[1] = half_height + y; in graw_util_viewport()
Dquad-sample.c67 float half_height = (float)height / 2.0f; in set_viewport() local
72 vp.scale[1] = half_height; in set_viewport()
76 vp.translate[1] = half_height + y; in set_viewport()
Dfs-test.c139 float half_height = (float)height / 2.0f; in set_viewport() local
144 vp.scale[1] = half_height; in set_viewport()
148 vp.translate[1] = half_height + y; in set_viewport()
Dvs-test.c119 float half_height = (float)height / 2.0f; in set_viewport() local
124 vp.scale[1] = half_height; in set_viewport()
128 vp.translate[1] = half_height + y; in set_viewport()
Dgs-test.c197 float half_height = (float)height / 2.0f; in set_viewport() local
202 vp.scale[1] = half_height; in set_viewport()
206 vp.translate[1] = half_height + y; in set_viewport()
/third_party/mesa3d/src/gallium/tests/trivial/
Dtri.c177 float half_height = (float)HEIGHT / 2.0f; in init_prog() local
190 p->viewport.scale[1] = half_height * scale; in init_prog()
194 p->viewport.translate[1] = (half_height + y) * scale + bias; in init_prog()
Dquad-tex.c234 float half_height = (float)HEIGHT / 2.0f; in init_prog() local
247 p->viewport.scale[1] = half_height * scale; in init_prog()
251 p->viewport.translate[1] = (half_height + y) * scale + bias; in init_prog()
/third_party/mesa3d/src/mesa/main/
Dviewport.c589 float half_height = 0.5f * ctx->ViewportArray[i].Height; in _mesa_get_viewport_xform() local
596 scale[1] = -half_height; in _mesa_get_viewport_xform()
598 scale[1] = half_height; in _mesa_get_viewport_xform()
600 translate[1] = half_height + y; in _mesa_get_viewport_xform()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup.c903 float half_height, x0, y0; in lp_setup_set_viewports() local
922 half_height = fabsf(viewports[0].scale[1]); in lp_setup_set_viewports()
924 y0 = viewports[0].translate[1] - half_height; in lp_setup_set_viewports()
928 setup->vpwh.y1 = (int)(half_height * 2.0f + y0 - 0.5f); in lp_setup_set_viewports()
/third_party/mesa3d/src/amd/vulkan/
Dsi_cmd_buffer.c602 float half_height = 0.5f * viewport->height; in radv_get_viewport_xform() local
608 scale[1] = half_height; in radv_get_viewport_xform()
609 translate[1] = half_height + y; in radv_get_viewport_xform()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_cmd_buffer.c1958 float half_height = 0.5f * viewport->height; in v3dv_viewport_compute_xform() local
1964 scale[1] = half_height; in v3dv_viewport_compute_xform()
1965 translate[1] = half_height + y; in v3dv_viewport_compute_xform()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_execute.c379 float half_height = 0.5f * viewport->height; in get_viewport_xform() local
385 scale[1] = half_height; in get_viewport_xform()
386 translate[1] = half_height + y; in get_viewport_xform()