Lines Matching refs:data

46     data[kScaleX] = 1.0f;  in loadIdentity()
47 data[kSkewY] = 0.0f; in loadIdentity()
48 data[2] = 0.0f; in loadIdentity()
49 data[kPerspective0] = 0.0f; in loadIdentity()
51 data[kSkewX] = 0.0f; in loadIdentity()
52 data[kScaleY] = 1.0f; in loadIdentity()
53 data[6] = 0.0f; in loadIdentity()
54 data[kPerspective1] = 0.0f; in loadIdentity()
56 data[8] = 0.0f; in loadIdentity()
57 data[9] = 0.0f; in loadIdentity()
58 data[kScaleZ] = 1.0f; in loadIdentity()
59 data[11] = 0.0f; in loadIdentity()
61 data[kTranslateX] = 0.0f; in loadIdentity()
62 data[kTranslateY] = 0.0f; in loadIdentity()
63 data[kTranslateZ] = 0.0f; in loadIdentity()
64 data[kPerspective2] = 1.0f; in loadIdentity()
77 if (data[kPerspective0] != 0.0f || data[kPerspective1] != 0.0f || in getType()
78 data[kPerspective2] != 1.0f) { in getType()
82 if (data[kTranslateX] != 0.0f || data[kTranslateY] != 0.0f) { in getType()
86 float m00 = data[kScaleX]; in getType()
87 float m01 = data[kSkewX]; in getType()
88 float m10 = data[kSkewY]; in getType()
89 float m11 = data[kScaleY]; in getType()
90 float m32 = data[kTranslateZ]; in getType()
125 return (data[kScaleX] > 0.0f && data[kScaleY] > 0.0f); in positiveScale()
135 return getGeometryType() <= kTypeTranslate && (data[kTranslateZ] == 0.0f); in isPureTranslate()
139 return getGeometryType() <= (kTypeScale | kTypeTranslate) && (data[kTranslateZ] == 0.0f); in isSimple()
151 memcpy(data, v, sizeof(data)); in load()
156 memset(data, 0, sizeof(data)); in load()
158 data[kScaleX] = v[SkMatrix::kMScaleX]; in load()
159 data[kSkewX] = v[SkMatrix::kMSkewX]; in load()
160 data[kTranslateX] = v[SkMatrix::kMTransX]; in load()
162 data[kSkewY] = v[SkMatrix::kMSkewY]; in load()
163 data[kScaleY] = v[SkMatrix::kMScaleY]; in load()
164 data[kTranslateY] = v[SkMatrix::kMTransY]; in load()
166 data[kPerspective0] = v[SkMatrix::kMPersp0]; in load()
167 data[kPerspective1] = v[SkMatrix::kMPersp1]; in load()
168 data[kPerspective2] = v[SkMatrix::kMPersp2]; in load()
170 data[kScaleZ] = 1.0f; in load()
185 v.set(SkMatrix::kMScaleX, data[kScaleX]); in copyTo()
186 v.set(SkMatrix::kMSkewX, data[kSkewX]); in copyTo()
187 v.set(SkMatrix::kMTransX, data[kTranslateX]); in copyTo()
189 v.set(SkMatrix::kMSkewY, data[kSkewY]); in copyTo()
190 v.set(SkMatrix::kMScaleY, data[kScaleY]); in copyTo()
191 v.set(SkMatrix::kMTransY, data[kTranslateY]); in copyTo()
193 v.set(SkMatrix::kMPersp0, data[kPerspective0]); in copyTo()
194 v.set(SkMatrix::kMPersp1, data[kPerspective1]); in copyTo()
195 v.set(SkMatrix::kMPersp2, data[kPerspective2]); in copyTo()
204 data[kScaleX] = 1.0f; in loadInverse()
205 data[kSkewX] = 0.0f; in loadInverse()
207 data[kScaleY] = 1.0f; in loadInverse()
208 data[kSkewY] = 0.0f; in loadInverse()
210 data[kScaleZ] = 1.0f; in loadInverse()
212 data[kPerspective0] = 0.0f; in loadInverse()
213 data[kPerspective1] = 0.0f; in loadInverse()
214 data[kPerspective2] = 1.0f; in loadInverse()
218 data[kTranslateX] = -v.data[kTranslateX]; in loadInverse()
219 data[kTranslateY] = -v.data[kTranslateY]; in loadInverse()
220 data[kTranslateZ] = 0.0f; in loadInverse()
227 double scale = 1.0 / (v.data[kScaleX] * ((double)v.data[kScaleY] * v.data[kPerspective2] - in loadInverse()
228 (double)v.data[kTranslateY] * v.data[kPerspective1]) + in loadInverse()
229 v.data[kSkewX] * ((double)v.data[kTranslateY] * v.data[kPerspective0] - in loadInverse()
230 (double)v.data[kSkewY] * v.data[kPerspective2]) + in loadInverse()
231 v.data[kTranslateX] * ((double)v.data[kSkewY] * v.data[kPerspective1] - in loadInverse()
232 (double)v.data[kScaleY] * v.data[kPerspective0])); in loadInverse()
234 data[kScaleX] = (v.data[kScaleY] * v.data[kPerspective2] - in loadInverse()
235 v.data[kTranslateY] * v.data[kPerspective1]) * in loadInverse()
237 data[kSkewX] = in loadInverse()
238 (v.data[kTranslateX] * v.data[kPerspective1] - v.data[kSkewX] * v.data[kPerspective2]) * in loadInverse()
240 data[kTranslateX] = in loadInverse()
241 (v.data[kSkewX] * v.data[kTranslateY] - v.data[kTranslateX] * v.data[kScaleY]) * scale; in loadInverse()
243 data[kSkewY] = in loadInverse()
244 (v.data[kTranslateY] * v.data[kPerspective0] - v.data[kSkewY] * v.data[kPerspective2]) * in loadInverse()
246 data[kScaleY] = (v.data[kScaleX] * v.data[kPerspective2] - in loadInverse()
247 v.data[kTranslateX] * v.data[kPerspective0]) * in loadInverse()
249 data[kTranslateY] = in loadInverse()
250 (v.data[kTranslateX] * v.data[kSkewY] - v.data[kScaleX] * v.data[kTranslateY]) * scale; in loadInverse()
252 data[kPerspective0] = in loadInverse()
253 (v.data[kSkewY] * v.data[kPerspective1] - v.data[kScaleY] * v.data[kPerspective0]) * in loadInverse()
255 data[kPerspective1] = in loadInverse()
256 (v.data[kSkewX] * v.data[kPerspective0] - v.data[kScaleX] * v.data[kPerspective1]) * in loadInverse()
258 data[kPerspective2] = in loadInverse()
259 (v.data[kScaleX] * v.data[kScaleY] - v.data[kSkewX] * v.data[kSkewY]) * scale; in loadInverse()
265 memcpy(v, data, sizeof(data)); in copyTo()
269 return data[kTranslateX]; in getTranslateX()
273 return data[kTranslateY]; in getTranslateY()
278 data[i] *= v; in multiply()
286 data[kTranslateX] = x; in loadTranslate()
287 data[kTranslateY] = y; in loadTranslate()
288 data[kTranslateZ] = z; in loadTranslate()
296 data[kScaleX] = sx; in loadScale()
297 data[kScaleY] = sy; in loadScale()
298 data[kScaleZ] = sz; in loadScale()
306 data[kScaleX] = 1.0f; in loadSkew()
307 data[kSkewX] = sx; in loadSkew()
308 data[kTranslateX] = 0.0f; in loadSkew()
310 data[kSkewY] = sy; in loadSkew()
311 data[kScaleY] = 1.0f; in loadSkew()
312 data[kTranslateY] = 0.0f; in loadSkew()
314 data[kPerspective0] = 0.0f; in loadSkew()
315 data[kPerspective1] = 0.0f; in loadSkew()
316 data[kPerspective2] = 1.0f; in loadSkew()
328 data[kScaleX] = c; in loadRotate()
329 data[kSkewX] = -s; in loadRotate()
331 data[kSkewY] = s; in loadRotate()
332 data[kScaleY] = c; in loadRotate()
338 data[kPerspective0] = 0.0f; in loadRotate()
339 data[kPerspective1] = 0.0f; in loadRotate()
340 data[11] = 0.0f; in loadRotate()
341 data[kTranslateX] = 0.0f; in loadRotate()
342 data[kTranslateY] = 0.0f; in loadRotate()
343 data[kTranslateZ] = 0.0f; in loadRotate()
344 data[kPerspective2] = 1.0f; in loadRotate()
364 data[kScaleX] = x * x * nc + c; in loadRotate()
365 data[kSkewX] = xy * nc - zs; in loadRotate()
366 data[8] = zx * nc + ys; in loadRotate()
367 data[kSkewY] = xy * nc + zs; in loadRotate()
368 data[kScaleY] = y * y * nc + c; in loadRotate()
369 data[9] = yz * nc - xs; in loadRotate()
370 data[2] = zx * nc - ys; in loadRotate()
371 data[6] = yz * nc + xs; in loadRotate()
372 data[kScaleZ] = z * z * nc + c; in loadRotate()
404 data[kScaleX] = 2.0f / (right - left); in loadOrtho()
405 data[kScaleY] = 2.0f / (top - bottom); in loadOrtho()
406 data[kScaleZ] = -2.0f / (far - near); in loadOrtho()
407 data[kTranslateX] = -(right + left) / (right - left); in loadOrtho()
408 data[kTranslateY] = -(top + bottom) / (top - bottom); in loadOrtho()
409 data[kTranslateZ] = -(far + near) / (far - near); in loadOrtho()
416 return orig.x * data[2] + orig.y * data[6] + orig.z * data[kScaleZ] + data[kTranslateZ]; in mapZ()
422 vec.x = orig.x * data[kScaleX] + orig.y * data[kSkewX] + orig.z * data[8] + data[kTranslateX]; in mapPoint3d()
423 vec.y = orig.x * data[kSkewY] + orig.y * data[kScaleY] + orig.z * data[9] + data[kTranslateY]; in mapPoint3d()
424 vec.z = orig.x * data[2] + orig.y * data[6] + orig.z * data[kScaleZ] + data[kTranslateZ]; in mapPoint3d()
431 MUL_ADD_STORE(x, data[kScaleX], data[kTranslateX]); in mapPoint()
432 MUL_ADD_STORE(y, data[kScaleY], data[kTranslateY]); in mapPoint()
436 float dx = x * data[kScaleX] + y * data[kSkewX] + data[kTranslateX]; in mapPoint()
437 float dy = x * data[kSkewY] + y * data[kScaleY] + data[kTranslateY]; in mapPoint()
438 float dz = x * data[kPerspective0] + y * data[kPerspective1] + data[kPerspective2]; in mapPoint()
457 MUL_ADD_STORE(r.left, data[kScaleX], data[kTranslateX]); in mapRect()
458 MUL_ADD_STORE(r.right, data[kScaleX], data[kTranslateX]); in mapRect()
459 MUL_ADD_STORE(r.top, data[kScaleY], data[kTranslateY]); in mapRect()
460 MUL_ADD_STORE(r.bottom, data[kScaleY], data[kTranslateY]); in mapRect()
485 x = px * data[kScaleX] + py * data[kSkewX] + data[kTranslateX]; in mapRect()
486 y = px * data[kSkewY] + py * data[kScaleY] + data[kTranslateY]; in mapRect()
487 z = px * data[kPerspective0] + py * data[kPerspective1] + data[kPerspective2]; in mapRect()
514 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX]; in decomposeScale()
515 sx = copysignf(sqrtf(len), data[mat4::kScaleX]); in decomposeScale()
516 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY]; in decomposeScale()
517 sy = copysignf(sqrtf(len), data[mat4::kScaleY]); in decomposeScale()
522 ALOGD(" %f %f %f %f", data[kScaleX], data[kSkewX], data[8], data[kTranslateX]); in dump()
523 ALOGD(" %f %f %f %f", data[kSkewY], data[kScaleY], data[9], data[kTranslateY]); in dump()
524 ALOGD(" %f %f %f %f", data[2], data[6], data[kScaleZ], data[kTranslateZ]); in dump()
525 ALOGD(" %f %f %f %f", data[kPerspective0], data[kPerspective1], data[11], data[kPerspective2]); in dump()