quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_sp.a #include <FrontEnd.h> FrontEnd(); FrontEnd(const FrontEnd& arg); boolean eq(const FrontEndBase* arg) const; boolean setType(TYPES type_a); long getNumChannels() const; boolean setNumChannels(long arg); boolean setCoeffName(const String& name);
description:// configure the FrontEnd // FrontEnd fe; fe.setType(AUDIO); // run the file // String raw_file(L"diagnose_AD.raw"); String output_mfcc(L".diagnose_mfcc_output.sof"); fe.run(output_mfcc, raw_file);
static const String CLASS_NAME = L"FrontEnd";
enum TYPES { AUDIO = 0, VIDEO, DEF_TYPE = AUDIO };
static const NameMap TYPES_MAP(L"AudioFrontEnd, VideoFrontEnd");
static const String PARAM_TYPE = L"name";
static const long ERR = 80200;
FrontEndBase* virtual_fe_d;
static const FrontEndUndefined NO_FRONTEND;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
~FrontEnd();
FrontEnd();
FrontEnd(const FrontEnd& arg);
boolean assign(const FrontEnd& 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 FrontEnd& 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 setType(TYPES type);
boolean setVerbosity(Integral::DEBUG verbosity);
boolean setOutputDirectory(String& directory);
boolean setOutputBasename(String& basename);
boolean setOutputExtension(String& extension);
boolean setOutputPreserve(long new_preserve_level);
boolean setOutputSuffix(String& suffix);
boolean setOutputType(File::TYPE type);
boolean setNumChannels(long arg);
boolean setCoefName(const String& name);
TYPES getType() const;
Integral::DEBUG getVerbosity() const;
const boolean getOutputBasename(String& basename) const;
const boolean getOutputExtension(String& extension) const;
const boolean getOutputSuffix(String& suffix) const;
const File::TYPE& getOutputType() const;
boolean getVector(VectorFloat& coeffs, long channel, long frame_index);
long getNumFeatures() const;
long getNumChannels() const;
long getNumFrames() const;
float getFrameDuration() const;
const String& getID() const;
boolean isNameInput(const String& name) const;
boolean getInputFlag() const;
boolean eq(const FrontEndBase& arg) const;
boolean assign(const FrontEndBase& arg);
const String& className() const;
boolean load(const Filename& input);
boolean open(const Filename& input);
boolean close();
boolean init(float start_time, float stop_time, int channel)
boolean run(const Filename& output, const Filename& input);
boolean load(const Filename& input);
boolean eq(const FrontEndBase& arg) const;private methods:
boolean reset();
// configure the FrontEnd by reading from a parameter file // FrontEnd fe; Sof sof; sof.open(L"params.sof"); fe.read(sof, 0); sof.close(); // run the file // String raw_file(L"diagnose_AD.raw"); String output_mfcc(L".diagnose_mfcc_output.sof"); fe.run(output_mfcc, raw_file);