Lines Matching full: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];
146 memcpy(data, v, sizeof(data));
151 memcpy(data, v.data, sizeof(data));
156 memset(data, 0, sizeof(data));
158 data[kScaleX] = v[SkMatrix::kMScaleX];
159 data[kSkewX] = v[SkMatrix::kMSkewX];
160 data[kTranslateX] = v[SkMatrix::kMTransX];
162 data[kSkewY] = v[SkMatrix::kMSkewY];
163 data[kScaleY] = v[SkMatrix::kMScaleY];
164 data[kTranslateY] = v[SkMatrix::kMTransY];
166 data[kPerspective0] = v[SkMatrix::kMPersp0];
167 data[kPerspective1] = v[SkMatrix::kMPersp1];
168 data[kPerspective2] = v[SkMatrix::kMPersp2];
170 data[kScaleZ] = 1.0f;
185 v.set(SkMatrix::kMScaleX, data[kScaleX]);
186 v.set(SkMatrix::kMSkewX, data[kSkewX]);
187 v.set(SkMatrix::kMTransX, data[kTranslateX]);
189 v.set(SkMatrix::kMSkewY, data[kSkewY]);
190 v.set(SkMatrix::kMScaleY, data[kScaleY]);
191 v.set(SkMatrix::kMTransY, data[kTranslateY]);
193 v.set(SkMatrix::kMPersp0, data[kPerspective0]);
194 v.set(SkMatrix::kMPersp1, data[kPerspective1]);
195 v.set(SkMatrix::kMPersp2, data[kPerspective2]);
200 (v.data[kScaleX] * ((double) v.data[kScaleY] * v.data[kPerspective2] -
201 (double) v.data[kTranslateY] * v.data[kPerspective1]) +
202 v.data[kSkewX] * ((double) v.data[kTranslateY] * v.data[kPerspective0] -
203 (double) v.data[kSkewY] * v.data[kPerspective2]) +
204 v.data[kTranslateX] * ((double) v.data[kSkewY] * v.data[kPerspective1] -
205 (double) v.data[kScaleY] * v.data[kPerspective0]));
207 data[kScaleX] = (v.data[kScaleY] * v.data[kPerspective2] -
208 v.data[kTranslateY] * v.data[kPerspective1]) * scale;
209 data[kSkewX] = (v.data[kTranslateX] * v.data[kPerspective1] -
210 v.data[kSkewX] * v.data[kPerspective2]) * scale;
211 data[kTranslateX] = (v.data[kSkewX] * v.data[kTranslateY] -
212 v.data[kTranslateX] * v.data[kScaleY]) * scale;
214 data[kSkewY] = (v.data[kTranslateY] * v.data[kPerspective0] -
215 v.data[kSkewY] * v.data[kPerspective2]) * scale;
216 data[kScaleY] = (v.data[kScaleX] * v.data[kPerspective2] -
217 v.data[kTranslateX] * v.data[kPerspective0]) * scale;
218 data[kTranslateY] = (v.data[kTranslateX] * v.data[kSkewY] -
219 v.data[kScaleX] * v.data[kTranslateY]) * scale;
221 data[kPerspective0] = (v.data[kSkewY] * v.data[kPerspective1] -
222 v.data[kScaleY] * v.data[kPerspective0]) * scale;
223 data[kPerspective1] = (v.data[kSkewX] * v.data[kPerspective0] -
224 v.data[kScaleX] * v.data[kPerspective1]) * scale;
225 data[kPerspective2] = (v.data[kScaleX] * v.data[kScaleY] -
226 v.data[kSkewX] * v.data[kSkewY]) * scale;
232 memcpy(v, data, sizeof(data));
236 return data[kTranslateX];
240 return data[kTranslateY];
245 data[i] *= v;
253 data[kTranslateX] = x;
254 data[kTranslateY] = y;
255 data[kTranslateZ] = z;
263 data[kScaleX] = sx;
264 data[kScaleY] = sy;
265 data[kScaleZ] = sz;
273 data[kScaleX] = 1.0f;
274 data[kSkewX] = sx;
275 data[kTranslateX] = 0.0f;
277 data[kSkewY] = sy;
278 data[kScaleY] = 1.0f;
279 data[kTranslateY] = 0.0f;
281 data[kPerspective0] = 0.0f;
282 data[kPerspective1] = 0.0f;
283 data[kPerspective2] = 1.0f;
295 data[kScaleX] = c;
296 data[kSkewX] = -s;
298 data[kSkewY] = s;
299 data[kScaleY] = c;
305 data[kPerspective0] = 0.0f;
306 data[kPerspective1] = 0.0f;
307 data[11] = 0.0f;
308 data[kTranslateX] = 0.0f;
309 data[kTranslateY] = 0.0f;
310 data[kTranslateZ] = 0.0f;
311 data[kPerspective2] = 1.0f;
331 data[kScaleX] = x * x * nc + c;
332 data[kSkewX] = xy * nc - zs;
333 data[8] = zx * nc + ys;
334 data[kSkewY] = xy * nc + zs;
335 data[kScaleY] = y * y * nc + c;
336 data[9] = yz * nc - xs;
337 data[2] = zx * nc - ys;
338 data[6] = yz * nc + xs;
339 data[kScaleZ] = z * z * nc + c;
371 data[kScaleX] = 2.0f / (right - left);
372 data[kScaleY] = 2.0f / (top - bottom);
373 data[kScaleZ] = -2.0f / (far - near);
374 data[kTranslateX] = -(right + left) / (right - left);
375 data[kTranslateY] = -(top + bottom) / (top - bottom);
376 data[kTranslateZ] = -(far + near) / (far - near);
385 MUL_ADD_STORE(x, data[kScaleX], data[kTranslateX]);
386 MUL_ADD_STORE(y, data[kScaleY], data[kTranslateY]);
390 float dx = x * data[kScaleX] + y * data[kSkewX] + data[kTranslateX];
391 float dy = x * data[kSkewY] + y * data[kScaleY] + data[kTranslateY];
392 float dz = x * data[kPerspective0] + y * data[kPerspective1] + data[kPerspective2];
401 MUL_ADD_STORE(r.left, data[kScaleX], data[kTranslateX]);
402 MUL_ADD_STORE(r.right, data[kScaleX], data[kTranslateX]);
403 MUL_ADD_STORE(r.top, data[kScaleY], data[kTranslateY]);
404 MUL_ADD_STORE(r.bottom, data[kScaleY], data[kTranslateY]);
434 x = px * data[kScaleX] + py * data[kSkewX] + data[kTranslateX];
435 y = px * data[kSkewY] + py * data[kScaleY] + data[kTranslateY];
436 z = px * data[kPerspective0] + py * data[kPerspective1] + data[kPerspective2];
459 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX];
460 sx = copysignf(sqrtf(len), data[mat4::kScaleX]);
461 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY];
462 sy = copysignf(sqrtf(len), data[mat4::kScaleY]);
467 ALOGD(" %f %f %f %f", data[kScaleX], data[kSkewX], data[8], data[kTranslateX]);
468 ALOGD(" %f %f %f %f", data[kSkewY], data[kScaleY], data[9], data[kTranslateY]);
469 ALOGD(" %f %f %f %f", data[2], data[6], data[kScaleZ], data[kTranslateZ]);
470 ALOGD(" %f %f %f %f", data[kPerspective0], data[kPerspective1], data[11], data[kPerspective2]);