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()
228 (v.data[kScaleX] * ((double) v.data[kScaleY] * v.data[kPerspective2] - in loadInverse()
229 (double) v.data[kTranslateY] * v.data[kPerspective1]) + in loadInverse()
230 v.data[kSkewX] * ((double) v.data[kTranslateY] * v.data[kPerspective0] - in loadInverse()
231 (double) v.data[kSkewY] * v.data[kPerspective2]) + in loadInverse()
232 v.data[kTranslateX] * ((double) v.data[kSkewY] * v.data[kPerspective1] - in loadInverse()
233 (double) v.data[kScaleY] * v.data[kPerspective0])); in loadInverse()
235 data[kScaleX] = (v.data[kScaleY] * v.data[kPerspective2] - in loadInverse()
236 v.data[kTranslateY] * v.data[kPerspective1]) * scale; in loadInverse()
237 data[kSkewX] = (v.data[kTranslateX] * v.data[kPerspective1] - in loadInverse()
238 v.data[kSkewX] * v.data[kPerspective2]) * scale; in loadInverse()
239 data[kTranslateX] = (v.data[kSkewX] * v.data[kTranslateY] - in loadInverse()
240 v.data[kTranslateX] * v.data[kScaleY]) * scale; in loadInverse()
242 data[kSkewY] = (v.data[kTranslateY] * v.data[kPerspective0] - in loadInverse()
243 v.data[kSkewY] * v.data[kPerspective2]) * scale; in loadInverse()
244 data[kScaleY] = (v.data[kScaleX] * v.data[kPerspective2] - in loadInverse()
245 v.data[kTranslateX] * v.data[kPerspective0]) * scale; in loadInverse()
246 data[kTranslateY] = (v.data[kTranslateX] * v.data[kSkewY] - in loadInverse()
247 v.data[kScaleX] * v.data[kTranslateY]) * scale; in loadInverse()
249 data[kPerspective0] = (v.data[kSkewY] * v.data[kPerspective1] - in loadInverse()
250 v.data[kScaleY] * v.data[kPerspective0]) * scale; in loadInverse()
251 data[kPerspective1] = (v.data[kSkewX] * v.data[kPerspective0] - in loadInverse()
252 v.data[kScaleX] * v.data[kPerspective1]) * scale; in loadInverse()
253 data[kPerspective2] = (v.data[kScaleX] * v.data[kScaleY] - in loadInverse()
254 v.data[kSkewX] * v.data[kSkewY]) * scale; in loadInverse()
260 memcpy(v, data, sizeof(data)); in copyTo()
264 return data[kTranslateX]; in getTranslateX()
268 return data[kTranslateY]; in getTranslateY()
273 data[i] *= v; in multiply()
281 data[kTranslateX] = x; in loadTranslate()
282 data[kTranslateY] = y; in loadTranslate()
283 data[kTranslateZ] = z; in loadTranslate()
291 data[kScaleX] = sx; in loadScale()
292 data[kScaleY] = sy; in loadScale()
293 data[kScaleZ] = sz; in loadScale()
301 data[kScaleX] = 1.0f; in loadSkew()
302 data[kSkewX] = sx; in loadSkew()
303 data[kTranslateX] = 0.0f; in loadSkew()
305 data[kSkewY] = sy; in loadSkew()
306 data[kScaleY] = 1.0f; in loadSkew()
307 data[kTranslateY] = 0.0f; in loadSkew()
309 data[kPerspective0] = 0.0f; in loadSkew()
310 data[kPerspective1] = 0.0f; in loadSkew()
311 data[kPerspective2] = 1.0f; in loadSkew()
323 data[kScaleX] = c; in loadRotate()
324 data[kSkewX] = -s; in loadRotate()
326 data[kSkewY] = s; in loadRotate()
327 data[kScaleY] = c; in loadRotate()
333 data[kPerspective0] = 0.0f; in loadRotate()
334 data[kPerspective1] = 0.0f; in loadRotate()
335 data[11] = 0.0f; in loadRotate()
336 data[kTranslateX] = 0.0f; in loadRotate()
337 data[kTranslateY] = 0.0f; in loadRotate()
338 data[kTranslateZ] = 0.0f; in loadRotate()
339 data[kPerspective2] = 1.0f; in loadRotate()
359 data[kScaleX] = x * x * nc + c; in loadRotate()
360 data[kSkewX] = xy * nc - zs; in loadRotate()
361 data[8] = zx * nc + ys; in loadRotate()
362 data[kSkewY] = xy * nc + zs; in loadRotate()
363 data[kScaleY] = y * y * nc + c; in loadRotate()
364 data[9] = yz * nc - xs; in loadRotate()
365 data[2] = zx * nc - ys; in loadRotate()
366 data[6] = yz * nc + xs; in loadRotate()
367 data[kScaleZ] = z * z * nc + c; in loadRotate()
399 data[kScaleX] = 2.0f / (right - left); in loadOrtho()
400 data[kScaleY] = 2.0f / (top - bottom); in loadOrtho()
401 data[kScaleZ] = -2.0f / (far - near); in loadOrtho()
402 data[kTranslateX] = -(right + left) / (right - left); in loadOrtho()
403 data[kTranslateY] = -(top + bottom) / (top - bottom); in loadOrtho()
404 data[kTranslateZ] = -(far + near) / (far - near); in loadOrtho()
411 return orig.x * data[2] + orig.y * data[6] + orig.z * data[kScaleZ] + data[kTranslateZ]; in mapZ()
417 vec.x = orig.x * data[kScaleX] + orig.y * data[kSkewX] + orig.z * data[8] + data[kTranslateX]; in mapPoint3d()
418 vec.y = orig.x * data[kSkewY] + orig.y * data[kScaleY] + orig.z * data[9] + data[kTranslateY]; in mapPoint3d()
419 vec.z = orig.x * data[2] + orig.y * data[6] + orig.z * data[kScaleZ] + data[kTranslateZ]; in mapPoint3d()
426 MUL_ADD_STORE(x, data[kScaleX], data[kTranslateX]); in mapPoint()
427 MUL_ADD_STORE(y, data[kScaleY], data[kTranslateY]); in mapPoint()
431 float dx = x * data[kScaleX] + y * data[kSkewX] + data[kTranslateX]; in mapPoint()
432 float dy = x * data[kSkewY] + y * data[kScaleY] + data[kTranslateY]; in mapPoint()
433 float dz = x * data[kPerspective0] + y * data[kPerspective1] + data[kPerspective2]; in mapPoint()
452 MUL_ADD_STORE(r.left, data[kScaleX], data[kTranslateX]); in mapRect()
453 MUL_ADD_STORE(r.right, data[kScaleX], data[kTranslateX]); in mapRect()
454 MUL_ADD_STORE(r.top, data[kScaleY], data[kTranslateY]); in mapRect()
455 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()
510 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX]; in decomposeScale()
511 sx = copysignf(sqrtf(len), data[mat4::kScaleX]); in decomposeScale()
512 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY]; in decomposeScale()
513 sy = copysignf(sqrtf(len), data[mat4::kScaleY]); in decomposeScale()
518 ALOGD(" %f %f %f %f", data[kScaleX], data[kSkewX], data[8], data[kTranslateX]); in dump()
519 ALOGD(" %f %f %f %f", data[kSkewY], data[kScaleY], data[9], data[kTranslateY]); in dump()
520 ALOGD(" %f %f %f %f", data[2], data[6], data[kScaleZ], data[kTranslateZ]); in dump()
521 ALOGD(" %f %f %f %f", data[kPerspective0], data[kPerspective1], data[11], data[kPerspective2]); in dump()