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);
890 void Blend::ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx)
894 inv33d(trs, inv_trs);
1072 void Blend::MosaicToFrame(double trs[3][3], double x, double y, double &wx, double &wy)
1100 z = ProjZ(trs, X, Y, 1.0);
1101 wx = ProjX(trs, X, Y, z, 1.0);
1102 wy = ProjY(trs, X, Y, z, 1.0);
1105 void Blend::FrameToMosaic(double trs[3][3], double x, double y, double &wx, double &wy)
1108 double z = ProjZ(trs, x, y, 1.0);
1109 double X = ProjX(trs, x, y, z, 1.0);
1110 double Y = ProjY(trs, x, y, z, 1.0);
1185 void Blend::FrameToMosaicRect(int width, int height, double trs[3][3], BlendRect &brect)
1198 FrameToMosaic(trs, (double) i, 0.0, xpos, ypos);
1200 FrameToMosaic(trs, (double) i, lasty, xpos, ypos);
1205 FrameToMosaic(trs, 0.0, (double) i, xpos, ypos);
1207 FrameToMosaic(trs, lastx, (double) i, xpos, ypos);
1219 double fxpos = first->trs[0][2], fypos = first->trs[1][2];
1223 double z = ProjZ(first->trs, midX, midY, 1.0);
1225 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0);
1226 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0);
1235 z = ProjZ(mb->trs, midX, midY, 1.0);
1236 currX = ProjX(mb->trs, midX, midY, z, 1.0);
1237 currY = ProjY(mb->trs, midX, midY, z, 1.0);
1272 double lxpos = last->trs[0][2], lypos = last->trs[1][2];
1273 double fxpos = first->trs[0][2], fypos = first->trs[1][2];
1279 double z = ProjZ(first->trs, midX, midY, 1.0);
1281 double prevX = firstX = ProjX(first->trs, midX, midY, z, 1.0);
1282 double prevY = firstY = ProjY(first->trs, midX, midY, z, 1.0);
1293 z = ProjZ(mb->trs, midX, midY, 1.0);
1294 currX = ProjX(mb->trs, midX, midY, z, 1.0);
1295 currY = ProjY(mb->trs, midX, midY, z, 1.0);
1305 double thisTheta = asin(mb->trs[1][0]);
1318 if (is360) m_wb.theta = asin(last->trs[1][0]);
1355 z = ProjZ(last->trs, 0.0, midY, 1.0);
1356 prevX = ProjX(last->trs, 0.0, midY, z, 1.0);
1357 prevY = ProjY(last->trs, 0.0, midY, z, 1.0);
1362 z = ProjZ(last->trs, last->width - 1.0, midY, 1.0);
1363 prevX = ProjX(last->trs, last->width - 1.0, midY, z, 1.0);
1364 prevY = ProjY(last->trs, last->width - 1.0, midY, z, 1.0);
1382 z = ProjZ(last->trs, midX, 0.0, 1.0);
1383 prevX = ProjX(last->trs, midX, 0.0, z, 1.0);
1384 prevY = ProjY(last->trs, midX, 0.0, z, 1.0);
1389 z = ProjZ(last->trs, midX, last->height - 1.0, 1.0);
1390 prevX = ProjX(last->trs, midX, last->height - 1.0, z, 1.0);
1391 prevY = ProjY(last->trs, midX, last->height - 1.0, z, 1.0);