Home | History | Annotate | Download | only in src

Lines Matching refs:pC

40 M4OSA_ERR M4VSS3GPP_clearInterfaceTables( M4VSS3GPP_MediaAndCodecCtxt *pC )
44 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
48 pC->pWriterGlobalFcts = M4OSA_NULL;
49 pC->pWriterDataFcts = M4OSA_NULL;
50 pC->pVideoEncoderGlobalFcts = M4OSA_NULL;
51 pC->pAudioEncoderGlobalFcts = M4OSA_NULL;
52 pC->pCurrentAudioEncoderUserData = M4OSA_NULL;
53 pC->pCurrentAudioDecoderUserData = M4OSA_NULL;
55 pC->pCurrentVideoEncoderExternalAPI = M4OSA_NULL;
56 pC->pCurrentVideoEncoderUserData = M4OSA_NULL;
60 pC->WriterInterface[i].pGlobalFcts = M4OSA_NULL;
61 pC->WriterInterface[i].pDataFcts = M4OSA_NULL;
66 pC->pVideoEncoderInterface[i] = M4OSA_NULL;
67 pC->pVideoEncoderExternalAPITable[i] = M4OSA_NULL;
68 pC->pVideoEncoderUserDataTable[i] = M4OSA_NULL;
73 pC->pAudioEncoderInterface[i] = M4OSA_NULL;
74 pC->pAudioEncoderFlag[i] = M4OSA_FALSE;
75 pC->pAudioEncoderUserDataTable[i] = M4OSA_NULL;
79 pC->m_pReader = M4OSA_NULL;
80 pC->m_pReaderDataIt = M4OSA_NULL;
81 pC->m_uiNbRegisteredReaders = 0;
85 pC->m_pReaderGlobalItTable[i] = M4OSA_NULL;
86 pC->m_pReaderDataItTable[i] = M4OSA_NULL;
89 pC->m_pVideoDecoder = M4OSA_NULL;
92 pC->m_pCurrentVideoDecoderUserData = M4OSA_NULL;
95 pC->m_uiNbRegisteredVideoDec = 0;
99 pC->m_pVideoDecoderItTable[i] = M4OSA_NULL;
102 pC->m_pVideoDecoderUserDataTable[i] = M4OSA_NULL;
108 pC->m_pAudioDecoder = M4OSA_NULL;
112 pC->m_pAudioDecoderItTable[i] = M4OSA_NULL;
113 pC->m_pAudioDecoderFlagTable[i] = M4OSA_FALSE;
114 pC->pAudioDecoderUserDataTable[i] = M4OSA_NULL;
132 M4OSA_ERR M4VSS3GPP_registerWriter( M4VSS3GPP_MediaAndCodecCtxt *pC,
139 M4OSA_DEBUG_IF2((pC == M4OSA_NULL), M4ERR_PARAMETER,
149 pC, pWtrGlobalInterface, pWtrDataInterface);
157 if( pC->WriterInterface[MediaType].pGlobalFcts != M4OSA_NULL )
167 pC->WriterInterface[MediaType].pGlobalFcts = pWtrGlobalInterface;
168 pC->WriterInterface[MediaType].pDataFcts = pWtrDataInterface;
185 M4OSA_ERR M4VSS3GPP_registerVideoEncoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
191 M4OSA_DEBUG_IF2((pC == M4OSA_NULL), M4ERR_PARAMETER,
199 pC, pEncGlobalInterface, MediaType);
208 if( pC->pVideoEncoderInterface[MediaType] != M4OSA_NULL )
215 if( M4OSA_TRUE == pC->bAllowFreeingOMXCodecInterface )
220 free(pC->pVideoEncoderInterface[MediaType]);
227 pC->pVideoEncoderInterface[MediaType] = M4OSA_NULL;
232 pC->pVideoEncoderInterface[MediaType] = pEncGlobalInterface;
235 pC->pVideoEncoderUserDataTable[MediaType] = M4OSA_NULL;
236 pC->pVideoEncoderExternalAPITable[MediaType] = M4OSA_NULL;
254 M4OSA_ERR M4VSS3GPP_registerAudioEncoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
260 M4OSA_DEBUG_IF2((pC == M4OSA_NULL), M4ERR_PARAMETER,
268 pC, pEncGlobalInterface, MediaType);
277 if( pC->pAudioEncoderInterface[MediaType] != M4OSA_NULL )
279 free(pC->pAudioEncoderInterface[MediaType]);
280 pC->pAudioEncoderInterface[MediaType] = M4OSA_NULL;
284 pC->pAudioEncoderInterface[MediaType] = pEncGlobalInterface;
285 pC->pAudioEncoderFlag[MediaType] = M4OSA_FALSE; /* internal encoder */
286 pC->pAudioEncoderUserDataTable[MediaType] = M4OSA_NULL;
289 "M4VSS3GPP_registerAudioEncoder: pC->pAudioEncoderInterface[0x%x] = 0x%x",
290 MediaType, pC->pAudioEncoderInterface[MediaType]);
304 M4OSA_ERR M4VSS3GPP_registerReader( M4VSS3GPP_MediaAndCodecCtxt *pC,
309 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
323 if( pC->m_pReaderGlobalItTable[mediaType] != M4OSA_NULL )
331 pC->m_pReaderGlobalItTable[mediaType] = pRdrGlobalInterface;
332 pC->m_pReaderDataItTable[mediaType] = pRdrDataInterface;
334 pC->m_uiNbRegisteredReaders++;
351 M4OSA_ERR M4VSS3GPP_registerVideoDecoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
355 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
367 if( pC->m_pVideoDecoderItTable[decoderType] != M4OSA_NULL )
382 if( M4OSA_TRUE == pC->bAllowFreeingOMXCodecInterface )
387 free(pC->m_pVideoDecoderItTable[decoderType]);
394 pC->m_pVideoDecoderItTable[decoderType] = M4OSA_NULL;
396 if( pC->m_pVideoDecoderUserDataTable[decoderType] != M4OSA_NULL )
398 free(pC->m_pVideoDecoderUserDataTable[decoderType]);
399 pC->m_pVideoDecoderUserDataTable[decoderType] = M4OSA_NULL;
405 pC->m_pVideoDecoderItTable[decoderType] = pDecoderInterface;
408 pC->m_pVideoDecoderUserDataTable[decoderType] = M4OSA_NULL;
414 pC->m_uiNbRegisteredVideoDec++;
431 M4OSA_ERR M4VSS3GPP_registerAudioDecoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
434 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
445 if(M4OSA_NULL != pC->m_pAudioDecoderItTable[decoderType])
447 free(pC->m_pAudioDecoderItTable[decoderType]);
448 pC->m_pAudioDecoderItTable[decoderType] = M4OSA_NULL;
450 if(M4OSA_NULL != pC->m_pAudioDecoderItTable[decoderType])
452 free(pC->m_pAudioDecoderItTable[decoderType]);
453 pC->m_pAudioDecoderItTable[decoderType] = M4OSA_NULL;
459 pC->m_pAudioDecoderItTable[decoderType] = pDecoderInterface;
460 pC->m_pAudioDecoderFlagTable[decoderType] =
462 pC->pAudioDecoderUserDataTable[decoderType] = M4OSA_NULL;
476 M4OSA_ERR M4VSS3GPP_unRegisterAllWriters( M4VSS3GPP_MediaAndCodecCtxt *pC )
480 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
485 if( pC->WriterInterface[i].pGlobalFcts != M4OSA_NULL )
487 free(pC->WriterInterface[i].pGlobalFcts);
488 pC->WriterInterface[i].pGlobalFcts = M4OSA_NULL;
491 if( pC->WriterInterface[i].pDataFcts != M4OSA_NULL )
493 free(pC->WriterInterface[i].pDataFcts);
494 pC->WriterInterface[i].pDataFcts = M4OSA_NULL;
498 pC->pWriterGlobalFcts = M4OSA_NULL;
499 pC->pWriterDataFcts = M4OSA_NULL;
513 M4OSA_ERR M4VSS3GPP_unRegisterAllEncoders( M4VSS3GPP_MediaAndCodecCtxt *pC )
517 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
519 M4OSA_TRACE3_1("M4VSS3GPP_unRegisterAllEncoders: pC=0x%x", pC);
523 if( pC->pVideoEncoderInterface[i] != M4OSA_NULL )
527 if( M4OSA_TRUE == pC->bAllowFreeingOMXCodecInterface )
532 free(pC->pVideoEncoderInterface[i]);
539 pC->pVideoEncoderInterface[i] = M4OSA_NULL;
545 if( pC->pAudioEncoderInterface[i] != M4OSA_NULL )
549 if( M4OSA_TRUE == pC->bAllowFreeingOMXCodecInterface )
555 if( M4OSA_FALSE == pC->pAudioEncoderFlag[i] )
557 free(pC->pAudioEncoderInterface[i]);
565 pC->pAudioEncoderInterface[i] = M4OSA_NULL;
569 pC->pVideoEncoderGlobalFcts = M4OSA_NULL;
570 pC->pAudioEncoderGlobalFcts = M4OSA_NULL;
584 M4OSA_ERR M4VSS3GPP_unRegisterAllReaders( M4VSS3GPP_MediaAndCodecCtxt *pC )
588 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
593 if( pC->m_pReaderGlobalItTable[i] != M4OSA_NULL )
595 free(pC->m_pReaderGlobalItTable[i]);
596 pC->m_pReaderGlobalItTable[i] = M4OSA_NULL;
599 if( pC->m_pReaderDataItTable[i] != M4OSA_NULL )
601 free(pC->m_pReaderDataItTable[i]);
602 pC->m_pReaderDataItTable[i] = M4OSA_NULL;
606 pC->m_uiNbRegisteredReaders = 0;
607 pC->m_pReader = M4OSA_NULL;
608 pC->m_pReaderDataIt = M4OSA_NULL;
622 M4OSA_ERR M4VSS3GPP_unRegisterAllDecoders( M4VSS3GPP_MediaAndCodecCtxt *pC )
626 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
628 M4OSA_TRACE3_1("M4VSS3GPP_unRegisterAllDecoders: pC=0x%x", pC);
632 if( pC->m_pVideoDecoderItTable[i] != M4OSA_NULL )
636 if( M4OSA_TRUE == pC->bAllowFreeingOMXCodecInterface )
641 free(pC->m_pVideoDecoderItTable[i]);
648 pC->m_pVideoDecoderItTable[i] = M4OSA_NULL;
655 if( pC->m_pAudioDecoderItTable[i] != M4OSA_NULL )
659 if( M4OSA_TRUE == pC->bAllowFreeingOMXCodecInterface )
665 if( M4OSA_FALSE == pC->m_pAudioDecoderFlagTable[i] )
667 free(pC->m_pAudioDecoderItTable[i]);
675 pC->m_pAudioDecoderItTable[i] = M4OSA_NULL;
679 pC->m_uiNbRegisteredVideoDec = 0;
680 pC->m_pVideoDecoder = M4OSA_NULL;
682 pC->m_pAudioDecoder = M4OSA_NULL;
698 M4OSA_ERR M4VSS3GPP_setCurrentWriter( M4VSS3GPP_MediaAndCodecCtxt *pC,
703 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
717 pC->pWriterGlobalFcts = pC->WriterInterface[writerType].pGlobalFcts;
718 pC->pWriterDataFcts = pC->WriterInterface[writerType].pDataFcts;
720 if( pC->pWriterGlobalFcts == M4OSA_NULL
721 || pC->pWriterDataFcts == M4OSA_NULL )
729 pC->pWriterDataFcts->pWriterContext = M4OSA_NULL;
745 M4OSA_ERR M4VSS3GPP_setCurrentVideoEncoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
750 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
752 M4OSA_TRACE3_2("M4VSS3GPP_setCurrentVideoEncoder: pC=0x%x, mediaType=0x%x",
753 pC, mediaType);
776 pC->pVideoEncoderGlobalFcts = pC->pVideoEncoderInterface[encoderType];
777 pC->pCurrentVideoEncoderExternalAPI =
778 pC->pVideoEncoderExternalAPITable[encoderType];
779 pC->pCurrentVideoEncoderUserData =
780 pC->pVideoEncoderUserDataTable[encoderType];
782 if( pC->pVideoEncoderGlobalFcts == M4OSA_NULL )
804 M4OSA_ERR M4VSS3GPP_setCurrentAudioEncoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
809 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
811 M4OSA_TRACE3_2("M4VSS3GPP_setCurrentAudioEncoder: pC=0x%x, mediaType=0x%x",
812 pC, mediaType);
835 pC->pAudioEncoderGlobalFcts = pC->pAudioEncoderInterface[encoderType];
836 pC->pCurrentAudioEncoderUserData =
837 pC->pAudioEncoderUserDataTable[encoderType];
840 "M4VSS3GPP_setCurrentAudioEncoder: pC->pAudioEncoderInterface[0x%x]=0x%x,\
841 pC->pAudioEncoderGlobalFcts = 0x%x",
842 encoderType, pC->pAudioEncoderInterface[encoderType],
843 pC->pAudioEncoderGlobalFcts);
845 if( pC->pAudioEncoderGlobalFcts == M4OSA_NULL )
868 M4OSA_ERR M4VSS3GPP_setCurrentReader( M4VSS3GPP_MediaAndCodecCtxt *pC,
873 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
902 pC->m_pReader = pC->m_pReaderGlobalItTable[readerType];
903 pC->m_pReaderDataIt = pC->m_pReaderDataItTable[readerType];
905 if( pC->m_pReader == M4OSA_NULL || pC->m_pReaderDataIt == M4OSA_NULL )
926 M4OSA_ERR M4VSS3GPP_setCurrentVideoDecoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
931 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
933 M4OSA_TRACE3_2("M4VSS3GPP_setCurrentVideoDecoder: pC=0x%x, mediaType=0x%x",
934 pC, mediaType);
956 pC->m_pVideoDecoder = pC->m_pVideoDecoderItTable[decoderType];
959 pC->m_pCurrentVideoDecoderUserData =
960 pC->m_pVideoDecoderUserDataTable[decoderType];
964 if( pC->m_pVideoDecoder == M4OSA_NULL )
986 M4OSA_ERR M4VSS3GPP_setCurrentAudioDecoder( M4VSS3GPP_MediaAndCodecCtxt *pC,
991 M4OSA_DEBUG_IF1((M4OSA_NULL == pC), M4ERR_PARAMETER,
993 M4OSA_TRACE3_2("M4VSS3GPP_setCurrentAudioDecoder: pC=0x%x, mediaType=0x%x",
994 pC, mediaType);
1023 pC->m_pAudioDecoder = pC->m_pAudioDecoderItTable[decoderType];
1024 pC->pCurrentAudioDecoderUserData =
1025 pC->pAudioDecoderUserDataTable[decoderType];
1027 if( pC->m_pAudioDecoder == M4OSA_NULL )