Home | History | Annotate | Download | only in src

Lines Matching refs:pLatmDemux

120         CLatmDemux *pLatmDemux,
130 pLatmDemux->m_useSameStreamMux = FDKreadBits(bs,1);
132 if (!pLatmDemux->m_useSameStreamMux) {
133 if ((ErrorStatus = CLatmDemux_ReadStreamMuxConfig(bs, pLatmDemux, pTpDecCallbacks, pAsc, pfConfigFound))) {
144 if (pLatmDemux->m_AudioMuxVersionA == 0) {
146 if ((ErrorStatus = CLatmDemux_ReadPayloadLengthInfo(bs,pLatmDemux))) {
159 CLatmDemux *pLatmDemux,
178 if ((ErrorStatus = CLatmDemux_ReadAudioMuxElement(bs, pLatmDemux, (tt != TT_MP4_LATM_MCP0), pTpDecCallbacks, pAsc, pfConfigFound)))
184 + pLatmDemux->m_linfo[0][0].m_bufferFullness* pAsc[TPDEC_TRACKINDEX(0,0)].m_channelConfiguration*32;
188 if (pLatmDemux->m_linfo[0][0].m_bufferFullness != 0xFF)
190 if (!pLatmDemux->BufferFullnessAchieved)
201 pLatmDemux->BufferFullnessAchieved = 1;
213 CLatmDemux *pLatmDemux,
222 pLatmDemux->m_AudioMuxVersion = FDKreadBits(bs,1);
224 if (pLatmDemux->m_AudioMuxVersion == 0) {
225 pLatmDemux->m_AudioMuxVersionA = 0;
227 pLatmDemux->m_AudioMuxVersionA = FDKreadBits(bs,1);
230 if (pLatmDemux->m_AudioMuxVersionA == 0) {
231 if (pLatmDemux->m_AudioMuxVersion == 1) {
232 pLatmDemux->m_taraBufferFullness = CLatmDemux_GetValue(bs);
234 pLatmDemux->m_allStreamsSameTimeFraming = FDKreadBits(bs,1);
235 pLatmDemux->m_noSubFrames = FDKreadBits(bs,6) + 1;
236 pLatmDemux->m_numProgram = FDKreadBits(bs,4) + 1;
238 if (pLatmDemux->m_numProgram > 1) {
243 for (UINT prog = 0; prog < pLatmDemux->m_numProgram; prog++) {
244 pLatmDemux->m_numLayer = FDKreadBits(bs,3) + 1;
245 if (pLatmDemux->m_numLayer > 2) {
249 for (UINT lay = 0; lay < pLatmDemux->m_numLayer; lay++) {
250 p_linfo = &pLatmDemux->m_linfo[prog][lay];
256 pLatmDemux->m_useSameConfig = 0;
258 pLatmDemux->m_useSameConfig = FDKreadBits(bs,1);
261 if (pLatmDemux->m_useSameConfig) {
268 if (pLatmDemux->m_AudioMuxVersion == 1)
313 if (!pLatmDemux->m_allStreamsSameTimeFraming) {
336 pLatmDemux->m_otherDataPresent = FDKreadBits(bs,1);
337 pLatmDemux->m_otherDataLength = 0;
339 if (pLatmDemux->m_otherDataPresent) {
342 pLatmDemux->m_otherDataLength <<= 8; // *= 256
344 pLatmDemux->m_otherDataLength += FDKreadBits(bs,8);
348 pLatmDemux->m_crcCheckPresent = FDKreadBits(bs,1);
349 pLatmDemux->m_crcCheckSum = 0;
351 if (pLatmDemux->m_crcCheckPresent) {
352 pLatmDemux->m_crcCheckSum = FDKreadBits(bs,8);
363 TRANSPORTDEC_ERROR CLatmDemux_ReadPayloadLengthInfo(HANDLE_FDK_BITSTREAM bs, CLatmDemux *pLatmDemux)
368 if( pLatmDemux->m_allStreamsSameTimeFraming == 1 ) {
369 for (UINT prog=0; prog<pLatmDemux->m_numProgram; prog++ ) {
370 for (UINT lay=0; lay<pLatmDemux->m_numLayer; lay++ ) {
371 LATM_LAYER_INFO *p_linfo = &pLatmDemux->m_linfo[prog][lay];
390 if (pLatmDemux->m_audioMuxLengthBytes > (UINT)0 && totalPayloadBits > (int)pLatmDemux->m_audioMuxLengthBytes*8) {
414 int CLatmDemux_GetFrameLengthInBits(CLatmDemux *pLatmDemux)
416 return pLatmDemux->m_linfo[0][0].m_frameLengthInBits;
419 int CLatmDemux_GetOtherDataPresentFlag(CLatmDemux *pLatmDemux)
421 return pLatmDemux->m_otherDataPresent ? 1 : 0;
424 int CLatmDemux_GetOtherDataLength(CLatmDemux *pLatmDemux)
426 return pLatmDemux->m_otherDataLength;
429 UINT CLatmDemux_GetNrOfSubFrames(CLatmDemux *pLatmDemux)
431 return pLatmDemux->m_noSubFrames;