Home | History | Annotate | Download | only in hwui

Lines Matching refs:data

48     data[kScaleX]       = 1.0f;
49 data[kSkewY] = 0.0f;
50 data[2] = 0.0f;
51 data[kPerspective0] = 0.0f;
53 data[kSkewX] = 0.0f;
54 data[kScaleY] = 1.0f;
55 data[6] = 0.0f;
56 data[kPerspective1] = 0.0f;
58 data[8] = 0.0f;
59 data[9] = 0.0f;
60 data[kScaleZ] = 1.0f;
61 data[11] = 0.0f;
63 data[kTranslateX] = 0.0f;
64 data[kTranslateY] = 0.0f;
65 data[kTranslateZ] = 0.0f;
66 data[kPerspective2] = 1.0f;
79 if (data[kPerspective0] != 0.0f || data[kPerspective1] != 0.0f ||
80 data[kPerspective2] != 1.0f) {
84 if (data[kTranslateX] != 0.0f || data[kTranslateY] != 0.0f) {
88 float m00 = data[kScaleX];
89 float m01 = data[kSkewX];
90 float m10 = data[kSkewY];
91 float m11 = data[kScaleY];
126 return (data[kScaleX] > 0.0f && data[kScaleY] > 0.0f);
150 memcpy(data, v, sizeof(data));
155 memcpy(data, v.data, sizeof(data));
160 memset(data, 0, sizeof(data));
162 data[kScaleX] = v[SkMatrix::kMScaleX];
163 data[kSkewX] = v[SkMatrix::kMSkewX];
164 data[kTranslateX] = v[SkMatrix::kMTransX];
166 data[kSkewY] = v[SkMatrix::kMSkewY];
167 data[kScaleY] = v[SkMatrix::kMScaleY];
168 data[kTranslateY] = v[SkMatrix::kMTransY];
170 data[kPerspective0] = v[SkMatrix::kMPersp0];
171 data[kPerspective1] = v[SkMatrix::kMPersp1];
172 data[kPerspective2] = v[SkMatrix::kMPersp2];
174 data[kScaleZ] = 1.0f;
189 v.set(SkMatrix::kMScaleX, data[kScaleX]);
190 v.set(SkMatrix::kMSkewX, data[kSkewX]);
191 v.set(SkMatrix::kMTransX, data[kTranslateX]);
193 v.set(SkMatrix::kMSkewY, data[kSkewY]);
194 v.set(SkMatrix::kMScaleY, data[kScaleY]);
195 v.set(SkMatrix::kMTransY, data[kTranslateY]);
197 v.set(SkMatrix::kMPersp0, data[kPerspective0]);
198 v.set(SkMatrix::kMPersp1, data[kPerspective1]);
199 v.set(SkMatrix::kMPersp2, data[kPerspective2]);
204 (v.data[kScaleX] * ((double) v.data[kScaleY] * v.data[kPerspective2] -
205 (double) v.data[kTranslateY] * v.data[kPerspective1]) +
206 v.data[kSkewX] * ((double) v.data[kTranslateY] * v.data[kPerspective0] -
207 (double) v.data[kSkewY] * v.data[kPerspective2]) +
208 v.data[kTranslateX] * ((double) v.data[kSkewY] * v.data[kPerspective1] -
209 (double) v.data[kScaleY] * v.data[kPerspective0]));
211 data[kScaleX] = (v.data[kScaleY] * v.data[kPerspective2] -
212 v.data[kTranslateY] * v.data[kPerspective1]) * scale;
213 data[kSkewX] = (v.data[kTranslateX] * v.data[kPerspective1] -
214 v.data[kSkewX] * v.data[kPerspective2]) * scale;
215 data[kTranslateX] = (v.data[kSkewX] * v.data[kTranslateY] -
216 v.data[kTranslateX] * v.data[kScaleY]) * scale;
218 data[kSkewY] = (v.data[kTranslateY] * v.data[kPerspective0] -
219 v.data[kSkewY] * v.data[kPerspective2]) * scale;
220 data[kScaleY] = (v.data[kScaleX] * v.data[kPerspective2] -
221 v.data[kTranslateX] * v.data[kPerspective0]) * scale;
222 data[kTranslateY] = (v.data[kTranslateX] * v.data[kSkewY] -
223 v.data[kScaleX] * v.data[kTranslateY]) * scale;
225 data[kPerspective0] = (v.data[kSkewY] * v.data[kPerspective1] -
226 v.data[kScaleY] * v.data[kPerspective0]) * scale;
227 data[kPerspective1] = (v.data[kSkewX] * v.data[kPerspective0] -
228 v.data[kScaleX] * v.data[kPerspective1]) * scale;
229 data[kPerspective2] = (v.data[kScaleX] * v.data[kScaleY] -
230 v.data[kSkewX] * v.data[kSkewY]) * scale;
236 memcpy(v, data, sizeof(data));
240 return data[kTranslateX];
244 return data[kTranslateY];
249 data[i] *= v;
257 data[kTranslateX] = x;
258 data[kTranslateY] = y;
259 data[kTranslateZ] = z;
267 data[kScaleX] = sx;
268 data[kScaleY] = sy;
269 data[kScaleZ] = sz;
277 data[kScaleX] = 1.0f;
278 data[kSkewX] = sx;
279 data[kTranslateX] = 0.0f;
281 data[kSkewY] = sy;
282 data[kScaleY] = 1.0f;
283 data[kTranslateY] = 0.0f;
285 data[kPerspective0] = 0.0f;
286 data[kPerspective1] = 0.0f;
287 data[kPerspective2] = 1.0f;
299 data[kScaleX] = c;
300 data[kSkewX] = -s;
302 data[kSkewY] = s;
303 data[kScaleY] = c;
309 data[kPerspective0] = 0.0f;
310 data[kPerspective1] = 0.0f;
311 data[11] = 0.0f;
312 data[kTranslateX] = 0.0f;
313 data[kTranslateY] = 0.0f;
314 data[kTranslateZ] = 0.0f;
315 data[kPerspective2] = 1.0f;
335 data[kScaleX] = x * x * nc + c;
336 data[kSkewX] = xy * nc - zs;
337 data[8] = zx * nc + ys;
338 data[kSkewY] = xy * nc + zs;
339 data[kScaleY] = y * y * nc + c;
340 data[9] = yz * nc - xs;
341 data[2] = zx * nc - ys;
342 data[6] = yz * nc + xs;
343 data[kScaleZ] = z * z * nc + c;
375 data[kScaleX] = 2.0f / (right - left);
376 data[kScaleY] = 2.0f / (top - bottom);
377 data[kScaleZ] = -2.0f / (far - near);
378 data[kTranslateX] = -(right + left) / (right - left);
379 data[kTranslateY] = -(top + bottom) / (top - bottom);
380 data[kTranslateZ] = -(far + near) / (far - near);
389 MUL_ADD_STORE(x, data[kScaleX], data[kTranslateX]);
390 MUL_ADD_STORE(y, data[kScaleY], data[kTranslateY]);
394 float dx = x * data[kScaleX] + y * data[kSkewX] + data[kTranslateX];
395 float dy = x * data[kSkewY] + y * data[kScaleY] + data[kTranslateY];
396 float dz = x * data[kPerspective0] + y * data[kPerspective1] + data[kPerspective2];
405 MUL_ADD_STORE(r.left, data[kScaleX], data[kTranslateX]);
406 MUL_ADD_STORE(r.right, data[kScaleX], data[kTranslateX]);
407 MUL_ADD_STORE(r.top, data[kScaleY], data[kTranslateY]);
408 MUL_ADD_STORE(r.bottom, data[kScaleY], data[kTranslateY]);
438 x = px * data[kScaleX] + py * data[kSkewX] + data[kTranslateX];
439 y = px * data[kSkewY] + py * data[kScaleY] + data[kTranslateY];
440 z = px * data[kPerspective0] + py * data[kPerspective1] + data[kPerspective2];
463 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX];
464 sx = copysignf(sqrtf(len), data[mat4::kScaleX]);
465 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY];
466 sy = copysignf(sqrtf(len), data[mat4::kScaleY]);
471 ALOGD(" %f %f %f %f", data[kScaleX], data[kSkewX], data[8], data[kTranslateX]);
472 ALOGD(" %f %f %f %f", data[kSkewY], data[kScaleY], data[9], data[kTranslateY]);
473 ALOGD(" %f %f %f %f", data[2], data[6], data[kScaleZ], data[kTranslateZ]);
474 ALOGD(" %f %f %f %f", data[kPerspective0], data[kPerspective1], data[11], data[kPerspective2]);