MCPcopy Create free account
hub / github.com/audeering/opensmile / squashTimeMeta

Method squashTimeMeta

src/core/dataMemoryLevel.cpp:617–626  ·  view source on GitHub ↗

convert a matrix tmeta to a vector tmeta spanning the whole matrix by adjusting size, period, etc.

Source from the content-addressed store, hash-verified

615
616// convert a matrix tmeta to a vector tmeta spanning the whole matrix by adjusting size, period, etc.
617void 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

Callers 2

myTickMethod · 0.80
myTickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected