Lines Matching refs:hBs
270 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_OutOfBandConfig() local
282 FDKinitBitStream(hBs, tmpConf, 1024, length << 3, BS_READER); in transportDec_OutOfBandConfig()
286 FDKpushBack(hBs, (INT)length * 8 - (INT)FDKgetValidBits(hBs)); in transportDec_OutOfBandConfig()
299 err = CLatmDemux_ReadStreamMuxConfig(hBs, pLatmDemux, &hTp->callbacks, in transportDec_OutOfBandConfig()
308 err = AudioSpecificConfig_Parse(&hTp->asc[(1 * 1)], hBs, 1, in transportDec_OutOfBandConfig()
325 err = DrmRawSdcAudioConfig_Parse(&hTp->asc[layer], hBs, &hTp->callbacks, in transportDec_OutOfBandConfig()
371 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_InBandConfig() local
379 FDKinitBitStream(hBs, newConfig, TP_USAC_MAX_CONFIG_LEN, newConfigLength << 3, in transportDec_InBandConfig()
485 FDKpushBack(hBs, in transportDec_InBandConfig()
486 (INT)newConfigLength * 8 - (INT)FDKgetValidBits(hBs)); in transportDec_InBandConfig()
491 &hTp->asc[(1 * 1)], hBs, 0, &hTp->callbacks, configMode, in transportDec_InBandConfig()
644 HANDLE_FDK_BITSTREAM hBs; in transportDec_FillData() local
651 hBs = &hTp->bitStream[layer]; in transportDec_FillData()
655 FDKresetBitbuffer(hBs); in transportDec_FillData()
656 FDKfeedBuffer(hBs, pBuffer, bufferSize, pBytesValid); in transportDec_FillData()
669 FDKfeedBuffer(hBs, pBuffer, bufferSize, pBytesValid); in transportDec_FillData()
673 hTp->accessUnitAnchor[layer] = FDKgetValidBits(hBs); in transportDec_FillData()
723 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in transportDec_AdjustEndOfAccessUnit() local
730 FDKbyteAlign(hBs, hTp->accessUnitAnchor[0]); in transportDec_AdjustEndOfAccessUnit()
737 FDKbyteAlign(hBs, hTp->globalFramePos); in transportDec_AdjustEndOfAccessUnit()
745 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
748 FDKpushBiDirectional(hBs, loasOffset); in transportDec_AdjustEndOfAccessUnit()
771 offset -= (INT)hTp->accessUnitAnchor[0] - (INT)FDKgetValidBits(hBs) + in transportDec_AdjustEndOfAccessUnit()
773 FDKpushBiDirectional(hBs, offset); in transportDec_AdjustEndOfAccessUnit()
779 hTp->parser.adts.crcReadValue = FDKreadBits(hBs, 16); in transportDec_AdjustEndOfAccessUnit()
787 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
790 FDKpushBiDirectional(hBs, offset); in transportDec_AdjustEndOfAccessUnit()
866 HANDLE_TRANSPORTDEC hTp, HANDLE_FDK_BITSTREAM hBs, int syncLength, in transportDec_readHeader() argument
879 startPos = (INT)FDKgetValidBits(hBs); in transportDec_readHeader()
886 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
893 FDKpushBack(hBs, in transportDec_readHeader()
894 (INT)hTp->globalFramePos - (INT)FDKgetValidBits(hBs)); in transportDec_readHeader()
899 err = adtsRead_DecodeHeader(&hTp->parser.adts, &hTp->asc[0], hBs, in transportDec_readHeader()
954 (startPos - (INT)FDKgetValidBits(hBs)) - in transportDec_readHeader()
965 syncLayerFrameBits = (INT)FDKreadBits(hBs, 13); in transportDec_readHeader()
973 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
975 err = CLatmDemux_Read(hBs, &hTp->parser.latm, hTp->transportFmt, in transportDec_readHeader()
988 syncLayerFrameBits -= startPos - (INT)FDKgetValidBits(hBs) - (13); in transportDec_readHeader()
995 err = CLatmDemux_ReadPayloadLengthInfo(hBs, &hTp->parser.latm); in transportDec_readHeader()
1022 *pHeaderBits += startPos - (INT)FDKgetValidBits(hBs); in transportDec_readHeader()
1062 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in synchronization() local
1084 totalBits = (INT)FDKgetValidBits(hBs); in synchronization()
1121 bitsAvail = (INT)FDKgetValidBits(hBs); in synchronization()
1132 synch = FDKreadBits(hBs, syncLength); in synchronization()
1141 FDKreadBits(hBs, TPDEC_SYNCSKIP); in synchronization()
1163 err = transportDec_readHeader(hTp, hBs, syncLength, ignoreBufferFullness, in synchronization()
1168 err = (headerBits < (INT)hBs->hBitBuf.bufBits) in synchronization()
1177 hBs, -headerBits + TPDEC_SYNCSKIP + (bitsAvail % TPDEC_SYNCSKIP)); in synchronization()
1215 FDKpushBiDirectional(hBs, -(headerBits - TPDEC_SYNCSKIP) + bits); in synchronization()
1230 startPosFirstFrame = FDKgetValidBits(hBs); in synchronization()
1255 FDKpushFor(hBs, rawDataBlockLength); in synchronization()
1257 endTpFrameBitsPrevious = (INT)FDKgetValidBits(hBs); in synchronization()
1260 endTpFrameBitsPrevious -= FDKgetValidBits(hBs); in synchronization()
1268 FDKpushBiDirectional(hBs, FDKgetValidBits(hBs) - startPosFirstFrame); in synchronization()
1284 (INT)FDKgetValidBits(hBs) - syncLayerFrameBits); in synchronization()
1292 FDKpushBack(hBs, headerBits); in synchronization()
1303 FDKpushBack(hBs, rawDataBlockLengthPrevious + endTpFrameBitsPrevious); in synchronization()
1319 (FDKgetValidBits(hBs) >= in synchronization()
1322 FDKpushFor(hBs, TPDEC_SYNCSKIP); in synchronization()
1354 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[layer]; in transportDec_readStream() local
1360 bitDistance = (INT)FDKgetValidBits(hBs); in transportDec_readStream()
1362 bitDistance -= (INT)FDKgetValidBits(hBs); in transportDec_readStream()
1431 FDKpushBack(hBs, headerBits); in transportDec_readStream()
1455 HANDLE_FDK_BITSTREAM hBs; in transportDec_ReadAccessUnit() local
1461 hBs = &hTp->bitStream[layer]; in transportDec_ReadAccessUnit()
1463 if ((INT)FDKgetValidBits(hBs) <= 0) { in transportDec_ReadAccessUnit()
1476 INT bsStart = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1482 FDKpushBack(hBs, bsStart - (INT)FDKgetValidBits(hBs)); in transportDec_ReadAccessUnit()
1488 err = adifRead_DecodeHeader(&hTp->parser.adif, pce, hBs); in transportDec_ReadAccessUnit()
1534 hTp->auLength[layer] = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1542 err = transportDec_readHeader(hTp, hBs, 0, 1, &hTp->auLength[layer], in transportDec_ReadAccessUnit()
1561 hTp->accessUnitAnchor[layer] = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1620 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in transportDec_EndAccessUnit() local
1626 if ((INT)FDKgetValidBits(hBs) >= otherDataLen) { in transportDec_EndAccessUnit()
1627 FDKpushFor(hBs, otherDataLen); in transportDec_EndAccessUnit()
1631 FDKbyteAlign(hBs, hTp->globalFramePos); in transportDec_EndAccessUnit()
1641 if ((INT)FDKgetValidBits(hBs) <= 0) { in transportDec_EndAccessUnit()
1831 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_DrmRawSdcAudioConfig_Check() local
1833 FDKinitBitStream(hBs, conf, BUFSIZE_DUMMY_VALUE, length << 3, BS_READER); in transportDec_DrmRawSdcAudioConfig_Check()
1836 DrmRawSdcAudioConfig_Parse(&asc, hBs, NULL, (UCHAR)AC_CM_ALLOC_MEM, 0); in transportDec_DrmRawSdcAudioConfig_Check()