Searched refs:half_width (Results 1 - 17 of 17) sorted by relevance

/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_viewport.c68 GLfloat half_width = (GLfloat)ctx->Viewport.Width * 0.5f; local
72 st->state.viewport.scale[0] = half_width;
77 st->state.viewport.translate[0] = half_width + x;
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_wide_line.c63 const float half_width = 0.5f * stage->draw->rasterizer->line_width; local
94 pos0[1] = pos0[1] - half_width - bias;
95 pos1[1] = pos1[1] + half_width - bias;
96 pos2[1] = pos2[1] - half_width - bias;
97 pos3[1] = pos3[1] + half_width - bias;
117 pos0[0] = pos0[0] - half_width + bias;
118 pos1[0] = pos1[0] + half_width + bias;
119 pos2[0] = pos2[0] - half_width + bias;
120 pos3[0] = pos3[0] + half_width + bias;
H A Ddraw_pipe_aaline.c559 const float half_width = aaline->half_line_width; local
572 dx = 0.5F * half_width;
573 dy = half_width;
/external/pdfium/core/src/fxge/ge/
H A Dfx_ge_path.cpp255 FX_FLOAT half_width, FX_FLOAT miter_limit)
262 FX_FLOAT point_y = middle_y + half_width * start_dir;
263 rect.UpdateRect(middle_x + half_width, point_y);
264 rect.UpdateRect(middle_x - half_width, point_y);
271 start_dc = (FX_FLOAT)FXSYS_fabs(FXSYS_MulDiv(half_width, start_len, start_x - middle_x));
277 end_dc = (FX_FLOAT)FXSYS_fabs(FXSYS_MulDiv(half_width, end_len, end_x - middle_x));
282 outside_x += half_width;
284 outside_x -= half_width;
298 outside_x += half_width;
300 outside_x -= half_width;
[all...]
/external/mesa3d/src/gallium/tests/graw/
H A Dshader-leak.c56 float half_width = (float)width / 2.0f; local
61 vp.scale[0] = half_width;
66 vp.translate[0] = half_width + x;
H A Dtri-gs.c57 float half_width = (float)width / 2.0f; local
62 vp.scale[0] = half_width;
67 vp.translate[0] = half_width + x;
H A Dtri-instanced.c86 float half_width = (float)width / 2.0f; local
91 vp.scale[0] = half_width;
96 vp.translate[0] = half_width + x;
H A Dgraw_util.h192 float half_width = width / 2.0f; local
197 vp.scale[0] = half_width;
202 vp.translate[0] = half_width + x;
H A Dquad-sample.c66 float half_width = (float)width / 2.0f; local
71 vp.scale[0] = half_width;
76 vp.translate[0] = half_width + x;
H A Dfs-test.c180 float half_width = (float)width / 2.0f; local
185 vp.scale[0] = half_width;
190 vp.translate[0] = half_width + x;
H A Dgs-test.c213 float half_width = (float)width / 2.0f; local
218 vp.scale[0] = half_width;
223 vp.translate[0] = half_width + x;
H A Dvs-test.c124 float half_width = (float)width / 2.0f; local
129 vp.scale[0] = half_width;
134 vp.translate[0] = half_width + x;
/external/mesa3d/src/gallium/tests/trivial/
H A Dtri.c175 float half_width = (float)WIDTH / 2.0f; local
188 p->viewport.scale[0] = half_width;
193 p->viewport.translate[0] = half_width + x;
H A Dquad-tex.c234 float half_width = (float)WIDTH / 2.0f; local
247 p->viewport.scale[0] = half_width;
252 p->viewport.translate[0] = half_width + x;
/external/pdfium/core/src/fpdfapi/fpdf_page/
H A Dfpdf_page.cpp516 FX_FLOAT half_width = m_GraphState.GetObject()->m_LineWidth / 2; local
517 m_Left -= half_width;
518 m_Right += half_width;
519 m_Top += half_width;
520 m_Bottom -= half_width;
/external/mesa3d/src/gallium/state_trackers/d3d1x/dxgi/src/
H A Ddxgi_native.cpp823 float half_width = w * 0.5f; local
825 viewport.scale[0] = half_width;
829 viewport.translate[0] = x + half_width;
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/
H A Dd3d11_context.h962 float half_width = viewports[0].Width * 0.5f; local
965 viewport.scale[0] = half_width;
969 viewport.translate[0] = half_width + viewports[0].TopLeftX;

Completed in 230 milliseconds