• Home
  • Raw
  • Download

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, newConfigLength * 8 - FDKgetValidBits(hBs)); in transportDec_InBandConfig()
490 &hTp->asc[(1 * 1)], hBs, 0, &hTp->callbacks, configMode, in transportDec_InBandConfig()
643 HANDLE_FDK_BITSTREAM hBs; in transportDec_FillData() local
650 hBs = &hTp->bitStream[layer]; in transportDec_FillData()
654 FDKresetBitbuffer(hBs); in transportDec_FillData()
655 FDKfeedBuffer(hBs, pBuffer, bufferSize, pBytesValid); in transportDec_FillData()
669 FDKfeedBuffer(hBs, pBuffer, bufferSize, pBytesValid); in transportDec_FillData()
718 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in transportDec_AdjustEndOfAccessUnit() local
725 FDKbyteAlign(hBs, hTp->accessUnitAnchor[0]); in transportDec_AdjustEndOfAccessUnit()
732 FDKbyteAlign(hBs, hTp->globalFramePos); in transportDec_AdjustEndOfAccessUnit()
740 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
743 FDKpushBiDirectional(hBs, loasOffset); in transportDec_AdjustEndOfAccessUnit()
766 offset -= (INT)hTp->accessUnitAnchor[0] - (INT)FDKgetValidBits(hBs) + in transportDec_AdjustEndOfAccessUnit()
768 FDKpushBiDirectional(hBs, offset); in transportDec_AdjustEndOfAccessUnit()
774 hTp->parser.adts.crcReadValue = FDKreadBits(hBs, 16); in transportDec_AdjustEndOfAccessUnit()
782 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
785 FDKpushBiDirectional(hBs, offset); in transportDec_AdjustEndOfAccessUnit()
861 HANDLE_TRANSPORTDEC hTp, HANDLE_FDK_BITSTREAM hBs, int syncLength, in transportDec_readHeader() argument
874 startPos = (INT)FDKgetValidBits(hBs); in transportDec_readHeader()
881 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
888 FDKpushBack(hBs, in transportDec_readHeader()
889 (INT)hTp->globalFramePos - (INT)FDKgetValidBits(hBs)); in transportDec_readHeader()
894 err = adtsRead_DecodeHeader(&hTp->parser.adts, &hTp->asc[0], hBs, in transportDec_readHeader()
944 (startPos - (INT)FDKgetValidBits(hBs)) - in transportDec_readHeader()
955 syncLayerFrameBits = (INT)FDKreadBits(hBs, 13); in transportDec_readHeader()
963 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
965 err = CLatmDemux_Read(hBs, &hTp->parser.latm, hTp->transportFmt, in transportDec_readHeader()
978 syncLayerFrameBits -= startPos - (INT)FDKgetValidBits(hBs) - (13); in transportDec_readHeader()
982 err = CLatmDemux_ReadPayloadLengthInfo(hBs, &hTp->parser.latm); in transportDec_readHeader()
1009 *pHeaderBits += startPos - (INT)FDKgetValidBits(hBs); in transportDec_readHeader()
1049 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in synchronization() local
1071 totalBits = (INT)FDKgetValidBits(hBs); in synchronization()
1108 bitsAvail = (INT)FDKgetValidBits(hBs); in synchronization()
1119 synch = FDKreadBits(hBs, syncLength); in synchronization()
1128 FDKreadBits(hBs, TPDEC_SYNCSKIP); in synchronization()
1150 err = transportDec_readHeader(hTp, hBs, syncLength, ignoreBufferFullness, in synchronization()
1159 hBs, -headerBits + TPDEC_SYNCSKIP + (bitsAvail % TPDEC_SYNCSKIP)); in synchronization()
1199 FDKpushBiDirectional(hBs, -(headerBits - TPDEC_SYNCSKIP) + bits); in synchronization()
1214 startPosFirstFrame = FDKgetValidBits(hBs); in synchronization()
1239 FDKpushFor(hBs, rawDataBlockLength); in synchronization()
1241 endTpFrameBitsPrevious = (INT)FDKgetValidBits(hBs); in synchronization()
1244 endTpFrameBitsPrevious -= FDKgetValidBits(hBs); in synchronization()
1252 FDKpushBiDirectional(hBs, FDKgetValidBits(hBs) - startPosFirstFrame); in synchronization()
1267 FDKgetValidBits(hBs) - syncLayerFrameBits); in synchronization()
1275 FDKpushBack(hBs, headerBits); in synchronization()
1284 FDKpushBack(hBs, rawDataBlockLengthPrevious + endTpFrameBitsPrevious); in synchronization()
1300 (FDKgetValidBits(hBs) >= in synchronization()
1303 FDKpushFor(hBs, TPDEC_SYNCSKIP); in synchronization()
1335 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[layer]; in transportDec_readStream() local
1341 bitDistance = (INT)FDKgetValidBits(hBs); in transportDec_readStream()
1343 bitDistance -= (INT)FDKgetValidBits(hBs); in transportDec_readStream()
1412 FDKpushBack(hBs, headerBits); in transportDec_readStream()
1436 HANDLE_FDK_BITSTREAM hBs; in transportDec_ReadAccessUnit() local
1442 hBs = &hTp->bitStream[layer]; in transportDec_ReadAccessUnit()
1444 if ((INT)FDKgetValidBits(hBs) <= 0) { in transportDec_ReadAccessUnit()
1457 INT bsStart = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1463 FDKpushBack(hBs, bsStart - FDKgetValidBits(hBs)); in transportDec_ReadAccessUnit()
1469 err = adifRead_DecodeHeader(&hTp->parser.adif, pce, hBs); in transportDec_ReadAccessUnit()
1515 hTp->auLength[layer] = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1523 err = transportDec_readHeader(hTp, hBs, 0, 1, &hTp->auLength[layer], in transportDec_ReadAccessUnit()
1542 hTp->accessUnitAnchor[layer] = FDKgetValidBits(hBs); in transportDec_ReadAccessUnit()
1601 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in transportDec_EndAccessUnit() local
1607 if ((INT)FDKgetValidBits(hBs) >= otherDataLen) { in transportDec_EndAccessUnit()
1608 FDKpushFor(hBs, otherDataLen); in transportDec_EndAccessUnit()
1612 FDKbyteAlign(hBs, hTp->globalFramePos); in transportDec_EndAccessUnit()
1622 if ((INT)FDKgetValidBits(hBs) <= 0) { in transportDec_EndAccessUnit()
1812 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_DrmRawSdcAudioConfig_Check() local
1814 FDKinitBitStream(hBs, conf, BUFSIZE_DUMMY_VALUE, length << 3, BS_READER); in transportDec_DrmRawSdcAudioConfig_Check()
1817 DrmRawSdcAudioConfig_Parse(&asc, hBs, NULL, (UCHAR)AC_CM_ALLOC_MEM, 0); in transportDec_DrmRawSdcAudioConfig_Check()