Home
last modified time | relevance | path

Searched refs:FDKgetValidBits (Results 1 – 25 of 36) sorted by relevance

12

/external/aac/libMpegTPDec/src/
Dtpdec_lib.cpp286 FDKpushBack(hBs, (INT)length * 8 - (INT)FDKgetValidBits(hBs)); in transportDec_OutOfBandConfig()
486 (INT)newConfigLength * 8 - (INT)FDKgetValidBits(hBs)); in transportDec_InBandConfig()
673 hTp->accessUnitAnchor[layer] = FDKgetValidBits(hBs); in transportDec_FillData()
745 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
771 offset -= (INT)hTp->accessUnitAnchor[0] - (INT)FDKgetValidBits(hBs) + in transportDec_AdjustEndOfAccessUnit()
787 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
879 startPos = (INT)FDKgetValidBits(hBs); in transportDec_readHeader()
886 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
894 (INT)hTp->globalFramePos - (INT)FDKgetValidBits(hBs)); in transportDec_readHeader()
954 (startPos - (INT)FDKgetValidBits(hBs)) - in transportDec_readHeader()
[all …]
Dtpdec_adts.cpp183 valBits = FDKgetValidBits(hBs) + ADTS_SYNCLENGTH; in adtsRead_DecodeHeader()
224 if ((INT)FDKgetValidBits(hBs) < bs.num_raw_blocks * 16) { in adtsRead_DecodeHeader()
245 if ((INT)FDKgetValidBits(hBs) < Adts_Length_CrcCheck) { in adtsRead_DecodeHeader()
316 UINT alignAnchor = FDKgetValidBits(hBs); in adtsRead_DecodeHeader()
359 pceBits = (INT)alignAnchor - (INT)FDKgetValidBits(hBs); in adtsRead_DecodeHeader()
Dtpdec_asc.cpp212 UINT startAnchor = FDKgetValidBits(bs); in CProgramConfig_ReadHeightExt()
260 FDKpushBack(bs, (INT)startAnchor - (INT)FDKgetValidBits(bs)); in CProgramConfig_ReadHeightExt()
264 *bytesAvailable -= ((INT)startAnchor - (INT)FDKgetValidBits(bs)) >> 3; in CProgramConfig_ReadHeightExt()
1356 if (FDKgetValidBits(bs) < 24) { in getSampleRate()
1539 eldExtLenSum = FDKgetValidBits(hBs); in EldSpecificConfig_Parse()
1543 ((INT)FDKgetValidBits(hBs) >= 0) && (eldExtCnt++ < 15)) { in EldSpecificConfig_Parse()
1606 if ((INT)FDKgetValidBits(hBs) < 0) { in EldSpecificConfig_Parse()
1629 eldExtLenSum = eldExtLenSum - FDKgetValidBits(hBs); in EldSpecificConfig_Parse()
1725 bsAnchor = (INT)FDKgetValidBits(hBs); in extElementConfig()
1756 (bsAnchor - (INT)FDKgetValidBits(hBs)); in extElementConfig()
[all …]
Dtpdec_latm.cpp247 cntBits = FDKgetValidBits(bs); in CLatmDemux_Read()
373 if (ascLen < 0 || ascLen > (INT)FDKgetValidBits(bs)) { in CLatmDemux_ReadStreamMuxConfig()
398 if (0 > (INT)FDKgetValidBits(&tmpBs)) { in CLatmDemux_ReadStreamMuxConfig()
596 int validBytes = (int)FDKgetValidBits(bs) >> 3; in CLatmDemux_ReadAuChunkLengthInfo()
Dtpdec_adif.cpp113 UINT startAnchor = FDKgetValidBits(bs); in adifRead_DecodeHeader()
/external/aac/libMpegTPEnc/src/
Dtpenc_latm.cpp339 const UINT alignAnchor = FDKgetValidBits(hBs); in CreateStreamMuxConfig()
349 ascLen = FDKgetValidBits(hBs) - alignAnchor - ascLen; in CreateStreamMuxConfig()
350 FDKpushBack(hBs, FDKgetValidBits(hBs) - alignAnchor); in CreateStreamMuxConfig()
363 FDKgetValidBits(hBs) - in CreateStreamMuxConfig()
691 hAss->latmSubframeStart = FDKgetValidBits(hBs); in transportEnc_LatmWrite()
702 FDKgetValidBits(hBs); /* store read pointer position */ in transportEnc_LatmWrite()
736 ((FDKgetValidBits(hBs) + hAss->otherDataLenBits + 7) >> 3) - in transportEnc_LatmGetFrame()
759 FDK_ASSERT((FDKgetValidBits(hBs) % 8) == 0); in transportEnc_LatmGetFrame()
764 *pBytes = (FDKgetValidBits(hBs) + 7) >> 3; in transportEnc_LatmGetFrame()
Dtpenc_lib.cpp428 hTp->writer.raw.prevBits = FDKgetValidBits(hBs); in transportEnc_WriteAccessUnit()
439 UINT alignAnchor = FDKgetValidBits(&hTp->bitStream); in transportEnc_WriteAccessUnit()
511 *nbytes = (FDKgetValidBits(hBs) + 7) >> 3; in transportEnc_GetFrame()
518 FDK_ASSERT((INT)FDKgetValidBits(hBs) >= 0); in transportEnc_GetFrame()
519 *nbytes = (FDKgetValidBits(hBs) + 7) >> 3; in transportEnc_GetFrame()
524 *nbytes = ((FDKgetValidBits(hBs) - hTpEnc->writer.raw.prevBits) + 7) >> 3; in transportEnc_GetFrame()
Dtpenc_adts.cpp209 hAdts->subFrameStartBit = FDKgetValidBits(hBitStream); in adtsWrite_EncodeHeader()
279 FDKgetValidBits(hBs) - (56 + (hAdts->num_raw_blocks) * 16 + 16); in adtsWrite_EndRawDataBlock()
301 FDKwriteBits(&bsWriter, FDKgetValidBits(hBs) >> 3, 13); in adtsWrite_EndRawDataBlock()
Dtpenc_adif.cpp124 UINT alignAnchor = FDKgetValidBits(hBs); in adifWrite_EncodeHeader()
/external/aac/libAACdec/src/
Daacdec_hcr_bit.cpp142 readBitOffset = (INT)FDKgetValidBits(bs) - bsAnchor + *pLeftStartOfSegment; in HcrGetABitFromBitstream()
151 readBitOffset = (INT)FDKgetValidBits(bs) - bsAnchor + *pRightStartOfSegment; in HcrGetABitFromBitstream()
Daacdec_drc.cpp414 bsStartPos = FDKgetValidBits(bs); in aacDecoder_drcMarkPayload()
455 ((INT)FDKgetValidBits(bs) >= 0)) { in aacDecoder_drcMarkPayload()
506 if (!self->dvbAncDataAvailable && ((INT)FDKgetValidBits(bs) >= 0)) { in aacDecoder_drcMarkPayload()
534 FDKpushBiDirectional(bs, (INT)FDKgetValidBits(bs) - (INT)payloadPosition); in aacDecoder_drcParse()
611 FDKpushBiDirectional(bs, (INT)FDKgetValidBits(bs) - (INT)payloadPosition); in aacDecoder_drcReadCompression()
614 if (FDKgetValidBits(bs) < 24) { in aacDecoder_drcReadCompression()
712 backupBsPosition = FDKgetValidBits(hBs); in aacDecoder_drcExtractAndMap()
747 FDKpushBiDirectional(hBs, (INT)FDKgetValidBits(hBs) - (INT)backupBsPosition); in aacDecoder_drcExtractAndMap()
Drvlcbit.cpp129 INT readBitOffset = (INT)FDKgetValidBits(bs) - bsAnchor + *pPosition; in rvlcReadBitFromBitstream()
Daacdecoder.cpp465 dataStart = (INT)FDKgetValidBits(bs); in CDataStreamElement_Read()
472 FDKpushBack(bs, dataStart - (INT)FDKgetValidBits(bs)); in CDataStreamElement_Read()
482 FDKpushBack(bs, dataStart - (INT)FDKgetValidBits(bs)); in CDataStreamElement_Read()
492 FDKpushBiDirectional(bs, (INT)FDKgetValidBits(bs) - dataStart + (INT)dseBits); in CDataStreamElement_Read()
746 auStartAnchor = (INT)FDKgetValidBits(hBs); in CAacDecoder_PreRollExtensionPayloadParse()
847 prerollAUOffset[i] = auStartAnchor - (INT)FDKgetValidBits(hBs); in CAacDecoder_PreRollExtensionPayloadParse()
889 } else if ((INT)FDKgetValidBits(hBs) < *count) { in CAacDecoder_ExtPayloadParse()
918 INT nBitsRemaining = FDKgetValidBits(hBs); in CAacDecoder_ExtPayloadParse()
943 readBits = (INT)nBitsRemaining - (INT)FDKgetValidBits(hBs); in CAacDecoder_ExtPayloadParse()
1250 if ((bitCnt = (INT)FDKgetValidBits(bs)) != 0) { in aacDecoder_ParseExplicitMpsAndSbr()
[all …]
Drvlc.cpp171 pRvlc->bsAnchor = (INT)FDKgetValidBits(bs); in rvlcInit()
187 pRvlc->bitstreamIndexEsc = pRvlc->bsAnchor - (INT)FDKgetValidBits(bs); in rvlcInit()
1147 saveBitCnt = (INT)FDKgetValidBits(bs); in CRvlc_Decode()
1162 bitCntOffst = (INT)FDKgetValidBits(bs) - saveBitCnt; in CRvlc_Decode()
/external/aac/libAACenc/src/
Dbitenc.cpp132 INT dbgVal = FDKgetValidBits(hBitStream); in FDKaacEnc_encodeSpectralData()
146 return (FDKgetValidBits(hBitStream) - dbgVal); in FDKaacEnc_encodeSpectralData()
246 INT dbgVal = FDKgetValidBits(hBitStream); in FDKaacEnc_encodeSectionData()
278 return (FDKgetValidBits(hBitStream) - dbgVal); in FDKaacEnc_encodeSectionData()
305 INT dbgVal = FDKgetValidBits(hBitStream); in FDKaacEnc_encodeScaleFactorData()
365 return (FDKgetValidBits(hBitStream) - dbgVal); in FDKaacEnc_encodeScaleFactorData()
782 INT tmp = (INT)FDKgetValidBits(hBitStream); in FDKaacEnc_writeDataStreamElement()
786 (INT)FDKgetValidBits(hBitStream) - tmp - MAX_DATA_ALIGN_BITS; in FDKaacEnc_writeDataStreamElement()
1196 UINT alignAnchor = FDKgetValidBits(hBs); in FDKaacEnc_WriteBitstream()
1240 bitMarkUp = FDKgetValidBits(hBs); in FDKaacEnc_WriteBitstream()
[all …]
Dmps_main.cpp461 alignAnchor = FDKgetValidBits(&Bs); in FDK_MpegsEnc_WriteFrameHeader()
469 numBits = FDKgetValidBits(&Bs); in FDK_MpegsEnc_WriteFrameHeader()
/external/aac/libFDK/src/
DFDK_crc.cpp284 hCrcInfo->crcRegData[reg].validBits = (INT)FDKgetValidBits(hBs); in FDKcrcStartReg()
299 (INT)FDKgetValidBits(hBs) - hCrcInfo->crcRegData[reg].validBits; in FDKcrcEndReg()
302 hCrcInfo->crcRegData[reg].validBits - (INT)FDKgetValidBits(hBs); in FDKcrcEndReg()
435 -(rD->validBits - (INT)FDKgetValidBits(&bsReader))); in crcCalc()
Dnlc_dec.cpp355 bitsAvail = FDKgetValidBits(strm); in huff_dec_1D()
368 bitsAvail = FDKgetValidBits(strm); in huff_dec_1D()
/external/aac/libSBRdec/src/
Dpsbitdec.cpp472 startbits = (INT)FDKgetValidBits(hBitBuf); in ReadPsData()
511 nBitsLeft -= startbits - (INT)FDKgetValidBits(hBitBuf); in ReadPsData()
520 return (UINT)(startbits - (INT)FDKgetValidBits(hBitBuf)); in ReadPsData()
593 return (startbits - (INT)FDKgetValidBits(hBitBuf)); in ReadPsData()
Dsbrdecoder.cpp1136 INT startPos = FDKgetValidBits(hBs); in sbrDecoder_Parse()
1183 if ((j = (int)FDKgetValidBits(hBs)) != 8) { in sbrDecoder_Parse()
1211 startPos = FDKgetValidBits(hBs); in sbrDecoder_Parse()
1273 if ((INT)FDKgetValidBits(hBs) <= 0) { in sbrDecoder_Parse()
1450 valBits = bsPayLen - ((INT)startPos - (INT)FDKgetValidBits(hBs)); in sbrDecoder_Parse()
1452 valBits = (INT)FDKgetValidBits(hBs); in sbrDecoder_Parse()
1558 *count -= startPos - (INT)FDKgetValidBits(hBs); in sbrDecoder_Parse()
/external/aac/libSACdec/src/
Dsac_dec_lib.cpp1198 bitsAvail = FDKgetValidBits(hBs); in mpegSurroundDecoder_ParseNoHeader()
1224 numSacBits = bitsAvail - (INT)FDKgetValidBits(hBs); in mpegSurroundDecoder_ParseNoHeader()
1321 mpsBsBits = (INT)FDKgetValidBits(hBs); in mpegSurroundDecoder_Parse()
1397 bitsRead = (INT)FDKgetValidBits(hMpsBsData); in mpegSurroundDecoder_Parse()
1404 bitsRead = (bitsRead - (INT)FDKgetValidBits(hMpsBsData)); in mpegSurroundDecoder_Parse()
1470 bitsAvail = FDKgetValidBits(hMpsBsData); in mpegSurroundDecoder_Parse()
1484 nbits = bitsAvail - (INT)FDKgetValidBits(hMpsBsData); in mpegSurroundDecoder_Parse()
1519 *pMpsDataBits -= (mpsBsBits - (INT)FDKgetValidBits(hBs)); in mpegSurroundDecoder_Parse()
Dsac_bitdec.cpp226 ba = fMin((int)FDKgetValidBits(bitstream), ba); in SpatialDecParseExtensionConfig()
248 tmp = (INT)FDKgetValidBits( in SpatialDecParseExtensionConfig()
260 bitsRead = tmp - FDKgetValidBits(bitstream); in SpatialDecParseExtensionConfig()
294 numFillBits = (INT)FDKgetValidBits(bitstream); in SpatialDecParseSpecificConfigHeader()
300 (INT)FDKgetValidBits(bitstream); /* the number of read bits (tmpBits) */ in SpatialDecParseSpecificConfigHeader()
454 cfgStartPos = FDKgetValidBits(bitstream); in SpatialDecParseSpecificConfig()
582 numHeaderBits = cfgStartPos - (INT)FDKgetValidBits(bitstream); in SpatialDecParseSpecificConfig()
612 (sacHeaderLen * 8) - (cfgStartPos - (INT)FDKgetValidBits(bitstream))); in SpatialDecParseSpecificConfig()
982 UINT alignAnchor = FDKgetValidBits( in SpatialDecParseFrameData()
/external/aac/libSBRenc/src/
Denv_bit.cpp229 FDK_ASSERT(FDKgetValidBits(&hCmonData->sbrBitbuf) % 8 == 4); in FDKsbrEnc_AssembleSbrBitstream()
/external/aac/libSACenc/src/
Dsacenc_bitstream.cpp588 if ((*pnOutputBits = FDKgetValidBits(&bitstream)) > in fdk_sacenc_writeSpatialSpecificConfig()
813 if ((*pnOutputBits = FDKgetValidBits(&bitstream)) > in fdk_sacenc_writeSpatialFrame()
/external/aac/libArithCoding/src/
Dac_arith_coder.cpp780 if ((INT)FDKgetValidBits(hBs) < 0) { in CArco_DecodeArithData()

12