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