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

Method elementToFieldIdx

src/core/dataMemoryLevel.cpp:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182long FrameMetaInfo::elementToFieldIdx(long _element, long *_arrIdx) const
183{
184 int i;
185 int lN=0, _prevN = 0;
186 for(i=0; i<N; i++) {
187 lN += field[i].N;
188 if (lN > _element) {
189 if (_arrIdx != NULL) *_arrIdx = field[i].N - (lN - _element);
190 return i;
191 }
192 }
193 if (_arrIdx != NULL) *_arrIdx = 0;
194 return -1;
195}
196
197void FrameMetaInfo::printFieldNames() const {
198 SMILE_PRINT(" Field name & dimension:");

Callers 1

sendPeriodicMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected