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

Method getElidxFromName

plugindev/simpleVisualiserGUI.cpp:492–504  ·  view source on GitHub ↗

TODO: use dataProcessor::findElement, once it is comitted to the openSMILE trunk

Source from the content-addressed store, hash-verified

490
491// TODO: use dataProcessor::findElement, once it is comitted to the openSMILE trunk
492int cSimpleVisualiserGUI::getElidxFromName(const char *_name)
493{
494 const FrameMetaInfo * fmeta = reader->getFrameMetaInfo();
495 int ri;
496 long elIdx=-1;
497 long idx = fmeta->findFieldByPartialName( _name , &ri, NULL );
498 if (idx < 0) {
499 SMILE_IWRN(2,"Requested input element '*%s*' not found, check your config!",_name);
500 } else {
501 elIdx = fmeta->fieldToElementIdx( idx ) + ri;
502 }
503 return elIdx;
504}
505
506int cSimpleVisualiserGUI::myFinaliseInstance()
507{

Callers

nothing calls this directly

Calls 3

fieldToElementIdxMethod · 0.80
getFrameMetaInfoMethod · 0.45

Tested by

no test coverage detected