Lines Matching refs:trs
87 inv33d(ref->trs, invtrs);
93 mult33d(temp, invtrs, mb->trs);
94 memcpy(mb->trs, temp, sizeof(temp));
95 normProjMat33d(mb->trs);
164 FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect);
169 FrameToMosaic(mb->trs, 0.0, 0.0, x0, y0);
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2);
172 FrameToMosaic(mb->trs, mb->width-1.0, 0.0, x3, y3);
571 ProcessPyramidForThisFrame(csite, mb->vcrect, mb->brect, rect, imgMos, mb->trs, site_idx);
870 void Blend::ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx)
874 inv33d(trs, inv_trs);
1052 void Blend::MosaicToFrame(double trs[3][3], double x, double y, double &wx, double &wy)
1080 z = ProjZ(trs, X, Y, 1.0);
1081 wx = ProjX(trs, X, Y, z, 1.0);
1082 wy = ProjY(trs, X, Y, z, 1.0);
1085 void Blend::FrameToMosaic(double trs[3][3], double x, double y, double &wx, double &wy)
1088 double z = ProjZ(trs, x, y, 1.0);
1089 double X = ProjX(trs, x, y, z, 1.0);
1090 double Y = ProjY(trs, x, y, z, 1.0);
1165 void Blend::FrameToMosaicRect(int width, int height, double trs[3][3], BlendRect &brect)
1178 FrameToMosaic(trs, (double) i, 0.0, xpos, ypos);
1180 FrameToMosaic(trs, (double) i, lasty, xpos, ypos);
1185 FrameToMosaic(trs, 0.0, (double) i, xpos, ypos);
1187 FrameToMosaic(trs, lastx, (double) i, xpos, ypos);
1199 double fxpos = first->trs[0][2], fypos = first->trs[1][2];
1203 double z = ProjZ(first->trs, midX, midY, 1.0);
1205 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0);
1206 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0);
1215 z = ProjZ(mb->trs, midX, midY, 1.0);
1216 currX = ProjX(mb->trs, midX, midY, z, 1.0);
1217 currY = ProjY(mb->trs, midX, midY, z, 1.0);
1252 double lxpos = last->trs[0][2], lypos = last->trs[1][2];
1253 double fxpos = first->trs[0][2], fypos = first->trs[1][2];
1259 double z = ProjZ(first->trs, midX, midY, 1.0);
1261 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0);
1262 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0);
1273 z = ProjZ(mb->trs, midX, midY, 1.0);
1274 currX = ProjX(mb->trs, midX, midY, z, 1.0);
1275 currY = ProjY(mb->trs, midX, midY, z, 1.0);
1285 double thisTheta = asin(mb->trs[1][0]);
1298 if (is360) m_wb.theta = asin(last->trs[1][0]);
1335 z = ProjZ(last->trs, 0.0, midY, 1.0);
1336 prevX = ProjX(last->trs, 0.0, midY, z, 1.0);
1337 prevY = ProjY(last->trs, 0.0, midY, z, 1.0);
1342 z = ProjZ(last->trs, last->width - 1.0, midY, 1.0);
1343 prevX = ProjX(last->trs, last->width - 1.0, midY, z, 1.0);
1344 prevY = ProjY(last->trs, last->width - 1.0, midY, z, 1.0);
1362 z = ProjZ(last->trs, midX, 0.0, 1.0);
1363 prevX = ProjX(last->trs, midX, 0.0, z, 1.0);
1364 prevY = ProjY(last->trs, midX, 0.0, z, 1.0);
1369 z = ProjZ(last->trs, midX, last->height - 1.0, 1.0);
1370 prevX = ProjX(last->trs, midX, last->height - 1.0, z, 1.0);
1371 prevY = ProjY(last->trs, midX, last->height - 1.0, z, 1.0);