Searched refs:scale (Results 1 - 25 of 535) sorted by relevance

1234567891011>>

/xsrc/external/mit/xmag/dist/
H A DScale.c67 #define Offset(field) XtOffsetOf(ScaleRec, scale.field)
220 values.foreground = sw->scale.foreground_pixel;
224 sw->scale.gc = XtGetGC((Widget) sw,
238 if (sw->scale.proportional) {
239 sw->scale.scale_x = sw->scale.scale_y =
240 ((sw->scale.aspect_ratio > 1.0) ?
241 sw->scale.aspect_ratio : 1.0 / sw->scale.aspect_ratio) *
242 (sw->scale
[all...]
H A DCutPaste.c52 sw->scale.image->width,
53 sw->scale.image->height,
54 sw->scale.image->depth);
55 XPutImage(XtDisplay(w), *pixmap, sw->scale.gc, sw->scale.image,
56 0, 0, 0, 0, sw->scale.image->width, sw->scale.image->height);
/xsrc/external/mit/pixman/dist/test/
H A Dscaling-bench.c30 double scale; local in function:main
41 for (scale = 0.1; scale < 10.005; scale += 0.01)
44 int dest_width = SOURCE_WIDTH * scale + 0.5;
45 int dest_height = SOURCE_HEIGHT * scale + 0.5;
47 pixman_fixed_t s = (1 / scale) * 65536.0 + 0.5;
65 scale, scale, 0, 0, 0, 0, dest_width, dest_height);
72 scale, SOURCE_WIDT
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/
H A Du_viewport.h45 b = vp->translate[2] + vp->scale[2];
47 a = vp->translate[2] - vp->scale[2];
48 b = vp->translate[2] + vp->scale[2];
H A Du_texture.c53 /* Compute sc = +/-scale and tc = +/-scale.
55 * though that can still sometimes happen with this scale factor...
57 * XXX: Yep, there is no safe scale factor that will prevent sampling
63 const float scale = allow_scale ? 0.9999f : 1.0f; local in function:util_map_texcoords2d_onto_cubemap
64 const float sc = (2 * in_st[0] - 1) * scale;
65 const float tc = (2 * in_st[1] - 1) * scale;
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/
H A Du_viewport.h45 b = vp->translate[2] + vp->scale[2];
47 a = vp->translate[2] - vp->scale[2];
48 b = vp->translate[2] + vp->scale[2];
H A Du_texture.c53 /* Compute sc = +/-scale and tc = +/-scale.
55 * though that can still sometimes happen with this scale factor...
57 * XXX: Yep, there is no safe scale factor that will prevent sampling
63 const float scale = allow_scale ? 0.9999f : 1.0f; local in function:util_map_texcoords2d_onto_cubemap
64 const float sc = (2 * in_st[0] - 1) * scale;
65 const float tc = (2 * in_st[1] - 1) * scale;
/xsrc/external/mit/MesaLib/dist/src/freedreno/common/
H A Dfreedreno_guardband.h32 fd_calc_guardband(float offset, float scale, bool is_a3xx) argument
47 * the scale.
49 const float gb_min_ndc = (gb_min - offset) / fabsf(scale);
50 const float gb_max_ndc = (gb_max - offset) / fabsf(scale);
63 * can happen if scale == 0.
/xsrc/external/mit/MesaLib.old/dist/src/mesa/math/
H A Dm_norm_tmp.h36 * scale - uniform scale factor of the transformation matrix (not always used)
44 GLfloat scale,
71 GLfloat scale = 1.0f / sqrtf(len);
72 out[i][0] = tx * scale;
73 out[i][1] = ty * scale;
74 out[i][2] = tz * scale;
83 if (scale != 1.0f) {
84 m0 *= scale, m4 *= scale, m
[all...]
H A Dm_debug_norm.c125 GLfloat scale,
141 SCALE_SCALAR_3V( out[i], scale, t );
148 GLfloat scale,
169 scale = 1.0f / sqrtf(len);
170 SCALE_SCALAR_3V( out[i], scale, t );
175 scale = lengths[i];
176 SCALE_SCALAR_3V( out[i], scale, t );
203 GLfloat scale; local in function:test_norm_function
217 scale = 1.0F + rnd () * norm_scale_types[mtype];
279 ref_norm_transform_rescale( mat, scale, sourc
124 ref_norm_transform_rescale(const GLmatrix * mat,GLfloat scale,const GLvector4f * in,const GLfloat * lengths,GLvector4f * dest) argument
147 ref_norm_transform_normalize(const GLmatrix * mat,GLfloat scale,const GLvector4f * in,const GLfloat * lengths,GLvector4f * dest) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/math/
H A Dm_norm_tmp.h36 * scale - uniform scale factor of the transformation matrix (not always used)
44 GLfloat scale,
71 GLfloat scale = 1.0f / sqrtf(len);
72 out[i][0] = tx * scale;
73 out[i][1] = ty * scale;
74 out[i][2] = tz * scale;
83 if (scale != 1.0f) {
84 m0 *= scale, m4 *= scale, m
[all...]
H A Dm_debug_norm.c124 GLfloat scale,
140 SCALE_SCALAR_3V( out[i], scale, t );
147 GLfloat scale,
168 scale = 1.0f / sqrtf(len);
169 SCALE_SCALAR_3V( out[i], scale, t );
174 scale = lengths[i];
175 SCALE_SCALAR_3V( out[i], scale, t );
202 GLfloat scale; local in function:test_norm_function
216 scale = 1.0F + rnd () * norm_scale_types[mtype];
278 ref_norm_transform_rescale( mat, scale, sourc
123 ref_norm_transform_rescale(const GLmatrix * mat,GLfloat scale,const GLvector4f * in,const GLfloat * lengths,GLvector4f * dest) argument
146 ref_norm_transform_normalize(const GLmatrix * mat,GLfloat scale,const GLvector4f * in,const GLfloat * lengths,GLvector4f * dest) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_atom_viewport.c52 float *scale = st->state.viewport[i].scale; local in function:st_update_viewport
55 _mesa_get_viewport_xform(ctx, i, scale, translate);
60 scale[1] *= -1;
/xsrc/external/mit/MesaGLUT/dist/src/glut/beos/
H A Dglut_teapot.c139 teapot(GLint grid, GLdouble scale, GLenum type) argument
151 glScalef(0.5 * scale, 0.5 * scale, 0.5 * scale);
199 glutSolidTeapot(GLdouble scale) argument
201 teapot(14, scale, GL_FILL);
205 glutWireTeapot(GLdouble scale) argument
207 teapot(10, scale, GL_LINE);
/xsrc/external/mit/MesaGLUT/dist/src/glut/glx/
H A Dglut_teapot.c139 teapot(GLint grid, GLdouble scale, GLenum type) argument
151 glScalef(0.5 * scale, 0.5 * scale, 0.5 * scale);
199 glutSolidTeapot(GLdouble scale) argument
201 teapot(7, scale, GL_FILL);
205 glutWireTeapot(GLdouble scale) argument
207 teapot(10, scale, GL_LINE);
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Dformat_r11g11b10f.h115 const float scale = 1.0 / (1 << 20); local in function:uf11_to_f32
116 f32.f = scale * mantissa;
121 float scale, decimal; local in function:uf11_to_f32
124 scale = 1.0f / (1 << -exponent);
126 scale = (float) (1 << exponent);
129 f32.f = scale * decimal;
197 const float scale = 1.0 / (1 << 19); local in function:uf10_to_f32
198 f32.f = scale * mantissa;
203 float scale, decimal; local in function:uf10_to_f32
206 scale
[all...]
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dformat_r11g11b10f.h115 const float scale = 1.0 / (1 << 20); local in function:uf11_to_f32
116 f32.f = scale * mantissa;
121 float scale, decimal; local in function:uf11_to_f32
124 scale = 1.0f / (1 << -exponent);
126 scale = (float) (1 << exponent);
129 f32.f = scale * decimal;
197 const float scale = 1.0 / (1 << 19); local in function:uf10_to_f32
198 f32.f = scale * mantissa;
203 float scale, decimal; local in function:uf10_to_f32
206 scale
[all...]
/xsrc/external/mit/freetype/dist/src/tools/
H A Dcordic.py6 scale = units/math.pi variable
18 angle2 = round(angle*scale) # arctangent in FT_Angle units
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/rasterizer/jitter/shader_lib/
H A DScatter.cpp34 extern "C" void ScatterPS_256(uint8_t* pBase, SIMD256::Integer vIndices, SIMD256::Float vSrc, uint8_t mask, uint32_t scale) argument
47 *(float*)(pBase + indices[index] * scale) = src[index];
/xsrc/external/mit/mesa-demos/dist/src/util/
H A Dshowbuffer.h32 GLfloat scale, GLfloat bias );
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_atom_viewport.c58 float *scale = st->state.viewport[i].scale; local in function:st_update_viewport
61 _mesa_get_viewport_xform(ctx, i, scale, translate);
66 scale[1] *= -1;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/softpipe/
H A Dsp_quad_depth_test_tmp.h64 const float scale = 65535.0; local in function:NAME
67 init_idepth[0] = (ushort)((z0) * scale);
68 init_idepth[1] = (ushort)((z0 + dzdx) * scale);
69 init_idepth[2] = (ushort)((z0 + dzdy) * scale);
70 init_idepth[3] = (ushort)((z0 + dzdx + dzdy) * scale);
72 depth_step = (ushort)(dzdx * scale);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/softpipe/
H A Dsp_quad_depth_test_tmp.h64 const float scale = 65535.0; local in function:NAME
67 init_idepth[0] = (ushort)((z0) * scale);
68 init_idepth[1] = (ushort)((z0 + dzdx) * scale);
69 init_idepth[2] = (ushort)((z0 + dzdy) * scale);
70 init_idepth[3] = (ushort)((z0 + dzdx + dzdy) * scale);
72 depth_step = (ushort)(dzdx * scale);
/xsrc/external/mit/MesaLib/dist/src/util/format/
H A Du_format_yuv.h65 const float scale = 255.0f; local in function:util_format_rgb_float_to_yuv
67 const int _y = scale * ( (0.257f * _r) + (0.504f * _g) + (0.098f * _b));
68 const int _u = scale * (-(0.148f * _r) - (0.291f * _g) + (0.439f * _b));
69 const int _v = scale * ( (0.439f * _r) - (0.368f * _g) - (0.071f * _b));
87 const float scale = 1.0f / 255.0f; local in function:util_format_yuv_to_rgb_float
89 *r = scale * (y_factor * _y + 1.596f * _v);
90 *g = scale * (y_factor * _y - 0.391f * _u - 0.813f * _v);
91 *b = scale * (y_factor * _y + 2.018f * _u );
/xsrc/external/mit/mesa-demos/dist/src/demos/
H A Drenormal.c32 GLfloat scale = 0.6 + 0.5 * sin(Phi); local in function:Display
35 glScalef(scale, scale, scale);

Completed in 16 milliseconds

1234567891011>>