]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/framework/audioStreamInpProc.h
PASDK-218:Add rudimentary Dec Op CB status and alpha command interface
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamInpProc.h
index e2bc5fdcd1772a83265c9a7ead3d875724ce5ec6..7738f224eb5adc7e0a54dc7d2a524b562e24a0ff 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
-Copyright (c) 2016, Texas Instruments Incorporated - http://www.ti.com/
+Copyright (c) 2017, Texas Instruments Incorporated - http://www.ti.com/
 All rights reserved.
 
 * Redistribution and use in source and binary forms, with or without 
@@ -93,8 +93,9 @@ typedef struct PAF_ASIT_Fxns {
     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, 
+    Void (*memStatusPrint)(
+        CString header, 
+        HeapMem_Handle hInternalHeap, 
         HeapMem_Handle hInternal1Heap, 
         HeapMem_Handle hExternalHeap, 
         HeapMem_Handle hInternal1HeapShm, 
@@ -126,12 +127,15 @@ typedef struct PAF_ASIT_Params {
     const SmInt *inputsFromDecodes;
     const SmInt *outputsFromEncodes;
     struct {
-        int *pHeapIdIntern;   //int *pIntern;
-        int *pHeapIdExtern;   //int *pExtern;
-        int *pHeapIdInpbuf;   //int *pInpbuf;
-        int *pHeapIdOutbuf;   //int *pOutbuf;
-        int *pHeapIdFrmbuf;   //int *pFrmbuf;
-        int *pHeapIdIntern1;  //int *pIntern1;
+        int *pHeapIdIntern;             // INT memory heap ID
+        int *pHeapIdExtern;             // EXT memory heap ID
+        int *pHeapIdInpbuf;             // IB buffer heap ID
+        int *pHeapIdOutbuf;             // OB buffer heap ID
+        int *pHeapIdFrmbuf;             // Frame buffer heap ID
+        int *pHeapIdIntern1;            // INT1 memory heap ID
+        int *pHeapIdInt1Shm;            // INT1 SHared Memory heap ID
+        int *pHeapIdExtShm;             // EXT SHared Memory heap ID
+        int *pHeapIdExtNonCachedShm;    // EXT Non-Cached SHared Memory heap ID
         int clear; 
     } heap;
     struct {
@@ -160,6 +164,7 @@ typedef struct PAF_ASIT_Params {
     const PAF_ASP_outNumBufMap *  const (*poutNumBufMap);
     const PAF_MetadataBufStatus *pMetadataBufStatus;
     const PAF_AudioFrameBufStatus *pAudioFrameBufStatus;
+    const PAF_AST_DecOpCircBufStatus * const *z_pDecOpCircBufStatus;    
 } PAF_ASIT_Params;
 
 // Audio Stream Input Task (ASIT) patchs
@@ -186,7 +191,7 @@ Int
 PAF_ASIT_initPhaseMalloc(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Audio Stream Input Task Function for initialization of data values
@@ -195,7 +200,7 @@ Int
 PAF_ASIT_initPhaseConfig(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Audio Stream Input Task Function for initialization of ACP by
@@ -204,7 +209,7 @@ Int
 PAF_ASIT_initPhaseAcpAlg(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   (***) FL: re-visit this, ASIT/ASOT currently consider common memory independently.
@@ -214,7 +219,7 @@ Int
 PAF_ASIT_initPhaseCommon(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Audio Stream Input Task Function for initialization of ASP algorithms.
@@ -222,7 +227,7 @@ Int
 PAF_ASIT_initPhaseAspAlg(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Audio Stream Input Task Function for initialization of data values
@@ -231,7 +236,7 @@ Int
 PAF_ASIT_initPhaseAlgKey(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Audio Stream Input Task Function for initialization of Decoder Output Circular Buffer.
@@ -239,7 +244,7 @@ Int
 PAF_ASIT_initPhaseDecOpCircBuf(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Audio Stream Input Task Function for initialization of Input Devices.
@@ -247,9 +252,18 @@ Int
 PAF_ASIT_initPhaseDevice(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
+//   Purpose:   Audio Stream Input Task Function for initialization of Output Init-Sync.
+Int
+PAF_ASIT_initPhaseOutIS(
+    const PAF_ASIT_Params *pP, 
+    const PAF_ASIT_Patchs *pQ, 
+    PAF_ASIT_Config *pAsdtCfg
+);
+
+
 #if 0
 //   Purpose:   Audio Stream Task Function for initialization or reinitiali-
 //              zation of the Audio Frame(s) by loading of data values of a
@@ -258,7 +272,7 @@ Int
 PAF_AST_initFrame1(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_AST_Config *pC
+    PAF_AST_Config *pAsitCfg
     Int z, 
     Int apply
 );
@@ -270,7 +284,7 @@ Int
 PAF_ASIT_autoProcessing(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int inputTypeSelect, 
     ALG_Handle pcmAlgMaster);
 
@@ -280,7 +294,7 @@ Int
 PAF_ASIT_decodeProcessing(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int sourceSelect
 );
 
@@ -289,7 +303,7 @@ Int
 PAF_ASIT_decodeCommand(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Decoding Function for reinitializing the decoding process.
@@ -297,7 +311,7 @@ Int
 PAF_ASIT_decodeInit(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int sourceSelect
 );
 
@@ -307,7 +321,7 @@ Int
 PAF_ASIT_decodeInfo(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int frame, 
     Int block
 );
@@ -318,7 +332,7 @@ Int
 PAF_ASIT_decodeInfo1(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int frame, 
     Int block
 );
@@ -329,11 +343,12 @@ Int
 PAF_ASIT_decodeInfo2(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int frame, 
     Int block
 );
 
+#if 0
 //   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.
@@ -341,11 +356,12 @@ Int
 PAF_AST_decodeCont(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     ALG_Handle decAlg[], 
     Int frame, 
     Int block
 );
+#endif
 
 //   Purpose:   Decoding Function for processing of input data by the
 //              Decode Algorithm.
@@ -353,7 +369,7 @@ Int
 PAF_ASIT_decodeDecode(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int sourceSelect, 
     Int frame, 
     Int block
@@ -365,7 +381,7 @@ Int
 PAF_ASIT_decodeFinalTest(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int frame, 
     Int block
 );
@@ -375,7 +391,7 @@ Int
 PAF_ASIT_decodeComplete(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     ALG_Handle decAlg[], 
     Int frame, 
     Int block
@@ -387,7 +403,7 @@ Int
 PAF_ASIT_selectDevices(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Audio Stream Input Task Function for selecting the sources used
@@ -396,7 +412,7 @@ Int
 PAF_ASIT_sourceDecode(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int x
 );
 
@@ -405,7 +421,7 @@ Int
 PAF_AST_stopOutput(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
 );
 
 //   Purpose:   Common Function for processing algorithm chains.
@@ -413,7 +429,7 @@ Int
 PAF_AST_streamChainFunction(
     const PAF_ASIT_Params *pP, 
     const PAF_ASIT_Patchs *pQ, 
-    PAF_ASIT_Config *pC
+    PAF_ASIT_Config *pAsitCfg
     Int iChainFrameFxns, 
     Int abortOnError, 
     Int logArg