convert a matrix tmeta to a vector tmeta spanning the whole matrix by adjusting size, period, etc.
| 615 | |
| 616 | // convert a matrix tmeta to a vector tmeta spanning the whole matrix by adjusting size, period, etc. |
| 617 | void cMatrix::squashTimeMeta(double period) { |
| 618 | if (tmeta != NULL) { |
| 619 | tmeta[0].framePeriod = tmeta[0].period; |
| 620 | if (period != -1.0) |
| 621 | tmeta[0].period = period; |
| 622 | //else // TODO::: there is bug here...... |
| 623 | // tmeta[0].period = tmeta[nT-1].time - tmeta[0].time + tmeta[nT-1].lengthSec; |
| 624 | tmeta[0].lengthSec = tmeta[nT-1].time - tmeta[0].time + tmeta[nT-1].lengthSec; |
| 625 | } |
| 626 | } |
| 627 | |
| 628 | /******* level configuration ************/ |
| 629 |