Searched refs:scale (Results 151 - 175 of 1782) sorted by relevance

1234567891011>>

/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dgen8_viewport_state.c64 float scale[3], translate[3]; local
65 _mesa_get_viewport_xform(ctx, i, scale, translate);
68 vp[0] = scale[0]; /* m00 */
69 vp[1] = scale[1] * y_scale; /* m11 */
70 vp[2] = scale[2]; /* m22 */
/external/deqp/modules/gles2/accuracy/
H A Des2aVaryingInterpolationTests.cpp64 static void renderReference (const SurfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) argument
87 float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0];
88 float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1];
89 float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2];
212 tcu::Vec3 scale = 1.0f / (m_max - m_min); local
213 tcu::Vec3 bias = -1.0f*m_min*scale;
216 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2],
217 (0.5f - bias[0])/scale[
264 renderReference(SurfaceAccess(reference, m_context.getRenderTarget().getPixelFormat()), coords, wCoord, scale, bias); local
[all...]
/external/deqp/modules/gles3/accuracy/
H A Des3aVaryingInterpolationTests.cpp66 static void renderReference (const SurfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) argument
89 float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0];
90 float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1];
91 float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2];
218 tcu::Vec3 scale = 1.0f / (m_max - m_min); local
219 tcu::Vec3 bias = -1.0f*m_min*scale;
222 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2],
223 (0.5f - bias[0])/scale[
270 renderReference(SurfaceAccess(reference, m_context.getRenderTarget().getPixelFormat()), coords, wCoord, scale, bias); local
[all...]
/external/tensorflow/tensorflow/python/keras/_impl/keras/
H A Dinitializers_test.py86 scale = np.sqrt(3. / fan_in)
88 target_mean=0., target_max=scale, target_min=-scale)
94 scale = np.sqrt(6. / (fan_in + fan_out))
96 target_mean=0., target_max=scale, target_min=-scale)
102 scale = np.sqrt(6. / fan_in)
104 target_mean=0., target_max=scale, target_min=-scale)
110 scale
[all...]
H A Dinitializers.py58 scale=1., mode='fan_in', distribution='normal', seed=seed)
80 scale=1., mode='fan_in', distribution='uniform', seed=seed)
103 scale=1., mode='fan_avg', distribution='normal', seed=seed)
126 scale=1., mode='fan_avg', distribution='uniform', seed=seed)
147 scale=2., mode='fan_in', distribution='normal', seed=seed)
168 scale=2., mode='fan_in', distribution='uniform', seed=seed)
/external/skia/tests/
H A DPathOpsConicIntersectionTest.cpp74 const int scale = 10; local
77 conic.fPts[index].fX = c.fPts[index].fX * scale;
78 conic.fPts[index].fY = c.fPts[index].fY * scale;
80 chopped[chIndex].fPts[index].fX = ch[chIndex].fPts[index].fX * scale;
81 chopped[chIndex].fPts[index].fY = ch[chIndex].fPts[index].fY * scale;
118 const int scale = 5; local
119 SkDConic dConic = {{{ {dC.fPts[0].fX * scale, dC.fPts[0].fY * scale },
120 {dC.fPts[1].fX * scale, dC.fPts[1].fY * scale },
241 const int scale = 5; local
[all...]
/external/skqp/tests/
H A DPathOpsConicIntersectionTest.cpp74 const int scale = 10; local
77 conic.fPts[index].fX = c.fPts[index].fX * scale;
78 conic.fPts[index].fY = c.fPts[index].fY * scale;
80 chopped[chIndex].fPts[index].fX = ch[chIndex].fPts[index].fX * scale;
81 chopped[chIndex].fPts[index].fY = ch[chIndex].fPts[index].fY * scale;
118 const int scale = 5; local
119 SkDConic dConic = {{{ {dC.fPts[0].fX * scale, dC.fPts[0].fY * scale },
120 {dC.fPts[1].fX * scale, dC.fPts[1].fY * scale },
241 const int scale = 5; local
[all...]
/external/tensorflow/tensorflow/contrib/image/python/kernel_tests/
H A Ddistort_image_ops_test.py131 def _adjust_value_in_yiq_np(self, x_np, scale):
132 return x_np * scale
134 def _adjust_value_in_yiq_tf(self, x_np, scale):
137 y = distort_image_ops.adjust_hsv_in_yiq(x, 0, 1, scale)
159 scale = np.random.rand() * 2.0 - 1.0
173 y_np = self._adjust_value_in_yiq_np(x_np, scale)
174 y_tf = self._adjust_value_in_yiq_tf(x_np, scale)
179 scale = np.random.rand() * 2.0 - 1.0
181 self._adjust_value_in_yiq_tf(x_np, scale)
183 scale
[all...]
/external/skia/bench/
H A DPathTextBench.cpp66 float scale = size / glyphSize; variable
68 fXforms[i].setTranslate((1 - t1) * sqrt(2) * scale/2 * glyphSize +
69 t1 * (kScreenWidth - sqrt(2) * scale/2 * glyphSize),
70 (1 - t2) * sqrt(2) * scale/2 * glyphSize +
71 t2 * (kScreenHeight - sqrt(2) * scale/2 * glyphSize));
73 fXforms[i].preTranslate(-scale/2 * bounds.width(), -scale/2 * bounds.height());
74 fXforms[i].preScale(scale, scale);
/external/skqp/bench/
H A DPathTextBench.cpp66 float scale = size / glyphSize; variable
68 fXforms[i].setTranslate((1 - t1) * sqrt(2) * scale/2 * glyphSize +
69 t1 * (kScreenWidth - sqrt(2) * scale/2 * glyphSize),
70 (1 - t2) * sqrt(2) * scale/2 * glyphSize +
71 t2 * (kScreenHeight - sqrt(2) * scale/2 * glyphSize));
73 fXforms[i].preTranslate(-scale/2 * bounds.width(), -scale/2 * bounds.height());
74 fXforms[i].preScale(scale, scale);
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/
H A Dweibull.py35 """Compute `Y = g(X) = 1 - exp((-X / scale) ** concentration), X >= 0`.
43 Y ~ Weibull(scale, concentration)
44 pdf(y; scale, concentration, y >= 0) = (scale / concentration) * (
45 scale / concentration) ** (concentration - 1) * exp(
46 -(y / scale) ** concentration)
51 scale=1.,
59 scale: Positive Float-type `Tensor` that is the same dtype and is
63 broadcastable with `scale`.
74 with self._name_scope("init", values=[scale, concentratio
97 def scale(self): member in class:Weibull
[all...]
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
H A Dsinh_arcsinh.py45 and control over `scale` as well as a "shift" parameter `loc`.
51 `(loc, scale, skewness, tailweight)`, via the relation:
54 Y := loc + scale * F(Z) * (2 / F_0(2))
59 This distribution is similar to the location-scale transformation
60 `L(Z) := loc + scale * Z` in the following ways:
65 * The multiplication of `scale` by `2 / F_0(2)` ensures that if `skewness = 0`
66 `P[Y - loc <= 2 * scale] = P[L(Z) - loc <= 2 * scale]`.
68 `loc + 2 * scale` are the same.
70 This distribution is different than `loc + scale *
205 def scale(self): member in class:SinhArcsinh
[all...]
H A Dcauchy.py39 """The Cauchy distribution with location `loc` and scale `scale`.
46 pdf(x; loc, scale) = 1 / (pi scale (1 + z**2))
47 z = (x - loc) / scale
49 where `loc` is the location, and `scale` is the scale.
51 The Cauchy distribution is a member of the [location-scale family](
53 `Y ~ Cauchy(loc, scale)` is equivalent to,
56 X ~ Cauchy(loc=0, scale
151 def scale(self): member in class:Cauchy
[all...]
/external/fec/
H A Dviterbi615_av.c229 vector unsigned short scale; local
233 scale = vp->new_metrics->v[0];
235 scale = vec_min(scale,vp->new_metrics->v[i]);
237 scale = vec_min(scale,vec_sld(scale,scale,8));
238 scale = vec_min(scale,vec_sl
[all...]
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
H A Dcb_search.c52 int scale; local
114 vector scale factor (so that it uses 12 bits) */
120 scale = WebRtcSpl_GetSizeInBits((uint32_t)(temp1 * temp1));
123 scale = 30;
127 scale = scale - 25;
128 scale = WEBRTC_SPL_MAX(0, scale);
131 targetEner = WebRtcSpl_DotProductWithScale(target, target, lTarget, scale);
150 scale, 2
[all...]
/external/libmojo/ui/gfx/geometry/
H A Dpoint_f.h69 void Scale(float scale) { argument
70 Scale(scale, scale);
115 inline PointF ScalePoint(const PointF& p, float scale) { argument
116 return ScalePoint(p, scale, scale);
H A Dvector2d_f.h57 // Scale the x and y components of the vector by |scale|.
58 void Scale(float scale) { Scale(scale, scale); } argument
100 // Return a vector that is |v| scaled by the given scale factors along each
106 // Return a vector that is |v| scaled by the given scale factor.
107 inline Vector2dF ScaleVector2d(const Vector2dF& v, float scale) { argument
108 return ScaleVector2d(v, scale, scale);
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_depth_test_tmp.h64 const float scale = 65535.0; local
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);
/external/tensorflow/tensorflow/contrib/bayesflow/python/ops/
H A Dlayers_util.py44 """Makes closure which creates `loc`, `scale` params from `tf.get_variable`.
46 This function produces a closure which produces `loc`, `scale` using
59 is_singular: Python `bool` indicating if `scale is None`. Default: `False`.
62 untransformed_scale_initializer: Initializer function for the `scale`
68 untransformed_scale_regularizer: Regularizer function for the `scale`
77 applied to the `scale` parameters after being updated by an `Optimizer`
85 default_loc_scale_fn: Python `callable` which instantiates `loc`, `scale`
89 """Creates `loc`, `scale` parameters."""
108 scale = (np.finfo(dtype.as_numpy_dtype).eps +
110 return loc, scale
[all...]
/external/webrtc/talk/media/base/
H A Dvideoadapter.cc52 // Desktop needs 1/8 scale for HD (1280 x 720) to QQVGA (160 x 90)
55 3.f / 4.f, // 3/4 scale.
56 1.f / 2.f, // 1/2 scale.
57 3.f / 8.f, // 3/8 scale.
58 1.f / 4.f, // 1/4 scale.
59 3.f / 16.f, // 3/16 scale.
60 1.f / 8.f, // 1/8 scale.
67 3.f / 4.f, // 3/4 scale.
68 2.f / 3.f, // 2/3 scale. // Allow 1080p to 720p.
69 1.f / 2.f, // 1/2 scale
100 float scale = scale_factors[i]; local
304 const float scale = VideoAdapter::FindClosestViewScale( local
610 float scale = 1.0f; local
653 float scale = FindClosestScale(input.width, input.height, min_num_pixels); local
667 float scale = 1.0f; local
[all...]
/external/pdfium/core/fxcrt/
H A Dcfx_decimal.cpp209 uint8_t& scale) {
211 while (scale != 0 && (scale > FXMATH_DECIMAL_SCALELIMIT ||
214 scale--;
225 uint8_t& scale,
227 while (scale > minscale) {
235 scale--;
256 uint8_t scale)
262 (scale > FXMATH_DECIMAL_SCALELIMIT ? 0 : scale))) {}
206 decimal_helper_shrinkintorange(uint64_t a[], uint8_t al, uint8_t goal, uint8_t& scale) argument
222 decimal_helper_truncate(uint64_t& phi, uint64_t& pmid, uint64_t& plo, uint8_t& scale, uint8_t minscale = 0) argument
252 CFX_Decimal(uint32_t lo, uint32_t mid, uint32_t hi, bool neg, uint8_t scale) argument
273 CFX_Decimal(float val, uint8_t scale) argument
302 uint8_t scale = 0; local
342 uint8_t scale = (uint8_t)FXMATH_DECIMAL_FLAGS2SCALE(m_uFlags); local
362 int8_t scale = FXMATH_DECIMAL_FLAGS2SCALE(m_uFlags); local
429 uint8_t scale = FXMATH_DECIMAL_FLAGS2SCALE(m_uFlags) + local
444 uint8_t scale = 0; local
[all...]
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
H A Ddistribution_util_test.py111 scale = distribution_util.make_tril_scale(**scale_args)
112 scale.to_dense().eval()
114 scale = distribution_util.make_tril_scale(**scale_args)
115 self.assertAllClose(expected_scale, scale.to_dense().eval())
145 scale = distribution_util.make_tril_scale(scale_tril=[[1., 1], [1., 1.]])
146 self.assertAllClose([[1., 0], [1., 1.]], scale.to_dense().eval())
151 scale = distribution_util.make_tril_scale(
153 scale.to_dense().eval()
158 scale = distribution_util.make_tril_scale(
162 scale
[all...]
/external/deqp/external/vulkancts/modules/vulkan/geometry/
H A DvktGeometryInputGeometryShaderTests.cpp95 const float scale = 0.3f; local
100 m_vertexPosData[ 0] = Vec4( 0, 0, 0.0f, 0.0f) * scale + offset;
101 m_vertexPosData[ 1] = Vec4(-1, -1, 0.0f, 0.0f) * scale + offset;
102 m_vertexPosData[ 2] = Vec4( 0, -1, 0.0f, 0.0f) * scale + offset;
103 m_vertexPosData[ 3] = Vec4( 1, 1, 0.0f, 0.0f) * scale + offset;
104 m_vertexPosData[ 4] = Vec4( 1, 0, 0.0f, 0.0f) * scale + offset;
105 m_vertexPosData[ 5] = Vec4( 0, -2, 0.0f, 0.0f) * scale + offset;
106 m_vertexPosData[ 6] = Vec4( 1, -1, 0.0f, 0.0f) * scale + offset;
107 m_vertexPosData[ 7] = Vec4( 2, 1, 0.0f, 0.0f) * scale + offset;
108 m_vertexPosData[ 8] = Vec4( 2, 0, 0.0f, 0.0f) * scale
[all...]
/external/skia/src/core/
H A DSkUnPreMultiply.cpp12 const Scale scale = GetScale(a); local
14 ApplyScale(scale, SkGetPackedR32(c)),
15 ApplyScale(scale, SkGetPackedG32(c)),
16 ApplyScale(scale, SkGetPackedB32(c)));
21 const Scale scale = GetScale(a); local
23 ApplyScale(scale, SkGetPackedR32(c)),
24 ApplyScale(scale, SkGetPackedG32(c)),
25 ApplyScale(scale, SkGetPackedB32(c)));
66 uint32_t scale; local
69 scale
[all...]
/external/skqp/src/core/
H A DSkUnPreMultiply.cpp12 const Scale scale = GetScale(a); local
14 ApplyScale(scale, SkGetPackedR32(c)),
15 ApplyScale(scale, SkGetPackedG32(c)),
16 ApplyScale(scale, SkGetPackedB32(c)));
21 const Scale scale = GetScale(a); local
23 ApplyScale(scale, SkGetPackedR32(c)),
24 ApplyScale(scale, SkGetPackedG32(c)),
25 ApplyScale(scale, SkGetPackedB32(c)));
66 uint32_t scale; local
69 scale
[all...]

Completed in 1880 milliseconds

1234567891011>>