Lines Matching defs:hBs
227 HANDLE_FDK_BITSTREAM hBs = &bs;
229 FDKinitBitStream(hBs, conf, 0x10000000, length<<3, BS_READER);
243 err = CLatmDemux_ReadStreamMuxConfig(hBs, pLatmDemux, &hTp->callbacks, hTp->asc, &fConfigFound);
251 err = AudioSpecificConfig_Parse(&hTp->asc[layer], hBs, 1, &hTp->callbacks);
263 err = DrmRawSdcAudioConfig_Parse(&hTp->asc[layer], hBs);
319 HANDLE_FDK_BITSTREAM hBs;
332 hBs = &hTp->bitStream[layer];
340 FDKinitBitStream(hBs, pBuffer, 0x10000, (*pBytesValid)<<3, BS_READER);
346 FDKfeedBuffer (hBs, pBuffer, bufferSize, pBytesValid) ;
395 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0];
405 FDKbyteAlign(hBs, hTp->globalFramePos);
412 loasOffset = (hTp->parser.latm.m_audioMuxLengthBytes*8 + FDKgetValidBits(hBs)) - hTp->globalFramePos;
414 FDKpushBiDirectional(hBs, loasOffset);
433 offset -= hTp->accessUnitAnchor[0] - FDKgetValidBits(hBs) + 16 + hTp->parser.adts.bs.num_pce_bits;
434 FDKpushBiDirectional(hBs, offset);
438 hTp->parser.adts.crcReadValue = FDKreadBits(hBs, 16);
447 offset = (hTp->parser.adts.bs.frame_length*8 - ADTS_SYNCLENGTH + FDKgetValidBits(hBs)) - hTp->globalFramePos;
449 FDKpushBiDirectional(hBs, offset);
529 HANDLE_FDK_BITSTREAM hBs,
546 startPos = FDKgetValidBits(hBs);
554 hTp->globalFramePos = FDKgetValidBits(hBs);
557 err = adtsRead_DecodeHeader( &hTp->parser.adts, &hTp->asc[0], hBs, ignoreBufferFullness );
589 syncLayerFrameBits = (hTp->parser.adts.bs.frame_length<<3) - (startPos - FDKgetValidBits(hBs)) - syncLength;
600 syncLayerFrameBits = FDKreadBits(hBs, 13);
608 hTp->globalFramePos = FDKgetValidBits(hBs);
611 hBs,
626 syncLayerFrameBits -= startPos - FDKgetValidBits(hBs) - (13);
630 err = CLatmDemux_ReadPayloadLengthInfo(hBs, &hTp->parser.latm);
654 *pHeaderBits += startPos - (INT)FDKgetValidBits(hBs);
683 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0];
699 totalBits = (INT)FDKgetValidBits(hBs);
733 bitsAvail = (INT)FDKgetValidBits(hBs);
745 synch = FDKreadBits(hBs, syncLength);
752 synch = ((synch << TPDEC_SYNCSKIP) & syncMask) | FDKreadBits(hBs, TPDEC_SYNCSKIP);
777 hBs,
820 FDKpushBiDirectional(hBs, -(headerBits - TPDEC_SYNCSKIP) + bits);
836 startPosFirstFrame = FDKgetValidBits(hBs);
860 FDKpushFor(hBs, rawDataBlockLength);
871 FDKpushBiDirectional(hBs, FDKgetValidBits(hBs) - startPosFirstFrame);
883 err = additionalHoldOffNeeded(hTp, transportDec_GetBufferFullness(hTp), FDKgetValidBits(hBs) - syncLayerFrameBits);
891 FDKpushBack(hBs, headerBits);
901 FDKpushBack(hBs, rawDataBlockLengthPrevious);
914 if ( (TRANSPORTDEC_NOT_ENOUGH_BITS == err) && (FDKgetValidBits(hBs) >= ((TRANSPORTDEC_INBUF_SIZE*8 - ((hTp->avgBitRate*hTp->burstPeriod)/1000)) - 7)) )
916 FDKpushFor(hBs, TPDEC_SYNCSKIP);
950 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[layer];
956 bitDistance = FDKgetValidBits(hBs);
958 bitDistance -= FDKgetValidBits(hBs);
1029 FDKpushBack(hBs, headerBits);
1052 HANDLE_FDK_BITSTREAM hBs;
1058 hBs = &hTp->bitStream[layer];
1060 if ((INT)FDKgetValidBits(hBs) <= 0) {
1074 err = adifRead_DecodeHeader(&hTp->parser.adif, pce, hBs);
1106 hTp->auLength[layer] = FDKgetValidBits(hBs);
1114 err = transportDec_readHeader(hTp, hBs, 0, 1, &hTp->auLength[layer], NULL, NULL, &fConfigFound, NULL);
1132 hTp->accessUnitAnchor[layer] = FDKgetValidBits(hBs);
1343 HANDLE_FDK_BITSTREAM hBs = &pTp->bitStream[0];