Lines Matching refs:pC
104 M4READER_AMR_Context* pC=(M4READER_AMR_Context*)context;
107 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
112 if (M4OSA_NULL == pC)
119 free(pC);
138 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
142 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
147 err = M4AMRR_openRead( &pC->m_pCoreContext, pFileDescriptor, pC->m_pOsaFileReaderFcts);
166 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
171 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
176 if (M4OSA_NULL == pC)
183 if (M4OSA_NULL != pC->m_pAudioStream)
185 err = M4AMRR_getState(pC->m_pCoreContext, &State,
186 ((M4_StreamHandler*)pC->m_pAudioStream)->m_streamId);
195 err = M4AMRR_freeAU(pC->m_pCoreContext,
196 ((M4_StreamHandler*)pC->m_pAudioStream)->m_streamId, &pC->m_audioAu);
205 if(M4OSA_NULL != pC->m_pAudioStream->m_basicProperties.m_pDecoderSpecificInfo)
208 pC->m_pAudioStream->m_basicProperties.m_pDecoderSpecificInfo);
210 pC->m_pAudioStream->m_basicProperties.m_decoderSpecificInfoSize = 0;
211 pC->m_pAudioStream->m_basicProperties.m_pDecoderSpecificInfo = M4OSA_NULL;
215 free(pC->m_pAudioStream);
216 pC->m_pAudioStream = M4OSA_NULL;
219 if (M4OSA_NULL != pC->m_pCoreContext)
221 err = M4AMRR_closeRead(pC->m_pCoreContext);
222 pC->m_pCoreContext = M4OSA_NULL;
247 M4READER_AMR_Context* pC=(M4READER_AMR_Context*)context;
254 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER,
261 err = M4AMRR_getNextStream( pC->m_pCoreContext, &streamDesc);
266 err = M4AMRR_startReading(pC->m_pCoreContext, streamIdArray);
289 pC->m_pAudioStream = pAudioStreamHandler;
308 if (streamDesc.duration > pC->m_maxDuration)
310 pC->m_maxDuration = streamDesc.duration;
314 M4AMRR_getmaxAUsize(pC->m_pCoreContext, &pStreamHandler->m_maxAUSize);
348 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
351 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER,
358 if (pStreamHandler == (M4_StreamHandler*)pC->m_pAudioStream)
360 pAu = &pC->m_audioAu;
411 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
415 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER, "invalid context pointer");
422 *(M4OSA_Time*)pValue = pC->m_maxDuration;
429 if (M4OSA_NULL != pC->m_pAudioStream)
431 *pBitrate = pC->m_pAudioStream->m_basicProperties.m_averageBitRate;
477 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
481 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER, "invalid context pointer");
488 pC->m_pOsaFileReaderFcts = (M4OSA_FileReadPointer*)pValue;
519 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
526 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER, "M4READER_AMR_reset: invalid context");
530 if (pStreamHandler == (M4_StreamHandler*)pC->m_pAudioStream)
532 pAu = &pC->m_audioAu;
540 err = M4AMRR_getState(pC->m_pCoreContext, &State, pStreamHandler->m_streamId);
543 err = M4AMRR_freeAU(pC->m_pCoreContext, pStreamHandler->m_streamId, pAu);
562 err = M4AMRR_seek(pC->m_pCoreContext, streamIdArray, time64, M4SYS_kBeginning, &time64);
590 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
597 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER, "M4READER_AMR_reset: invalid context");
602 if (pStreamHandler == (M4_StreamHandler*)pC->m_pAudioStream)
604 pAu = &pC->m_audioAu;
612 err = M4AMRR_getState(pC->m_pCoreContext, &State, pStreamHandler->m_streamId);
615 err = M4AMRR_freeAU(pC->m_pCoreContext, pStreamHandler->m_streamId, pAu);
629 err = M4AMRR_seek(pC->m_pCoreContext, streamIdArray, time64, M4SYS_kNoRAPprevious, &time64);
664 M4READER_AMR_Context* pC = (M4READER_AMR_Context*)context;
670 M4OSA_DEBUG_IF1((pC == 0), M4ERR_PARAMETER,
680 if (pStreamHandler == (M4_StreamHandler*)pC->m_pAudioStream)
682 pAu = &pC->m_audioAu;
690 err = M4AMRR_getState(pC->m_pCoreContext, &State, pStreamHandler->m_streamId);
693 err = M4AMRR_freeAU(pC->m_pCoreContext, pStreamHandler->m_streamId, pAu);
703 err = M4AMRR_nextAU(pC->m_pCoreContext, pStreamHandler->m_streamId, pAu);