[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / common / paf_decOpCircBuf.c
diff --git a/processor_audio_sdk_1_00_00_00/pasdk/common/paf_decOpCircBuf.c b/processor_audio_sdk_1_00_00_00/pasdk/common/paf_decOpCircBuf.c
index 565bea45b973000df3fbc878dc2fe5e30b38ee35..edd1d35479a7d83988601dd29e0b786cd32754bc 100644 (file)
Int8 sourceSelect, // source select (PCM, DDP, etc.)
Int16 decOpFrameLen, // decoder output frame length (PCM samples)
Int16 strFrameLen, // stream frame length (PCM samples)
- PAF_DecodeOpCircBuf *pCb, // decoder output circular buffer
+ PAF_AST_DecOpCircBuf *pCb, // decoder output circular buffer
Int8 resetRwFlags // whether to reset reader, writer, and empty flags
)
{
// (***) FL: revisit
// Write back circular buffer configuration
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
// Write back AF circular buffer
Cache_wb(pCb->afCb, pCb->maxNumAfCb*sizeof(PAF_AudioFrame), Cache_Type_ALLD, 0);
// Write back PCM data
// Start writes to circular buffer
Int cbWriteStart(
- PAF_DecodeOpCircBuf *pCb // decoder output circular buffer
+ PAF_AST_DecOpCircBuf *pCb // decoder output circular buffer
)
{
PAF_AudioFrame *pAfCb;
// (***) FL: revisit
// Invalidate circular buffer configuration.
// NOTE: Probably only a subset of this information needs to be updated.
- Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
// Invalidate AF circular buffer
// (***) FL: revisit
// Write back circular buffer configuration
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
return PAF_DECOP_CB_SOK;
// Stop writes to circular buffer
Int cbWriteStop(
- PAF_DecodeOpCircBuf *pCb // decoder output circular buffer
+ PAF_AST_DecOpCircBuf *pCb // decoder output circular buffer
)
{
// Invalidate circular buffer configuration
- Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
// update flags
// (***) FL: revisit
// Write back circular buffer configuration
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
return PAF_DECOP_CB_SOK;
// Start reads from circular buffer
Int cbReadStart(
- PAF_DecodeOpCircBuf *pCb // decoder output circular buffer
+ PAF_AST_DecOpCircBuf *pCb // decoder output circular buffer
)
{
// Invalidate circular buffer configuration
- Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
// update flags
// (***) FL: revisit
// Write back circular buffer configuration
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
return PAF_DECOP_CB_SOK;
// Stop reads from circular buffer
Int cbReadStop(
- PAF_DecodeOpCircBuf *pCb // decoder output circular buffer
+ PAF_AST_DecOpCircBuf *pCb // decoder output circular buffer
)
{
// Invalidate circular buffer configuration
- Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
// update flags
// (***) FL: revisit
// Write back circular buffer configuration
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
return PAF_DECOP_CB_SOK;
// Read audio frame from circular buffer
Int cbReadAf(
- PAF_DecodeOpCircBuf *pCb, // decoder output circular buffer
+ PAF_AST_DecOpCircBuf *pCb, // decoder output circular buffer
PAF_AudioFrame *pAfRd // audio frame into which to read
)
{
// (***) FL: revisit
// Invalidate circular buffer configuration.
- Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
if ((pCb->writerActiveFlag == 1) && (pCb->emptyFlag == 1))
//SW_BREAKPOINT; // FL: debug
// Write back circular buffer configuration.
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
return PAF_DECOP_CB_READ_UNDERFLOW;
// (***) FL: revisit
// Write back circular buffer configuration.
// NOTE: Probably only a subset of this information needs to be updated.
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
return PAF_DECOP_CB_SOK;
// Write audio frame to circular buffer
Int cbWriteAf(
- PAF_DecodeOpCircBuf *pCb, // decoder output circular buffer
+ PAF_AST_DecOpCircBuf *pCb, // decoder output circular buffer
PAF_AudioFrame *pAfWrt // audio frame from which to write
)
{
// (***) FL: revisit
// Invalidate circular buffer configuration.
// NOTE: Probably only a subset of this information nexeds to be updated.
- Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_inv(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
Cache_wait();
if (pCb->readerActiveFlag == 1)
// (***) FL: revisit
// Write back circular buffer configuration
- Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+ Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
// write back audio frame
Cache_wb(pAfCb, sizeof(PAF_AudioFrame), Cache_Type_ALLD, 0);
Cache_wb(pAfCb->data.samsiz, PAF_DECOP_CB_MAX_NUM_PCM_CH*sizeof(PAF_AudioSize), Cache_Type_ALLD, 0);
// Get next audio frame to write in circular buffer
Int cbGetNextWriteAf(
- PAF_DecodeOpCircBuf *pCb, // decoder output circular buffer
- PAF_AudioFrame **ppAfWrt // audio frame next to be written
+ PAF_AST_DecOpCircBuf *pCb, // decoder output circular buffer
+ PAF_AudioFrame **ppAfWrt // audio frame next to be written
)
{
// get pointer to current audio frame in circular buffer
// Output log of circular buffer control variables (debug)
Int cbLog(
- PAF_DecodeOpCircBuf *pCb,
+ PAF_AST_DecOpCircBuf *pCb,
Int8 fullLog,
char *locInfo
)
}
pAfRd->data.samsiz[i] = 0;
}
-}
\ No newline at end of file
+}