Home
last modified time | relevance | path

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

12

/external/aac/libMpegTPDec/src/
Dtpdec_adts.cpp105 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsRead_CrcStartReg() argument
113 return ( FDKcrcStartReg(&pAdts->crcInfo, hBs, mBits) ); in adtsRead_CrcStartReg()
119 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsRead_CrcEndReg() argument
125 FDKcrcEndReg(&pAdts->crcInfo, hBs, reg); in adtsRead_CrcEndReg()
168 HANDLE_FDK_BITSTREAM hBs, in adtsRead_DecodeHeader() argument
187 valBits = FDKgetValidBits(hBs); in adtsRead_DecodeHeader()
190 bs.mpeg_id = FDKreadBits(hBs, Adts_Length_Id); in adtsRead_DecodeHeader()
191 bs.layer = FDKreadBits(hBs, Adts_Length_Layer); in adtsRead_DecodeHeader()
192 bs.protection_absent = FDKreadBits(hBs, Adts_Length_ProtectionAbsent); in adtsRead_DecodeHeader()
193 bs.profile = FDKreadBits(hBs, Adts_Length_Profile); in adtsRead_DecodeHeader()
[all …]
Dtpdec_lib.cpp222 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_OutOfBandConfig() local
224 FDKinitBitStream(hBs, conf, 0x10000000, length<<3, BS_READER); in transportDec_OutOfBandConfig()
238 … err = CLatmDemux_ReadStreamMuxConfig(hBs, pLatmDemux, &hTp->callbacks, hTp->asc, &fConfigFound); in transportDec_OutOfBandConfig()
246 err = AudioSpecificConfig_Parse(&hTp->asc[layer], hBs, 1, &hTp->callbacks); in transportDec_OutOfBandConfig()
302 HANDLE_FDK_BITSTREAM hBs; in transportDec_FillData() local
315 hBs = &hTp->bitStream[layer]; in transportDec_FillData()
323 FDKinitBitStream(hBs, pBuffer, 0x10000, (*pBytesValid)<<3, BS_READER); in transportDec_FillData()
329 FDKfeedBuffer (hBs, pBuffer, bufferSize, pBytesValid) ; in transportDec_FillData()
378 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in transportDec_AdjustEndOfAccessUnit() local
388 FDKbyteAlign(hBs, hTp->globalFramePos); in transportDec_AdjustEndOfAccessUnit()
[all …]
Dtpdec_asc.cpp1056 HANDLE_FDK_BITSTREAM hBs, in ld_sbr_header() argument
1064 …error = cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency,… in ld_sbr_header()
1066 …error = cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency,… in ld_sbr_header()
1073 …error |= cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency… in ld_sbr_header()
1076 …error |= cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency… in ld_sbr_header()
1078 …error |= cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency… in ld_sbr_header()
1082 …error |= cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency… in ld_sbr_header()
1084 …error |= cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency… in ld_sbr_header()
1085 …error |= cb->cbSbr(cb->cbSbrData, hBs, asc->m_samplingFrequency, asc->m_extensionSamplingFrequency… in ld_sbr_header()
1095 HANDLE_FDK_BITSTREAM hBs, in EldSpecificConfig_Parse() argument
[all …]
Dtpdec_adts.h169 HANDLE_FDK_BITSTREAM hBs,
184 HANDLE_FDK_BITSTREAM hBs,
/external/aac/libSBRdec/src/
Denv_extr.cpp140 static int extractFrameInfo (HANDLE_FDK_BITSTREAM hBs,
150 HANDLE_FDK_BITSTREAM hBs,
154 HANDLE_FDK_BITSTREAM hBs);
158 HANDLE_FDK_BITSTREAM hBs);
270 HANDLE_FDK_BITSTREAM hBs, in sbrGetHeaderData() argument
289 hHeaderData->bs_info.ampResolution = FDKreadBits (hBs, 1); in sbrGetHeaderData()
292 pBsData->startFreq = FDKreadBits (hBs, 4); in sbrGetHeaderData()
293 pBsData->stopFreq = FDKreadBits (hBs, 4); in sbrGetHeaderData()
296 hHeaderData->bs_info.xover_band = FDKreadBits (hBs, 3); in sbrGetHeaderData()
297 FDKreadBits (hBs, 2); in sbrGetHeaderData()
[all …]
Dsbr_crc.cpp124 getCrc (HANDLE_FDK_BITSTREAM hBs, ULONG NrBits) in getCrc() argument
139 bValue = FDKreadBits (hBs, MAXCRCSTEP); in getCrc()
143 bValue = FDKreadBits (hBs, CrcNrBitsRest); in getCrc()
156 SbrCrcCheck (HANDLE_FDK_BITSTREAM hBs, /*!< handle to bit-buffer */ in SbrCrcCheck() argument
165 crcCheckSum = FDKreadBits (hBs, 10); in SbrCrcCheck()
167 NrBitsAvailable = FDKgetValidBits(hBs); in SbrCrcCheck()
174 crcCheckResult = getCrc (hBs, NrCrcBits); in SbrCrcCheck()
175 FDKpushBack(hBs, (NrBitsAvailable - FDKgetValidBits(hBs)) ); in SbrCrcCheck()
Dsbrdecoder.cpp608 HANDLE_FDK_BITSTREAM hBs, in sbrDecoder_Header() argument
650 hBs, in sbrDecoder_Header()
918 HANDLE_FDK_BITSTREAM hBs, in sbrDecoder_Parse() argument
947 startPos = FDKgetValidBits(hBs); in sbrDecoder_Parse()
996 if ((INT)FDKgetValidBits(hBs) <= 0) { in sbrDecoder_Parse()
1009 FDKpushFor (hBs, 10); in sbrDecoder_Parse()
1017 fDoDecodeSbrData = SbrCrcCheck (hBs, CRCLen); in sbrDecoder_Parse()
1032 sbrHeaderPresent = FDKreadBit(hBs); in sbrDecoder_Parse()
1037 hBs, in sbrDecoder_Parse()
1076 hBs, in sbrDecoder_Parse()
[all …]
Dhuff_dec.cpp106 HANDLE_FDK_BITSTREAM hBs) /*!< Handle to Bitbuffer */ in DecodeHuffmanCW() argument
112 bit = FDKreadBits (hBs, 1); in DecodeHuffmanCW()
/external/aac/libMpegTPEnc/src/
Dtpenc_latm.cpp113 UINT transportEnc_LatmWriteValue(HANDLE_FDK_BITSTREAM hBs, int value) in transportEnc_LatmWriteValue() argument
129 FDKwriteBits(hBs, valueBytes-1, 2 ); /* size of value in Bytes */ in transportEnc_LatmWriteValue()
132 FDKwriteBits(hBs, (UCHAR)(value>>((valueBytes-1-i)<<3)), 8); in transportEnc_LatmWriteValue()
289 HANDLE_FDK_BITSTREAM hBs, in CreateStreamMuxConfig() argument
302 FDKwriteBits( hBs, hAss->audioMuxVersion, 1 ); /* audioMuxVersion */ in CreateStreamMuxConfig()
306 FDKwriteBits( hBs, hAss->audioMuxVersionA, 1 ); /* audioMuxVersionA */ in CreateStreamMuxConfig()
313 …hAss->streamMuxConfigBits+= transportEnc_LatmWriteValue( hBs, hAss->taraBufferFullness );/* taraBu… in CreateStreamMuxConfig()
315 FDKwriteBits( hBs, hAss->allStreamsSameTimeFraming ? 1:0, 1 ); /* allStreamsSameTimeFraming */ in CreateStreamMuxConfig()
316 FDKwriteBits( hBs, hAss->noSubframes-1, 6 ); /* Number of Subframes */ in CreateStreamMuxConfig()
317 FDKwriteBits( hBs, hAss->noProgram-1, 4 ); /* Number of Programs */ in CreateStreamMuxConfig()
[all …]
Dtpenc_adif.cpp98 HANDLE_FDK_BITSTREAM hBs, in adifWrite_EncodeHeader() argument
116 UINT alignAnchor = FDKgetValidBits(hBs); in adifWrite_EncodeHeader()
121 FDKwriteBits(hBs, adifId[0],8); in adifWrite_EncodeHeader()
122 FDKwriteBits(hBs, adifId[1],8); in adifWrite_EncodeHeader()
123 FDKwriteBits(hBs, adifId[2],8); in adifWrite_EncodeHeader()
124 FDKwriteBits(hBs, adifId[3],8); in adifWrite_EncodeHeader()
127 FDKwriteBits(hBs, copyRightIdPresent ? 1:0,1); in adifWrite_EncodeHeader()
131 FDKwriteBits(hBs,0,1); in adifWrite_EncodeHeader()
134 FDKwriteBits(hBs, originalCopy ? 1:0,1); in adifWrite_EncodeHeader()
135 FDKwriteBits(hBs, home ? 1:0,1); in adifWrite_EncodeHeader()
[all …]
Dtpenc_asc.cpp219 int transportEnc_writePCE(HANDLE_FDK_BITSTREAM hBs, in transportEnc_writePCE() argument
245 FDKwriteBits(hBs, instanceTagPCE, 4); /* Element instance tag */ in transportEnc_writePCE()
246 FDKwriteBits(hBs, profile, 2); /* Object type */ in transportEnc_writePCE()
247 FDKwriteBits(hBs, sampleRateIndex, 4); /* Sample rate index*/ in transportEnc_writePCE()
249 FDKwriteBits(hBs, config->num_front_channel_elements, 4); /* Front channel Elements */ in transportEnc_writePCE()
250 FDKwriteBits(hBs, config->num_side_channel_elements , 4); /* No Side Channel Elements */ in transportEnc_writePCE()
251 FDKwriteBits(hBs, config->num_back_channel_elements , 4); /* No Back channel Elements */ in transportEnc_writePCE()
252 FDKwriteBits(hBs, config->num_lfe_channel_elements , 2); /* No Lfe channel elements */ in transportEnc_writePCE()
254 FDKwriteBits(hBs, 0, 3); /* No assoc data elements */ in transportEnc_writePCE()
255 FDKwriteBits(hBs, 0, 4); /* No valid cc elements */ in transportEnc_writePCE()
[all …]
Dtpenc_adts.cpp100 … HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsWrite_CrcStartReg() argument
107 return ( FDKcrcStartReg(&pAdts->crcInfo, hBs, mBits) ); in adtsWrite_CrcStartReg()
112 … HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsWrite_CrcEndReg() argument
118 FDKcrcEndReg(&pAdts->crcInfo, hBs, reg); in adtsWrite_CrcEndReg()
256 HANDLE_FDK_BITSTREAM hBs, in adtsWrite_EndRawDataBlock() argument
262 FDKinitBitStream(&bsWriter, hBs->hBitBuf.Buffer, hBs->hBitBuf.bufSize, 0, BS_WRITER); in adtsWrite_EndRawDataBlock()
271 FDKwriteBits(hBs, FDKcrcGetCRC(&hAdts->crcInfo), 16); in adtsWrite_EndRawDataBlock()
276 distance = FDKgetValidBits(hBs) - (56 + (hAdts->num_raw_blocks)*16 + 16); in adtsWrite_EndRawDataBlock()
288 FDKinitBitStream(&bsWriter, hBs->hBitBuf.Buffer, hBs->hBitBuf.bufSize, 0, BS_WRITER); in adtsWrite_EndRawDataBlock()
296 FDKwriteBits(&bsWriter, FDKgetValidBits(hBs)>>3, 13); in adtsWrite_EndRawDataBlock()
Dtpenc_lib.cpp359 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream; in transportEnc_WriteAccessUnit() local
371 hBs, in transportEnc_WriteAccessUnit()
394 hBs, in transportEnc_WriteAccessUnit()
405 hTp->writer.raw.prevBits = FDKgetValidBits(hBs); in transportEnc_WriteAccessUnit()
470 HANDLE_FDK_BITSTREAM hBs = &hTpEnc->bitStream; in transportEnc_GetFrame() local
477 transportEnc_LatmGetFrame(&hTpEnc->writer.latm, hBs, nbytes); in transportEnc_GetFrame()
481 *nbytes = (FDKgetValidBits(hBs) + 7)>>3; in transportEnc_GetFrame()
488 FDK_ASSERT((INT)FDKgetValidBits(hBs) >= 0); in transportEnc_GetFrame()
489 *nbytes = (FDKgetValidBits(hBs) + 7)>>3; in transportEnc_GetFrame()
492 FDKsyncCache(hBs); in transportEnc_GetFrame()
[all …]
Dtpenc_adts.h176 HANDLE_FDK_BITSTREAM hBs,
197 HANDLE_FDK_BITSTREAM hBs,
210 HANDLE_FDK_BITSTREAM hBs,
Dtpenc_latm.h176 HANDLE_FDK_BITSTREAM hBs,
241 HANDLE_FDK_BITSTREAM hBs,
258 HANDLE_FDK_BITSTREAM hBs,
/external/aac/libFDK/src/
DFDK_crc.cpp182 HANDLE_FDK_BITSTREAM hBs,
189 HANDLE_FDK_BITSTREAM hBs,
195 HANDLE_FDK_BITSTREAM hBs,
256 const HANDLE_FDK_BITSTREAM hBs, in FDKcrcStartReg() argument
265 hCrcInfo->crcRegData[reg].validBits = FDKgetValidBits(hBs) ; in FDKcrcStartReg()
275 const HANDLE_FDK_BITSTREAM hBs, in FDKcrcEndReg() argument
281 if (hBs->ConfigCache==BS_WRITER) { in FDKcrcEndReg()
282 …hCrcInfo->crcRegData[reg].bitBufCntBits = FDKgetValidBits(hBs) - hCrcInfo->crcRegData[reg].validBi… in FDKcrcEndReg()
285 …rcInfo->crcRegData[reg].bitBufCntBits = hCrcInfo->crcRegData[reg].validBits - FDKgetValidBits(hBs); in FDKcrcEndReg()
292 crcCalc( hCrcInfo, hBs, reg); in FDKcrcEndReg()
[all …]
/external/aac/libAACdec/src/
Dchannel.cpp228 AAC_DECODER_ERROR CChannelElement_Read(HANDLE_FDK_BITSTREAM hBs, in CChannelElement_Read() argument
276 pAacDecoderChannelInfo[0]->ElementInstanceTag = FDKreadBits(hBs, 4); in CChannelElement_Read()
282 …ecision_bit = pAacDecoderChannelInfo[ch]->pDynData->RawDataInfo.CommonWindow = FDKreadBits(hBs, 1); in CChannelElement_Read()
289 error = IcsRead( hBs, in CChannelElement_Read()
301 if (FDKreadBits(hBs, 1) != 0) { in CChannelElement_Read()
308 hBs, in CChannelElement_Read()
320 pAacDecoderChannelInfo[ch]->pDynData->RawDataInfo.GlobalGain = (UCHAR) FDKreadBits(hBs,8); in CChannelElement_Read()
324 error = CBlock_ReadSectionData( hBs, in CChannelElement_Read()
334 CRvlc_Read(pAacDecoderChannelInfo[ch], hBs); in CChannelElement_Read()
338 error = CBlock_ReadScaleFactorData(pAacDecoderChannelInfo[ch], hBs, flags); in CChannelElement_Read()
[all …]
Daacdecoder.cpp288 HANDLE_FDK_BITSTREAM hBs, in CAacDecoder_AncDataParse() argument
313 ancData->buffer[i+offset] = FDKreadBits(hBs, 8); in CAacDecoder_AncDataParse()
327 FDKpushFor(hBs, readBytes<<3); in CAacDecoder_AncDataParse()
492 HANDLE_FDK_BITSTREAM hBs, in CAacDecoder_ExtPayloadParse() argument
505 } else if ((INT)FDKgetValidBits(hBs) < *count) { in CAacDecoder_ExtPayloadParse()
509 extension_type = (EXT_PAYLOAD_TYPE) FDKreadBits(hBs, 4); /* bs_extension_type */ in CAacDecoder_ExtPayloadParse()
516 INT readBits = aacDecoder_drcMarkPayload( self->hDrcInfo, hBs, MPEG_DRC_EXT_DATA ); in CAacDecoder_ExtPayloadParse()
548 hBs, in CAacDecoder_ExtPayloadParse()
568 FDKpushBiDirectional(hBs, *count); in CAacDecoder_ExtPayloadParse()
585 temp = FDKreadBits(hBs,4); in CAacDecoder_ExtPayloadParse()
[all …]
Daacdec_drc.h135 HANDLE_FDK_BITSTREAM hBs,
140 HANDLE_FDK_BITSTREAM hBs,
170 HANDLE_FDK_BITSTREAM hBs,
Daacdec_drc.cpp668 HANDLE_FDK_BITSTREAM hBs, in aacDecoder_drcExtractAndMap() argument
682 FDK_ASSERT(hBs != NULL); in aacDecoder_drcExtractAndMap()
688 backupBsPosition = FDKgetValidBits(hBs); in aacDecoder_drcExtractAndMap()
699 bitsParsed = aacDecoder_drcParse( hBs, in aacDecoder_drcExtractAndMap()
718 bitsParsed = aacDecoder_drcReadCompression( hBs, in aacDecoder_drcExtractAndMap()
728 FDKpushBiDirectional(hBs, FDKgetValidBits(hBs) - backupBsPosition); in aacDecoder_drcExtractAndMap()
1110 HANDLE_FDK_BITSTREAM hBs, in aacDecoder_drcProlog() argument
1126 hBs, in aacDecoder_drcProlog()
1142 HANDLE_FDK_BITSTREAM hBs, in aacDecoder_drcEpilog() argument
1158 hBs, in aacDecoder_drcEpilog()
Daacdecoder_lib.cpp133 HANDLE_FDK_BITSTREAM hBs = transportDec_GetBitstream(self->hInput, 0); in aacDecoder_GetFreeBytes() local
134 *pFreeBytes = FDKgetFreeBits(hBs) >> 3; in aacDecoder_GetFreeBytes()
739 static void aacDecoder_UpdateBitStreamCounters(CStreamInfo *pSi, HANDLE_FDK_BITSTREAM hBs, int nBit… in aacDecoder_UpdateBitStreamCounters() argument
742 nBits = nBits - FDKgetValidBits(hBs); in aacDecoder_UpdateBitStreamCounters()
791 HANDLE_FDK_BITSTREAM hBs; in aacDecoder_DecodeFrame() local
804 hBs = transportDec_GetBitstream(self->hInput, 0); in aacDecoder_DecodeFrame()
807 nBits = FDKgetValidBits(hBs); in aacDecoder_DecodeFrame()
1047 aacDecoder_UpdateBitStreamCounters(&self->streamInfo, hBs, nBits, ErrorStatus); in aacDecoder_DecodeFrame()
/external/aac/libPCMutils/src/
Dpcmutils_lib.cpp1649 HANDLE_FDK_BITSTREAM hBs, in pcmDmx_Parse() argument
1663 || (hBs == NULL) ) { return (PCMDMX_INVALID_HANDLE); } in pcmDmx_Parse()
1665 ancDataBits = FDKgetValidBits(hBs); in pcmDmx_Parse()
1669 || (ancDataBits > FDKgetValidBits(hBs)) ) { in pcmDmx_Parse()
1677 FDKpushFor(hBs, 16); in pcmDmx_Parse()
1681 if (FDKreadBits(hBs,8) != ANC_DATA_SYNC_BYTE) { in pcmDmx_Parse()
1686 FDKpushFor(hBs, 4); in pcmDmx_Parse()
1689 /* int numAncBytes = */ FDKreadBits(hBs, 4); in pcmDmx_Parse()
1691 if (FDKreadBit(hBs)) skip4Dmx += 24; in pcmDmx_Parse()
1693 if (FDKreadBit(hBs)) skip4Dmx += 8; in pcmDmx_Parse()
[all …]
/external/aac/libFDK/include/
DFDK_crc.h194 const HANDLE_FDK_BITSTREAM hBs,
214 const HANDLE_FDK_BITSTREAM hBs,
/external/aac/libSBRdec/include/
Dsbrdecoder.h204 HANDLE_FDK_BITSTREAM hBs,
278 HANDLE_FDK_BITSTREAM hBs,
/external/aac/libAACenc/src/
Dbitenc.cpp1291 HANDLE_FDK_BITSTREAM hBs = transportEnc_GetBitstream(hTpEnc); in FDKaacEnc_WriteBitstream() local
1299 UINT alignAnchor = FDKgetValidBits(hBs); in FDKaacEnc_WriteBitstream()
1354 bitMarkUp = FDKgetValidBits(hBs); in FDKaacEnc_WriteBitstream()
1422 if (((FDKgetValidBits(hBs)-alignAnchor+(UINT)qcOut->totFillBits)&0x7)!=(UINT)qcOut->alignBits) { in FDKaacEnc_WriteBitstream()
1425 FDKaacEnc_ByteAlignment(hBs, qcOut->alignBits); in FDKaacEnc_WriteBitstream()
1451 FDKwriteBits(hBs, ID_END, EL_ID_BITS); in FDKaacEnc_WriteBitstream()
1456 if (((alignAnchor-FDKgetValidBits(hBs))&0x7)!=(UINT)qcOut->alignBits) { in FDKaacEnc_WriteBitstream()
1460 FDKaacEnc_ByteAlignment(hBs, qcOut->alignBits); in FDKaacEnc_WriteBitstream()
1464 frameBits += FDKgetValidBits(hBs); in FDKaacEnc_WriteBitstream()

12