Home
last modified time | relevance | path

Searched refs:hBs (Results 1 – 25 of 39) 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.cpp227 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_OutOfBandConfig() local
229 FDKinitBitStream(hBs, conf, 0x10000000, length<<3, BS_READER); in transportDec_OutOfBandConfig()
243 … err = CLatmDemux_ReadStreamMuxConfig(hBs, pLatmDemux, &hTp->callbacks, hTp->asc, &fConfigFound); in transportDec_OutOfBandConfig()
251 err = AudioSpecificConfig_Parse(&hTp->asc[layer], hBs, 1, &hTp->callbacks); in transportDec_OutOfBandConfig()
263 err = DrmRawSdcAudioConfig_Parse(&hTp->asc[layer], hBs); in transportDec_OutOfBandConfig()
319 HANDLE_FDK_BITSTREAM hBs; in transportDec_FillData() local
332 hBs = &hTp->bitStream[layer]; in transportDec_FillData()
340 FDKinitBitStream(hBs, pBuffer, 0x10000, (*pBytesValid)<<3, BS_READER); in transportDec_FillData()
346 FDKfeedBuffer (hBs, pBuffer, bufferSize, pBytesValid) ; in transportDec_FillData()
395 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream[0]; in transportDec_AdjustEndOfAccessUnit() local
[all …]
Dtpdec_drm.cpp107 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in drmRead_CrcStartReg() argument
115 pDrm->crcReadValue = FDKreadBits(hBs, 8); in drmRead_CrcStartReg()
117 return ( FDKcrcStartReg(&pDrm->crcInfo, hBs, mBits) ); in drmRead_CrcStartReg()
123 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in drmRead_CrcEndReg() argument
129 FDKcrcEndReg(&pDrm->crcInfo, hBs, reg); in drmRead_CrcEndReg()
Dtpdec_drm.h133 HANDLE_FDK_BITSTREAM hBs,
148 HANDLE_FDK_BITSTREAM hBs,
190 HANDLE_FDK_BITSTREAM hBs );
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.cpp642 HANDLE_FDK_BITSTREAM hBs, in sbrDecoder_Header() argument
684 hBs, in sbrDecoder_Header()
952 HANDLE_FDK_BITSTREAM hBs, in sbrDecoder_Parse() argument
973 HANDLE_FDK_BITSTREAM hBsOriginal = hBs; in sbrDecoder_Parse()
1001 if ((j = (int)FDKgetValidBits(hBs)) != 8) { in sbrDecoder_Parse()
1002 FDKpushBiDirectional(hBs, (j-8)); in sbrDecoder_Parse()
1012 tmpByte = (UCHAR) FDKreadBits(hBs, 8); in sbrDecoder_Parse()
1019 FDKpushBack(hBs, 16); in sbrDecoder_Parse()
1025 hBs = hBsBwd; in sbrDecoder_Parse()
1030 startPos = FDKgetValidBits(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
303 FDKwriteBits( hBs, hAss->audioMuxVersion, 1 ); /* audioMuxVersion */ in CreateStreamMuxConfig()
307 FDKwriteBits( hBs, hAss->audioMuxVersionA, 1 ); /* audioMuxVersionA */ in CreateStreamMuxConfig()
314 …hAss->streamMuxConfigBits+= transportEnc_LatmWriteValue( hBs, hAss->taraBufferFullness );/* taraBu… in CreateStreamMuxConfig()
316 FDKwriteBits( hBs, hAss->allStreamsSameTimeFraming ? 1:0, 1 ); /* allStreamsSameTimeFraming */ in CreateStreamMuxConfig()
317 FDKwriteBits( hBs, hAss->noSubframes-1, 6 ); /* Number of Subframes */ in CreateStreamMuxConfig()
318 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 …]
Daacdec_drc.h135 HANDLE_FDK_BITSTREAM hBs,
140 HANDLE_FDK_BITSTREAM hBs,
170 HANDLE_FDK_BITSTREAM hBs,
Daacdecoder.cpp274 HANDLE_FDK_BITSTREAM hBs, in CAacDecoder_AncDataParse() argument
299 ancData->buffer[i+offset] = FDKreadBits(hBs, 8); in CAacDecoder_AncDataParse()
313 FDKpushFor(hBs, readBytes<<3); in CAacDecoder_AncDataParse()
478 HANDLE_FDK_BITSTREAM hBs, in CAacDecoder_ExtPayloadParse() argument
491 } else if ((INT)FDKgetValidBits(hBs) < *count) { in CAacDecoder_ExtPayloadParse()
495 extension_type = (EXT_PAYLOAD_TYPE) FDKreadBits(hBs, 4); /* bs_extension_type */ in CAacDecoder_ExtPayloadParse()
502 INT readBits = aacDecoder_drcMarkPayload( self->hDrcInfo, hBs, MPEG_DRC_EXT_DATA ); in CAacDecoder_ExtPayloadParse()
534 hBs, in CAacDecoder_ExtPayloadParse()
555 FDKpushBiDirectional(hBs, *count); in CAacDecoder_ExtPayloadParse()
572 temp = FDKreadBits(hBs,4); in CAacDecoder_ExtPayloadParse()
[all …]
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.cpp138 HANDLE_FDK_BITSTREAM hBs = transportDec_GetBitstream(self->hInput, 0); in aacDecoder_GetFreeBytes() local
139 *pFreeBytes = FDKgetFreeBits(hBs) >> 3; in aacDecoder_GetFreeBytes()
745 static void aacDecoder_UpdateBitStreamCounters(CStreamInfo *pSi, HANDLE_FDK_BITSTREAM hBs, int nBit… in aacDecoder_UpdateBitStreamCounters() argument
748 nBits = nBits - FDKgetValidBits(hBs); in aacDecoder_UpdateBitStreamCounters()
797 HANDLE_FDK_BITSTREAM hBs; in aacDecoder_DecodeFrame() local
815 hBs = transportDec_GetBitstream(self->hInput, 0); in aacDecoder_DecodeFrame()
818 nBits = FDKgetValidBits(hBs); in aacDecoder_DecodeFrame()
1060 aacDecoder_UpdateBitStreamCounters(&self->streamInfo, hBs, nBits, ErrorStatus); in aacDecoder_DecodeFrame()
/external/aac/libPCMutils/src/
Dpcmutils_lib.cpp1654 HANDLE_FDK_BITSTREAM hBs, in pcmDmx_Parse() argument
1668 || (hBs == NULL) ) { return (PCMDMX_INVALID_HANDLE); } in pcmDmx_Parse()
1670 ancDataBits = FDKgetValidBits(hBs); in pcmDmx_Parse()
1674 || (ancDataBits > FDKgetValidBits(hBs)) ) { in pcmDmx_Parse()
1682 FDKpushFor(hBs, 16); in pcmDmx_Parse()
1686 if (FDKreadBits(hBs,8) != ANC_DATA_SYNC_BYTE) { in pcmDmx_Parse()
1691 FDKpushFor(hBs, 4); in pcmDmx_Parse()
1694 /* int numAncBytes = */ FDKreadBits(hBs, 4); in pcmDmx_Parse()
1696 if (FDKreadBit(hBs)) skip4Dmx += 24; in pcmDmx_Parse()
1698 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,

12