Home
last modified time | relevance | path

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

12

/external/aac/libMpegTPDec/src/
Dtpdec_lib.cpp286 FDKpushBack(hBs, (INT)length * 8 - (INT)FDKgetValidBits(hBs)); in transportDec_OutOfBandConfig()
485 FDKpushBack(hBs, newConfigLength * 8 - FDKgetValidBits(hBs)); in transportDec_InBandConfig()
740 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
766 offset -= (INT)hTp->accessUnitAnchor[0] - (INT)FDKgetValidBits(hBs) + in transportDec_AdjustEndOfAccessUnit()
782 (INT)FDKgetValidBits(hBs)) - in transportDec_AdjustEndOfAccessUnit()
874 startPos = (INT)FDKgetValidBits(hBs); in transportDec_readHeader()
881 hTp->globalFramePos = FDKgetValidBits(hBs); in transportDec_readHeader()
889 (INT)hTp->globalFramePos - (INT)FDKgetValidBits(hBs)); in transportDec_readHeader()
944 (startPos - (INT)FDKgetValidBits(hBs)) - in transportDec_readHeader()
963 hTp->globalFramePos = 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()
325 pceBits = alignAnchor - 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()
1211 if (FDKgetValidBits(bs) < 24) { in getSampleRate()
1394 eldExtLenSum = FDKgetValidBits(hBs); in EldSpecificConfig_Parse()
1399 ((INT)FDKgetValidBits(hBs) >= 0)) { in EldSpecificConfig_Parse()
1458 if ((INT)FDKgetValidBits(hBs) < 0) { in EldSpecificConfig_Parse()
1481 eldExtLenSum = eldExtLenSum - FDKgetValidBits(hBs); in EldSpecificConfig_Parse()
1579 bsAnchor = (INT)FDKgetValidBits(hBs); in extElementConfig()
1608 (bsAnchor - (INT)FDKgetValidBits(hBs)); in extElementConfig()
[all …]
Dtpdec_adif.cpp113 UINT startAnchor = FDKgetValidBits(bs); in adifRead_DecodeHeader()
Dtpdec_latm.cpp247 cntBits = FDKgetValidBits(bs); in CLatmDemux_Read()
373 if (ascLen > FDKgetValidBits(bs)) { in CLatmDemux_ReadStreamMuxConfig()
398 if (0 > (INT)FDKgetValidBits(&tmpBs)) { in CLatmDemux_ReadStreamMuxConfig()
/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/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/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.cpp399 bsStartPos = FDKgetValidBits(bs); in aacDecoder_drcMarkPayload()
440 ((INT)FDKgetValidBits(bs) >= 0)) { in aacDecoder_drcMarkPayload()
491 if (!self->dvbAncDataAvailable && ((INT)FDKgetValidBits(bs) >= 0)) { in aacDecoder_drcMarkPayload()
519 FDKpushBiDirectional(bs, (INT)FDKgetValidBits(bs) - (INT)payloadPosition); in aacDecoder_drcParse()
596 FDKpushBiDirectional(bs, (INT)FDKgetValidBits(bs) - (INT)payloadPosition); in aacDecoder_drcReadCompression()
599 if (FDKgetValidBits(bs) < 24) { in aacDecoder_drcReadCompression()
697 backupBsPosition = FDKgetValidBits(hBs); in aacDecoder_drcExtractAndMap()
732 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()
677 auStartAnchor = (INT)FDKgetValidBits(hBs); in CAacDecoder_PreRollExtensionPayloadParse()
773 prerollAUOffset[i] = auStartAnchor - (INT)FDKgetValidBits(hBs); in CAacDecoder_PreRollExtensionPayloadParse()
815 } else if ((INT)FDKgetValidBits(hBs) < *count) { in CAacDecoder_ExtPayloadParse()
844 INT nBitsRemaining = FDKgetValidBits(hBs); in CAacDecoder_ExtPayloadParse()
869 readBits = (INT)nBitsRemaining - (INT)FDKgetValidBits(hBs); in CAacDecoder_ExtPayloadParse()
1176 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()
1146 saveBitCnt = (INT)FDKgetValidBits(bs); in CRvlc_Decode()
1161 bitCntOffst = (INT)FDKgetValidBits(bs) - saveBitCnt; in CRvlc_Decode()
Daacdec_hcr.cpp295 pHcr->decInOut.bitstreamAnchor = (INT)FDKgetValidBits(bs); in HcrInit()
440 INT saveBitCnt = (INT)FDKgetValidBits(bs); /* save bitstream position */ in HcrDecoder()
491 bitCntOffst = (INT)FDKgetValidBits(bs) - saveBitCnt; in HcrDecoder()
/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()
/external/aac/libSBRdec/src/
Dsbr_crc.cpp177 NrBitsAvailable = FDKgetValidBits(hBs); in SbrCrcCheck()
185 FDKpushBack(hBs, (NrBitsAvailable - FDKgetValidBits(hBs))); in SbrCrcCheck()
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()
1179 if ((j = (int)FDKgetValidBits(hBs)) != 8) { in sbrDecoder_Parse()
1207 startPos = FDKgetValidBits(hBs); in sbrDecoder_Parse()
1269 if ((INT)FDKgetValidBits(hBs) <= 0) { in sbrDecoder_Parse()
1448 valBits = bsPayLen - ((INT)startPos - (INT)FDKgetValidBits(hBs)); in sbrDecoder_Parse()
1450 valBits = (INT)FDKgetValidBits(hBs); in sbrDecoder_Parse()
1458 (INT)startPos - (INT)FDKgetValidBits(hBs) - startPos; in sbrDecoder_Parse()
1571 *count -= startPos - (INT)FDKgetValidBits(hBs); in sbrDecoder_Parse()
/external/aac/libSACdec/src/
Dsac_dec_lib.cpp1183 bitsAvail = FDKgetValidBits(hBs); in mpegSurroundDecoder_ParseNoHeader()
1209 numSacBits = bitsAvail - (INT)FDKgetValidBits(hBs); in mpegSurroundDecoder_ParseNoHeader()
1306 mpsBsBits = (INT)FDKgetValidBits(hBs); in mpegSurroundDecoder_Parse()
1382 bitsRead = (INT)FDKgetValidBits(hMpsBsData); in mpegSurroundDecoder_Parse()
1389 bitsRead = (bitsRead - (INT)FDKgetValidBits(hMpsBsData)); in mpegSurroundDecoder_Parse()
1455 bitsAvail = FDKgetValidBits(hMpsBsData); in mpegSurroundDecoder_Parse()
1469 nbits = bitsAvail - (INT)FDKgetValidBits(hMpsBsData); in mpegSurroundDecoder_Parse()
1504 *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()
577 numHeaderBits = cfgStartPos - (INT)FDKgetValidBits(bitstream); in SpatialDecParseSpecificConfig()
607 (sacHeaderLen * 8) - (cfgStartPos - (INT)FDKgetValidBits(bitstream))); in SpatialDecParseSpecificConfig()
977 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()

12