Lines Matching refs:pLatmDemux
125 HANDLE_FDK_BITSTREAM bs, CLatmDemux *pLatmDemux, int m_muxConfigPresent, in CLatmDemux_ReadAudioMuxElement() argument
131 pLatmDemux->m_useSameStreamMux = FDKreadBits(bs, 1); in CLatmDemux_ReadAudioMuxElement()
133 if (!pLatmDemux->m_useSameStreamMux) { in CLatmDemux_ReadAudioMuxElement()
142 if (!pLatmDemux->applyAsc) { in CLatmDemux_ReadAudioMuxElement()
144 pLatmDemux->newCfgHasAudioPreRoll = 0; in CLatmDemux_ReadAudioMuxElement()
149 bs, pLatmDemux, pTpDecCallbacks, pAsc, pfConfigFound, in CLatmDemux_ReadAudioMuxElement()
159 pLatmDemux->newCfgHasAudioPreRoll) { in CLatmDemux_ReadAudioMuxElement()
160 pLatmDemux->newCfgHasAudioPreRoll = 0; in CLatmDemux_ReadAudioMuxElement()
162 pLatmDemux->applyAsc = 0; in CLatmDemux_ReadAudioMuxElement()
165 pLatmDemux->applyAsc = 1; /* apply new config immediate */ in CLatmDemux_ReadAudioMuxElement()
169 if (pLatmDemux->applyAsc) { in CLatmDemux_ReadAudioMuxElement()
183 bs, pLatmDemux, pTpDecCallbacks, pAsc, pfConfigFound, in CLatmDemux_ReadAudioMuxElement()
214 if (pLatmDemux->m_AudioMuxVersionA == 0) { in CLatmDemux_ReadAudioMuxElement()
217 (ErrorStatus = CLatmDemux_ReadPayloadLengthInfo(bs, pLatmDemux))) { in CLatmDemux_ReadAudioMuxElement()
230 pLatmDemux->applyAsc = 1; in CLatmDemux_ReadAudioMuxElement()
237 CLatmDemux *pLatmDemux, TRANSPORT_TYPE tt, in CLatmDemux_Read() argument
254 bs, pLatmDemux, (tt != TT_MP4_LATM_MCP0), in CLatmDemux_Read()
261 pLatmDemux->m_linfo[0][0].m_bufferFullness * in CLatmDemux_Read()
266 if (pLatmDemux->m_linfo[0][0].m_bufferFullness != 0xFF) { in CLatmDemux_Read()
267 if (!pLatmDemux->BufferFullnessAchieved) { in CLatmDemux_Read()
274 pLatmDemux->BufferFullnessAchieved = 1; in CLatmDemux_Read()
284 HANDLE_FDK_BITSTREAM bs, CLatmDemux *pLatmDemux, in CLatmDemux_ReadStreamMuxConfig() argument
291 pLatmDemux->usacExplicitCfgChanged = 0; in CLatmDemux_ReadStreamMuxConfig()
296 pLatmDemux->m_AudioMuxVersion = FDKreadBits(bs, 1); in CLatmDemux_ReadStreamMuxConfig()
298 if (pLatmDemux->m_AudioMuxVersion == 0) { in CLatmDemux_ReadStreamMuxConfig()
299 pLatmDemux->m_AudioMuxVersionA = 0; in CLatmDemux_ReadStreamMuxConfig()
301 pLatmDemux->m_AudioMuxVersionA = FDKreadBits(bs, 1); in CLatmDemux_ReadStreamMuxConfig()
304 if (pLatmDemux->m_AudioMuxVersionA == 0) { in CLatmDemux_ReadStreamMuxConfig()
305 if (pLatmDemux->m_AudioMuxVersion == 1) { in CLatmDemux_ReadStreamMuxConfig()
306 pLatmDemux->m_taraBufferFullness = CLatmDemux_GetValue(bs); in CLatmDemux_ReadStreamMuxConfig()
308 pLatmDemux->m_allStreamsSameTimeFraming = FDKreadBits(bs, 1); in CLatmDemux_ReadStreamMuxConfig()
309 pLatmDemux->m_noSubFrames = FDKreadBits(bs, 6) + 1; in CLatmDemux_ReadStreamMuxConfig()
310 pLatmDemux->m_numProgram = FDKreadBits(bs, 4) + 1; in CLatmDemux_ReadStreamMuxConfig()
312 if (pLatmDemux->m_numProgram > LATM_MAX_PROG) { in CLatmDemux_ReadStreamMuxConfig()
318 for (UINT prog = 0; prog < pLatmDemux->m_numProgram; prog++) { in CLatmDemux_ReadStreamMuxConfig()
319 pLatmDemux->m_numLayer[prog] = FDKreadBits(bs, 3) + 1; in CLatmDemux_ReadStreamMuxConfig()
320 if (pLatmDemux->m_numLayer[prog] > LATM_MAX_LAYER) { in CLatmDemux_ReadStreamMuxConfig()
325 for (UINT lay = 0; lay < pLatmDemux->m_numLayer[prog]; lay++) { in CLatmDemux_ReadStreamMuxConfig()
327 p_linfo = &pLatmDemux->m_linfo[prog][lay]; in CLatmDemux_ReadStreamMuxConfig()
351 if (!(pLatmDemux->applyAsc) && in CLatmDemux_ReadStreamMuxConfig()
368 if (pLatmDemux->m_AudioMuxVersion == 1) { in CLatmDemux_ReadStreamMuxConfig()
382 if (pLatmDemux->applyAsc) { in CLatmDemux_ReadStreamMuxConfig()
405 if (pLatmDemux->applyAsc) { in CLatmDemux_ReadStreamMuxConfig()
419 if (!pLatmDemux->applyAsc) { in CLatmDemux_ReadStreamMuxConfig()
425 if (!pLatmDemux->applyAsc) { in CLatmDemux_ReadStreamMuxConfig()
445 pLatmDemux->usacExplicitCfgChanged = 1; in CLatmDemux_ReadStreamMuxConfig()
460 pLatmDemux->usacExplicitCfgChanged = 1; in CLatmDemux_ReadStreamMuxConfig()
469 pLatmDemux->newCfgHasAudioPreRoll = in CLatmDemux_ReadStreamMuxConfig()
483 if (!pLatmDemux->m_allStreamsSameTimeFraming) { in CLatmDemux_ReadStreamMuxConfig()
515 pLatmDemux->m_otherDataPresent = FDKreadBits(bs, 1); in CLatmDemux_ReadStreamMuxConfig()
516 pLatmDemux->m_otherDataLength = 0; in CLatmDemux_ReadStreamMuxConfig()
518 if (pLatmDemux->m_otherDataPresent) { in CLatmDemux_ReadStreamMuxConfig()
519 if (pLatmDemux->m_AudioMuxVersion == 1) { in CLatmDemux_ReadStreamMuxConfig()
520 pLatmDemux->m_otherDataLength = CLatmDemux_GetValue(bs); in CLatmDemux_ReadStreamMuxConfig()
524 pLatmDemux->m_otherDataLength <<= 8; // *= 256 in CLatmDemux_ReadStreamMuxConfig()
526 pLatmDemux->m_otherDataLength += FDKreadBits(bs, 8); in CLatmDemux_ReadStreamMuxConfig()
529 if (pLatmDemux->m_audioMuxLengthBytes < in CLatmDemux_ReadStreamMuxConfig()
530 (pLatmDemux->m_otherDataLength >> 3)) { in CLatmDemux_ReadStreamMuxConfig()
536 pLatmDemux->m_crcCheckPresent = FDKreadBits(bs, 1); in CLatmDemux_ReadStreamMuxConfig()
538 if (pLatmDemux->m_crcCheckPresent) { in CLatmDemux_ReadStreamMuxConfig()
550 for (prog = 0; prog < pLatmDemux->m_numProgram; prog++) { in CLatmDemux_ReadStreamMuxConfig()
552 for (lay = 0; lay < pLatmDemux->m_numLayer[prog]; lay++) { in CLatmDemux_ReadStreamMuxConfig()
583 UCHAR applyAsc = pLatmDemux->applyAsc; in CLatmDemux_ReadStreamMuxConfig()
584 FDKmemclear(pLatmDemux, sizeof(CLatmDemux)); /* reset structure */ in CLatmDemux_ReadStreamMuxConfig()
585 pLatmDemux->applyAsc = applyAsc; in CLatmDemux_ReadStreamMuxConfig()
588 if (configMode == AC_CM_ALLOC_MEM) pLatmDemux->applyAsc = 0; in CLatmDemux_ReadStreamMuxConfig()
595 CLatmDemux *pLatmDemux) { in CLatmDemux_ReadPayloadLengthInfo() argument
599 if (pLatmDemux->m_allStreamsSameTimeFraming == 1) { in CLatmDemux_ReadPayloadLengthInfo()
600 FDK_ASSERT(pLatmDemux->m_numProgram <= LATM_MAX_PROG); in CLatmDemux_ReadPayloadLengthInfo()
601 for (UINT prog = 0; prog < pLatmDemux->m_numProgram; prog++) { in CLatmDemux_ReadPayloadLengthInfo()
602 FDK_ASSERT(pLatmDemux->m_numLayer[prog] <= LATM_MAX_LAYER); in CLatmDemux_ReadPayloadLengthInfo()
603 for (UINT lay = 0; lay < pLatmDemux->m_numLayer[prog]; lay++) { in CLatmDemux_ReadPayloadLengthInfo()
604 LATM_LAYER_INFO *p_linfo = &pLatmDemux->m_linfo[prog][lay]; in CLatmDemux_ReadPayloadLengthInfo()
622 if (pLatmDemux->m_audioMuxLengthBytes > (UINT)0 && in CLatmDemux_ReadPayloadLengthInfo()
623 totalPayloadBits > (int)pLatmDemux->m_audioMuxLengthBytes * 8) { in CLatmDemux_ReadPayloadLengthInfo()
647 UINT CLatmDemux_GetFrameLengthInBits(CLatmDemux *pLatmDemux, const UINT prog, in CLatmDemux_GetFrameLengthInBits() argument
650 if (prog < pLatmDemux->m_numProgram) { in CLatmDemux_GetFrameLengthInBits()
651 if (layer < pLatmDemux->m_numLayer[prog]) { in CLatmDemux_GetFrameLengthInBits()
652 nFrameLenBits = pLatmDemux->m_linfo[prog][layer].m_frameLengthInBits; in CLatmDemux_GetFrameLengthInBits()
658 UINT CLatmDemux_GetOtherDataPresentFlag(CLatmDemux *pLatmDemux) { in CLatmDemux_GetOtherDataPresentFlag() argument
659 return pLatmDemux->m_otherDataPresent ? 1 : 0; in CLatmDemux_GetOtherDataPresentFlag()
662 UINT CLatmDemux_GetOtherDataLength(CLatmDemux *pLatmDemux) { in CLatmDemux_GetOtherDataLength() argument
663 return pLatmDemux->m_otherDataLength; in CLatmDemux_GetOtherDataLength()
666 UINT CLatmDemux_GetNrOfSubFrames(CLatmDemux *pLatmDemux) { in CLatmDemux_GetNrOfSubFrames() argument
667 return pLatmDemux->m_noSubFrames; in CLatmDemux_GetNrOfSubFrames()
670 UINT CLatmDemux_GetNrOfLayers(CLatmDemux *pLatmDemux, const UINT prog) { in CLatmDemux_GetNrOfLayers() argument
672 if (prog < pLatmDemux->m_numProgram) { in CLatmDemux_GetNrOfLayers()
673 numLayer = pLatmDemux->m_numLayer[prog]; in CLatmDemux_GetNrOfLayers()