[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_arm / framework / audioStreamDecodeProc.h
diff --git a/processor_audio_sdk_1_00_00_00/pasdk/test_arm/framework/audioStreamDecodeProc.h b/processor_audio_sdk_1_00_00_00/pasdk/test_arm/framework/audioStreamDecodeProc.h
index 243e16f4072524c35bc10b4c33afb2c6702111f8..2f3ccb48dce19dbc7ce42f77945b56d4ebd872d6 100644 (file)
#include "audioStreamProc_patchs.h"
#include "audioStreamProc_config.h"
-// Global debug counter */
-extern Uint32 gTaskAspSlaveCnt; // debug counter for ASP slave task
+struct PAF_ASDT_Params;
+struct PAF_ASDT_Patchs;
+struct PAF_ASDT_Config;
+
+// Audio Stream Decode Task (ASDT) parameters, functions
+typedef struct PAF_ASDT_Fxns {
+ Int (*initPhase[8]) (const struct PAF_ASDT_Params *, const struct PAF_ASDT_Patchs *, struct PAF_ASDT_Config *);
+ Int (*initFrame0) (const struct PAF_ASDT_Params *, const struct PAF_ASDT_Patchs *, struct PAF_ASDT_Config *, Int);
+ Int (*initFrame1) (const struct PAF_ASDT_Params *, const struct PAF_ASDT_Patchs *, struct PAF_ASDT_Config *, Int, Int);
+
+ // For RAM_report
+ Void (*headerPrint)();
+ Int (*allocPrint)(const PAF_ALG_AllocInit *pInit, Int sizeofInit, PAF_IALG_Config *p);
+ Void (*commonPrint)(IALG_MemRec common[], PAF_IALG_Config *p);
+ Void (*bufMemPrint)(Int z, Int size, Int heapId, Int bufType);
+ Void (*memStatusPrint)(HeapMem_Handle hInternalHeap, HeapMem_Handle hInternal1Heap, HeapMem_Handle hExternalHeap, HeapMem_Handle hInternal1HeapShm);
+} PAF_ASDT_Fxns;
+
+// Audio Stream Decode Task (ASDT) parameters
+typedef struct PAF_ASDT_Params {
+ const PAF_ASDT_Fxns *fxns;
+ struct {
+ SmInt master;
+ SmInt decodes;
+ SmInt decode1;
+ SmInt decodeN;
+ SmInt streams;
+ } zone;
+ const SmInt *inputsFromDecodes;
+ struct {
+ int *pHeapIdIntern; //int *pIntern;
+ int *pHeapIdExtern; //int *pExtern;
+ int *pHeapIdFrmbuf; //int *pFrmbuf;
+ int *pHeapIdIntern1; //int *pIntern1;
+ int clear;
+ } heap;
+ struct {
+ const IALG_MemSpace *space;
+ } common;
+ const SmInt *z_numchan;
+ MdInt framelength;
+ const PAF_AudioFunctions *pAudioFrameFunctions;
+ const struct PAF_ASP_ChainFxns *pChainFxns;
+ const PAF_DecodeStatus * const *z_pDecodeStatus;
+ const PAF_ASP_AlgKey *pDecAlgKey;
+ const SmInt *streamsFromDecodes;
+ const MdInt maxFramelength;
+ const PAF_MetadataBufStatus *pMetadataBufStatus;
+ const PAF_AudioFrameBufStatus *pAudioFrameBufStatus;
+} PAF_ASDT_Params;
+
+// Audio Stream Decode Task (ASDT) patchs
+typedef struct PAF_ASDT_Patchs {
+ const PAF_ASP_LinkInit * const (*i_decLinkInit);
+ const PAF_ASP_LinkInit * const (*i_aspLinkInit)[GEARS];
+} PAF_ASDT_Patchs;
+
+// Audio Stream Decode Task (ASDT) configuration
+typedef struct PAF_ASDT_Config
+{
+ ACP_Handle acp;
+ PAF_AST_Config *pAstCfg; // ASIT/ASOT/ASDT shared configuration
+} PAF_ASDT_Config;
+
// Purpose: Audio Stream Decode Task Function for initialization of data pointers
// by allocation of memory.
Int
PAF_ASDT_initPhaseMalloc(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC
+ const PAF_ASDT_Params *pP,
+ const PAF_ASDT_Patchs *pQ,
+ PAF_ASDT_Config *pC
);
// Purpose: Audio Stream Decode Task Function for initialization of data values
// from parameters.
Int
PAF_ASDT_initPhaseConfig(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC
+ const PAF_ASDT_Params *pP,
+ const PAF_ASDT_Patchs *pQ,
+ PAF_ASDT_Config *pC
);
// Purpose: Audio Stream Decode Task Function for initialization of ACP by
// instantiation of the algorithm.
Int
PAF_ASDT_initPhaseAcpAlg(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC
+ const PAF_ASDT_Params *pP,
+ const PAF_ASDT_Patchs *pQ,
+ PAF_ASDT_Config *pC
);
// Purpose: Audio Stream Decode Task Function for initialization of data pointers
// algorithms.
Int
PAF_ASDT_initPhaseCommon(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC
+ const PAF_ASDT_Params *pP,
+ const PAF_ASDT_Patchs *pQ,
+ PAF_ASDT_Config *pC
);
// Purpose: Audio Stream Decode Task Function for initialization of data values
// from parameters for Algorithm Keys.
Int
PAF_ASDT_initPhaseAlgKey(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC
+ const PAF_ASDT_Params *pP,
+ const PAF_ASDT_Patchs *pQ,
+ PAF_ASDT_Config *pC
);
Int
PAF_ASDT_initFrame0(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC,
+ const PAF_ASDT_Params *pP,
+ const PAF_ASDT_Patchs *pQ,
+ PAF_ASDT_Config *pC,
Int z
);
-// Purpose: Audio Stream Task Function for initialization or reinitiali-
-// zation of the Audio Frame(s) by loading of data values of a
+// Purpose: Audio Stream Task Function for initialization or reinitialization
+// of the Audio Frame(s) by loading of data values of a
// time-varying nature.
Int
PAF_ASDT_initFrame1(
- const PAF_AST_Params *pP,
- const PAF_AST_Patchs *pQ,
- PAF_AST_Config *pC,
+ const PAF_ASDT_Params *pP,
+ const PAF_ASDT_Patchs *pQ,
+ PAF_ASDT_Config *pC,
Int z,
Int sourceSelect
);
// Reset AF, invoked during activate (INIT stage from Master)
Int resetAf(
- const PAF_AST_Params *pP,
+ const PAF_ASDT_Params *pP,
Int z,
Int sourceSelect
);