Searched refs:BUFFER_SIZE_IN_BYTES (Results 1 – 3 of 3) sorted by relevance
/frameworks/wilhelm/tests/examples/ |
D | slesTestRecBuffQueue.cpp | 61 #define BUFFER_SIZE_IN_BYTES 2048 macro 64 int8_t pcmData[NB_BUFFERS_IN_QUEUE * BUFFER_SIZE_IN_BYTES]; 122 sf_count_t frameCount = BUFFER_SIZE_IN_BYTES / frameSize; in RecBufferQueueCallback() 125 short temp[BUFFER_SIZE_IN_BYTES]; in RecBufferQueueCallback() 127 BUFFER_SIZE_IN_BYTES); in RecBufferQueueCallback() 145 pCntxt->pData += BUFFER_SIZE_IN_BYTES; in RecBufferQueueCallback() 147 if (pCntxt->pData >= pCntxt->pDataBase + (NB_BUFFERS_IN_QUEUE * BUFFER_SIZE_IN_BYTES)) { in RecBufferQueueCallback() 151 ExitOnError( (*queueItf)->Enqueue(queueItf, pCntxt->pDataBase, BUFFER_SIZE_IN_BYTES) ); in RecBufferQueueCallback() 452 result = (*recBuffQueueItf)->Enqueue(recBuffQueueItf, cntxt.pData, BUFFER_SIZE_IN_BYTES); in TestRecToBuffQueue() 454 cntxt.pData += BUFFER_SIZE_IN_BYTES; in TestRecToBuffQueue()
|
D | slesTestDecodeToBuffQueue.cpp | 58 #define BUFFER_SIZE_IN_BYTES (2*BUFFER_SIZE_IN_SAMPLES) macro 61 int8_t pcmData[NB_BUFFERS_IN_QUEUE * BUFFER_SIZE_IN_BYTES]; 188 if (fwrite(pCntxt->pDataBase, 1, BUFFER_SIZE_IN_BYTES, gFp) < BUFFER_SIZE_IN_BYTES) { in DecPlayCallback() 195 pCntxt->pData += BUFFER_SIZE_IN_BYTES; in DecPlayCallback() 197 if (pCntxt->pData >= pCntxt->pDataBase + (NB_BUFFERS_IN_QUEUE * BUFFER_SIZE_IN_BYTES)) { in DecPlayCallback() 201 ExitOnError( (*queueItf)->Enqueue(queueItf, pCntxt->pDataBase, BUFFER_SIZE_IN_BYTES) ); in DecPlayCallback() 414 result = (*decBuffQueueItf)->Enqueue(decBuffQueueItf, cntxt.pData, BUFFER_SIZE_IN_BYTES); in TestDecToBuffQueue() 416 cntxt.pData += BUFFER_SIZE_IN_BYTES; in TestDecToBuffQueue()
|
D | slesTestDecodeAac.cpp | 78 #define BUFFER_SIZE_IN_BYTES (2*sizeof(short)*SAMPLES_PER_AAC_FRAME) macro 81 int8_t pcmData[NB_BUFFERS_IN_PCM_QUEUE * BUFFER_SIZE_IN_BYTES]; 326 if (outputFp != NULL && fwrite(pCntxt->pData, 1, BUFFER_SIZE_IN_BYTES, outputFp) in DecPlayCallback() 327 < BUFFER_SIZE_IN_BYTES) { in DecPlayCallback() 333 res = (*queueItf)->Enqueue(queueItf, pCntxt->pData, BUFFER_SIZE_IN_BYTES); in DecPlayCallback() 337 pCntxt->pData += BUFFER_SIZE_IN_BYTES; in DecPlayCallback() 338 if (pCntxt->pData >= pCntxt->pDataBase + (NB_BUFFERS_IN_PCM_QUEUE * BUFFER_SIZE_IN_BYTES)) { in DecPlayCallback() 623 res = (*decBuffQueueItf)->Enqueue(decBuffQueueItf, sinkCntxt.pData, BUFFER_SIZE_IN_BYTES); in TestDecToBuffQueue() 625 sinkCntxt.pData += BUFFER_SIZE_IN_BYTES; in TestDecToBuffQueue() 627 (NB_BUFFERS_IN_PCM_QUEUE * BUFFER_SIZE_IN_BYTES)) { in TestDecToBuffQueue()
|