Lines Matching refs:hBs
222 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_OutOfBandConfig() local
224 FDKinitBitStream(hBs, conf, 0x10000000, length<<3, BS_READER); in transportDec_OutOfBandConfig()
238 … err = CLatmDemux_ReadStreamMuxConfig(hBs, pLatmDemux, &hTp->callbacks, hTp->asc, &fConfigFound); in transportDec_OutOfBandConfig()
246 err = AudioSpecificConfig_Parse(&hTp->asc[layer], hBs, 1, &hTp->callbacks); in transportDec_OutOfBandConfig()
302 HANDLE_FDK_BITSTREAM hBs; in transportDec_FillData() local
315 hBs = &hTp->bitStream[layer]; in transportDec_FillData()
323 FDKinitBitStream(hBs, pBuffer, 0x10000, (*pBytesValid)<<3, BS_READER); in transportDec_FillData()
329 FDKfeedBuffer (hBs, pBuffer, bufferSize, pBytesValid) ; in transportDec_FillData()
378 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in transportDec_AdjustEndOfAccessUnit() local
388 FDKbyteAlign(hBs, hTp->globalFramePos); in transportDec_AdjustEndOfAccessUnit()
395 …loasOffset = (hTp->parser.latm.m_audioMuxLengthBytes*8 + FDKgetValidBits(hBs)) - hTp->globalFrameP… in transportDec_AdjustEndOfAccessUnit()
397 FDKpushBiDirectional(hBs, loasOffset); in transportDec_AdjustEndOfAccessUnit()
416 … offset -= hTp->accessUnitAnchor[0] - FDKgetValidBits(hBs) + 16 + hTp->parser.adts.bs.num_pce_bits; in transportDec_AdjustEndOfAccessUnit()
417 FDKpushBiDirectional(hBs, offset); in transportDec_AdjustEndOfAccessUnit()
421 hTp->parser.adts.crcReadValue = FDKreadBits(hBs, 16); in transportDec_AdjustEndOfAccessUnit()
430 …offset = (hTp->parser.adts.bs.frame_length*8 - ADTS_SYNCLENGTH + FDKgetValidBits(hBs)) - hTp->glob… in transportDec_AdjustEndOfAccessUnit()
432 FDKpushBiDirectional(hBs, offset); in transportDec_AdjustEndOfAccessUnit()
512 HANDLE_FDK_BITSTREAM hBs, in transportDec_readHeader() argument
529 startPos = FDKgetValidBits(hBs); in transportDec_readHeader()
537 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
540 err = adtsRead_DecodeHeader( &hTp->parser.adts, &hTp->asc[0], hBs, ignoreBufferFullness ); in transportDec_readHeader()
572 …FrameBits = (hTp->parser.adts.bs.frame_length<<3) - (startPos - FDKgetValidBits(hBs)) - syncLength; in transportDec_readHeader()
583 syncLayerFrameBits = FDKreadBits(hBs, 13); in transportDec_readHeader()
591 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
594 hBs, in transportDec_readHeader()
609 syncLayerFrameBits -= startPos - FDKgetValidBits(hBs) - (13); in transportDec_readHeader()
613 err = CLatmDemux_ReadPayloadLengthInfo(hBs, &hTp->parser.latm); in transportDec_readHeader()
637 *pHeaderBits += startPos - (INT)FDKgetValidBits(hBs); in transportDec_readHeader()
666 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in synchronization() local
682 totalBits = (INT)FDKgetValidBits(hBs); in synchronization()
716 bitsAvail = (INT)FDKgetValidBits(hBs); in synchronization()
728 synch = FDKreadBits(hBs, syncLength); in synchronization()
735 synch = ((synch << TPDEC_SYNCSKIP) & syncMask) | FDKreadBits(hBs, TPDEC_SYNCSKIP); in synchronization()
760 hBs, in synchronization()
803 FDKpushBiDirectional(hBs, -(headerBits - TPDEC_SYNCSKIP) + bits); in synchronization()
819 startPosFirstFrame = FDKgetValidBits(hBs); in synchronization()
843 FDKpushFor(hBs, rawDataBlockLength); in synchronization()
854 FDKpushBiDirectional(hBs, FDKgetValidBits(hBs) - startPosFirstFrame); in synchronization()
866 …err = additionalHoldOffNeeded(hTp, transportDec_GetBufferFullness(hTp), FDKgetValidBits(hBs) - syn… in synchronization()
874 FDKpushBack(hBs, headerBits); in synchronization()
884 FDKpushBack(hBs, rawDataBlockLengthPrevious); in synchronization()
897 …if ( (TRANSPORTDEC_NOT_ENOUGH_BITS == err) && (FDKgetValidBits(hBs) >= ((TRANSPORTDEC_INBUF_SIZE*… in synchronization()
899 FDKpushFor(hBs, TPDEC_SYNCSKIP); in synchronization()
933 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[layer]; in transportDec_readStream() local
939 bitDistance = FDKgetValidBits(hBs); in transportDec_readStream()
941 bitDistance -= FDKgetValidBits(hBs); in transportDec_readStream()
1012 FDKpushBack(hBs, headerBits); in transportDec_readStream()
1035 HANDLE_FDK_BITSTREAM hBs; in transportDec_ReadAccessUnit() local
1041 hBs = &hTp->bitStream[layer]; in transportDec_ReadAccessUnit()
1043 if ((INT)FDKgetValidBits(hBs) <= 0) { in transportDec_ReadAccessUnit()
1057 err = adifRead_DecodeHeader(&hTp->parser.adif, pce, hBs); in transportDec_ReadAccessUnit()
1088 hTp->auLength[layer] = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1096 …err = transportDec_readHeader(hTp, hBs, 0, 1, &hTp->auLength[layer], NULL, NULL, &fConfigFound, NU… in transportDec_ReadAccessUnit()
1115 hTp->accessUnitAnchor[layer] = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1320 HANDLE_FDK_BITSTREAM hBs = &pTp->bitStream[0]; in transportDec_CrcCheck() local