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

Method setFieldMetaData

src/functionals/functionalComponent.cpp:81–88  ·  view source on GitHub ↗

is called by cFunctionals::setupNamesForElement after each new field has been added

Source from the content-addressed store, hash-verified

79
80// is called by cFunctionals::setupNamesForElement after each new field has been added
81void cFunctionalComponent::setFieldMetaData(cDataWriter *writer,
82 const FrameMetaInfo *fmeta, int idxi, long nEl) {
83 double * buf = (double *)malloc(fmeta->field[idxi].infoSize);
84 memcpy(buf, fmeta->field[idxi].info, fmeta->field[idxi].infoSize);
85 writer->setFieldInfo(-1 /* last field added */,
86 fmeta->field[idxi].dataType, buf,
87 fmeta->field[idxi].infoSize);
88}
89
90const char* cFunctionalComponent::getValueName(long i)
91{

Callers 1

setupNamesForElementMethod · 0.45

Calls 1

setFieldInfoMethod · 0.45

Tested by

no test coverage detected