quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_sp.a #include <Component.h> Component(ALGORITHM algorithm = DEF_ALGORITHM); Component(const Component& arg); boolean setAlgorithm(const Algorithm& arg); boolean getOutputName(const String& oname);
description:Component mfcc; Window win; win.setSize(12); win.setAlgorithm(Window::HAMMING); mfcc.setAlgorithm(win);
static const String CLASS_NAME = L"Component";
static const String DEF_PARAM = L"";
static const String PARAM_INPUT_NAMES = L"input";
static const String PARAM_OUTPUT_NAME = L"output";
static const String PARAM_COMPONENT = L"algo";
static const Char DELIM = L'+';
static const long ERR = 80100;
Vector<String> input_names_d;
Vector<Long> input_offsets_d;
Algorithm algo_d;
String output_name_d;
static Integral::DEBUG debug_level_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~Component();
Component();
Component(const Component& arg);
boolean assign(const Component& arg);
long sofSize() const;
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
boolean eq(const Component& arg) const;
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE ctype = Integral::DEF_CMODE);
boolean setAlgorithm(const Algorithm& arg);
boolean setInputName(const String& str);
boolean setInputName(long index, const String& str);
boolean setOutputName(const String& oname);
boolean setSampleFrequency(float sf);
boolean setFrameDuration(float sf);
boolean setLeftoverSamps(long dur);
boolean setFrameIndex(long index);
boolean setSignalDuration(float dur);
boolean setInputFilename(Filename& basename);
boolean setOutputDirectory(String& directory);
boolean setOutputBasename(String& basename);
boolean setOutputExtension(String& extension);
boolean setOutputPreserve(long new_pres_level);
boolean setOutputSuffix(String& suffix);
boolean setOutputType(File::TYPE type);
const Algorithm& getAlgorithm() const;
const String& getInputName(long index) const;
const String& getOutputName() const;
long getInputOffset(long index) const;
long getNumInputs() const;
boolean isInput(const Component& arg) const;
boolean isCoefficientLabel(const Component& arg) const;
boolean isCoefficientLabel(const Component& arg) const;
boolean getGenSampleFrequency(Float& sf) const;
boolean init();
boolean apply(Vector<AlgorithmData>& output, const Vector< CircularBuffer<AlgorithmData> >& input);
long getLeadingPad() const;
long getTrailingPad() const;
boolean const getInputFilename(String& filename) const;
boolean const getOutputFilename(String& filename) const;
boolean splitName(String& base_name, Long& offset, const String& str) const;
boolean joinName(String& output) const;
Vectorsignal(1); signal(0).makeVector().assign(L"0,48,-32,0,-16,-48,-32,-32,16,-48,00,-16,16"); Component mfcc; Window win; win.setSize(12); win.setAlgorithm(Window::HAMMING); mfcc.setAlgorithm(win); mfcc.apply(output, signal);