[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_dsp / framework / audioStreamInpProc.h
diff --git a/processor_audio_sdk_1_00_00_00/pasdk/test_dsp/framework/audioStreamInpProc.h b/processor_audio_sdk_1_00_00_00/pasdk/test_dsp/framework/audioStreamInpProc.h
--- /dev/null
@@ -0,0 +1,248 @@
+/*
+ * ======== audioStreamInpProc.h ========
+ */
+
+#ifndef _ASIP_H_
+#define _ASIP_H_
+
+#include <xdc/std.h>
+
+#include "audioStreamProc_params.h"
+#include "audioStreamProc_patchs.h"
+#include "audioStreamProc_config.h"
+
+// Global debug counter */
+extern Uint32 gTaskAsipCnt; // debug counter for ASP task
+
+// Purpose: Audio Stream Input Task Function for initialization of data pointers
+// by allocation of memory.
+Int
+PAF_ASIT_initPhaseMalloc(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Audio Stream Input Task Function for initialization of data values
+// from parameters.
+Int
+PAF_ASIT_initPhaseConfig(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Audio Stream Input Task Function for initialization of ACP by
+// instantiation of the algorithm.
+Int
+PAF_ASIT_initPhaseAcpAlg(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// (***) FL: ASIT/ASOT currently consider common memory independently.
+// Should simultaneously consider all algs in ASIT/ASOT.
+// Purpose: Audio Stream Input Task Function for allocation of common memory.
+Int
+PAF_ASIT_initPhaseCommon(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Audio Stream Input Task Function for initialization of ASP algorithms.
+Int
+PAF_ASIT_initPhaseAspAlg(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+
+// Purpose: Audio Stream Input Task Function for initialization of data values
+// from parameters for Algorithm Keys.
+Int
+PAF_ASIT_initPhaseAlgKey(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Audio Stream Input Task Function for initialization of Input Devices.
+Int
+PAF_ASIT_initPhaseDevice(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Audio Stream Task Function for initialization or reinitiali-
+// zation of the Audio Frame(s) by loading of data values of a
+// time-varying nature.
+Int
+PAF_AST_initFrame1(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int z,
+ Int apply
+);
+
+// Purpose: Audio Stream Task Function for processing audio data to
+// determine the input type without output.
+Int
+PAF_ASIT_autoProcessing(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int inputTypeSelect,
+ ALG_Handle pcmAlgMaster);
+
+// Purpose: Audio Stream Input Task Function for processing audio data.
+//
+Int
+PAF_ASIT_decodeProcessing(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int sourceSelect
+);
+
+// Purpose: Decoding Function for processing Decode Commands.
+Int
+PAF_ASIT_decodeCommand(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Decoding Function for reinitializing the decoding process.
+Int
+PAF_ASIT_decodeInit(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int sourceSelect
+);
+
+// Purpose: Decoding Function for processing information in a manner that
+// is common for both initial and subsequent frames of input data.
+Int
+PAF_ASIT_decodeInfo(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int frame,
+ Int block
+);
+
+// Purpose: Decoding Function for processing information in a manner that
+// is unique to initial frames of input data.
+Int
+PAF_ASIT_decodeInfo1(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int frame,
+ Int block
+);
+
+// Purpose: Decoding Function for processing information in a manner that
+// is unique to frames of input data other than the initial one.
+Int
+PAF_ASIT_decodeInfo2(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int frame,
+ Int block
+);
+
+// Purpose: Decoding Function for processing that occurs subsequent to
+// information processing but antecedent to timing processing
+// for frames of input data other than the initial one.
+Int
+PAF_AST_decodeCont(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ ALG_Handle decAlg[],
+ Int frame,
+ Int block
+);
+
+// Purpose: Decoding Function for processing of input data by the
+// Decode Algorithm.
+Int
+PAF_ASIT_decodeDecode(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int sourceSelect,
+ Int frame,
+ Int block
+);
+
+// Purpose: Decoding Function for determining whether processing of the
+// current frame is complete.
+Int
+PAF_ASIT_decodeFinalTest(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int frame,
+ Int block
+);
+
+// Purpose: Decoding Function for terminating the decoding process.
+Int
+PAF_ASIT_decodeComplete(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ ALG_Handle decAlg[],
+ Int frame,
+ Int block
+);
+
+// Purpose: Audio Stream Input Task Function for selecting the devices used
+// for input.
+Int
+PAF_ASIT_selectDevices(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Audio Stream Input Task Function for selecting the sources used
+// for decoding of input to output.
+Int
+PAF_ASIT_sourceDecode(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int x
+);
+
+// Purpose: Decoding Function for terminating output.
+Int
+PAF_AST_stopOutput(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC
+);
+
+// Purpose: Common Function for processing algorithm chains.
+Int
+PAF_AST_streamChainFunction(
+ const PAF_AST_Params *pP,
+ const PAF_AST_Patchs *pQ,
+ PAF_AST_Config *pC,
+ Int iChainFrameFxns,
+ Int abortOnError,
+ Int logArg
+);
+
+
+#endif /* _ASIP_H_ */