/external/aac/libDRCdec/src/ |
D | drcDec_reader.cpp | 156 HANDLE_FDK_BITSTREAM hBs) /*!< Handle to bitbuffer */ in _decodeHuffmanCW() argument 162 bit = FDKreadBits(hBs, 1); in _decodeHuffmanCW() 176 drcDec_readUniDrc(HANDLE_FDK_BITSTREAM hBs, HANDLE_UNI_DRC_CONFIG hUniDrcConfig, in drcDec_readUniDrc() argument 183 loudnessInfoSetPresent = FDKreadBits(hBs, 1); in drcDec_readUniDrc() 185 uniDrcConfigPresent = FDKreadBits(hBs, 1); in drcDec_readUniDrc() 187 err = drcDec_readUniDrcConfig(hBs, hUniDrcConfig); in drcDec_readUniDrc() 194 err = drcDec_readLoudnessInfoSet(hBs, hLoudnessInfoSet); in drcDec_readUniDrc() 202 err = drcDec_readUniDrcGain(hBs, hUniDrcConfig, frameSize, deltaTminDefault, in drcDec_readUniDrc() 213 HANDLE_FDK_BITSTREAM hBs, const GAIN_CODING_PROFILE gainCodingProfile) { in _decodeGainInitial() argument 218 sign = FDKreadBits(hBs, 1); in _decodeGainInitial() [all …]
|
D | drcDec_reader.h | 111 drcDec_readUniDrc(HANDLE_FDK_BITSTREAM hBs, HANDLE_UNI_DRC_CONFIG hUniDrcConfig, 117 drcDec_readUniDrcGain(HANDLE_FDK_BITSTREAM hBs, 123 drcDec_readUniDrcConfig(HANDLE_FDK_BITSTREAM hBs, 127 drcDec_readLoudnessInfoSet(HANDLE_FDK_BITSTREAM hBs,
|
/external/aac/libMpegTPDec/src/ |
D | tpdec_adts.cpp | 115 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsRead_CrcStartReg() argument 122 return (FDKcrcStartReg(&pAdts->crcInfo, hBs, mBits)); in adtsRead_CrcStartReg() 127 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsRead_CrcEndReg() argument 131 FDKcrcEndReg(&pAdts->crcInfo, hBs, reg); in adtsRead_CrcEndReg() 168 HANDLE_FDK_BITSTREAM hBs, in adtsRead_DecodeHeader() argument 183 valBits = FDKgetValidBits(hBs) + ADTS_SYNCLENGTH; 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 …]
|
D | tpdec_lib.cpp | 270 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_OutOfBandConfig() local 282 FDKinitBitStream(hBs, tmpConf, 1024, length << 3, BS_READER); in transportDec_OutOfBandConfig() 286 FDKpushBack(hBs, (INT)length * 8 - (INT)FDKgetValidBits(hBs)); in transportDec_OutOfBandConfig() 299 err = CLatmDemux_ReadStreamMuxConfig(hBs, pLatmDemux, &hTp->callbacks, in transportDec_OutOfBandConfig() 308 err = AudioSpecificConfig_Parse(&hTp->asc[(1 * 1)], hBs, 1, in transportDec_OutOfBandConfig() 325 err = DrmRawSdcAudioConfig_Parse(&hTp->asc[layer], hBs, &hTp->callbacks, in transportDec_OutOfBandConfig() 371 HANDLE_FDK_BITSTREAM hBs = &bs; in transportDec_InBandConfig() local 379 FDKinitBitStream(hBs, newConfig, TP_USAC_MAX_CONFIG_LEN, newConfigLength << 3, in transportDec_InBandConfig() 485 FDKpushBack(hBs, in transportDec_InBandConfig() 486 (INT)newConfigLength * 8 - (INT)FDKgetValidBits(hBs)); in transportDec_InBandConfig() [all …]
|
D | tpdec_asc.cpp | 1410 static INT skipSbrHeader(HANDLE_FDK_BITSTREAM hBs, int isUsac) { in skipSbrHeader() argument 1416 FDKpushFor(hBs, 6); /* amp res 1, xover freq 3, reserved 2 */ in skipSbrHeader() 1419 FDKpushFor(hBs, 8); /* start / stop freq */ in skipSbrHeader() 1421 dflt_header_extra1 = FDKreadBit(hBs); in skipSbrHeader() 1422 dflt_header_extra2 = FDKreadBit(hBs); in skipSbrHeader() 1424 FDKpushFor(hBs, 5 * dflt_header_extra1 + 6 * dflt_header_extra2); in skipSbrHeader() 1430 HANDLE_FDK_BITSTREAM hBs, CSTpCallBacks *cb) { in ld_sbr_header() argument 1454 cb->cbSbrData, hBs, asc->m_samplingFrequency / dsFactor, in ld_sbr_header() 1469 HANDLE_FDK_BITSTREAM hBs, in EldSpecificConfig_Parse() argument 1481 esc->m_frameLengthFlag = FDKreadBits(hBs, 1); in EldSpecificConfig_Parse() [all …]
|
D | tpdec_drm.cpp | 116 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in drmRead_CrcStartReg() argument 123 pDrm->crcReadValue = FDKreadBits(hBs, 8); in drmRead_CrcStartReg() 125 return (FDKcrcStartReg(&pDrm->crcInfo, hBs, mBits)); in drmRead_CrcStartReg() 130 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in drmRead_CrcEndReg() argument 135 FDKcrcEndReg(&pDrm->crcInfo, hBs, reg); in drmRead_CrcEndReg()
|
D | tpdec_drm.h | 140 int drmRead_CrcStartReg(HANDLE_DRM pDrm, HANDLE_FDK_BITSTREAM hBs, int mBits); 151 void drmRead_CrcEndReg(HANDLE_DRM pDrm, HANDLE_FDK_BITSTREAM hBs, int reg); 197 HANDLE_FDK_BITSTREAM hBs,
|
/external/aac/libSBRdec/src/ |
D | env_extr.cpp | 168 HANDLE_FDK_BITSTREAM hBs, /*!< bitbuffer handle */ 177 static int extractFrameInfo(HANDLE_FDK_BITSTREAM hBs, 184 HANDLE_FDK_BITSTREAM hBs, const UINT flags, 188 HANDLE_FDK_BITSTREAM hBs, const UINT flags); 191 HANDLE_FDK_BITSTREAM hBs, 196 HANDLE_FDK_BITSTREAM hBs); 378 sbrGetHeaderData(HANDLE_SBR_HEADER_DATA hHeaderData, HANDLE_FDK_BITSTREAM hBs, in sbrGetHeaderData() argument 390 FDKreadBits(hBs, 1); in sbrGetHeaderData() 393 FDKpushFor(hBs, 8); in sbrGetHeaderData() 396 FDKreadBits(hBs, 3); in sbrGetHeaderData() [all …]
|
D | sbrdecoder.cpp | 798 INT sbrDecoder_Header(HANDLE_SBRDECODER self, HANDLE_FDK_BITSTREAM hBs, in sbrDecoder_Header() argument 844 headerStatus = sbrGetHeaderData(hSbrHeader, hBs, self->flags, 0, configMode); in sbrDecoder_Header() 1119 SBR_ERROR sbrDecoder_Parse(HANDLE_SBRDECODER self, HANDLE_FDK_BITSTREAM hBs, in sbrDecoder_Parse() argument 1136 INT startPos = FDKgetValidBits(hBs); in sbrDecoder_Parse() 1144 HANDLE_FDK_BITSTREAM hBsOriginal = hBs; in sbrDecoder_Parse() 1183 if ((j = (int)FDKgetValidBits(hBs)) != 8) { in sbrDecoder_Parse() 1184 FDKpushBiDirectional(hBs, (j - 8)); in sbrDecoder_Parse() 1193 tmpByte = (UCHAR)FDKreadBits(hBs, 8); in sbrDecoder_Parse() 1200 FDKpushBack(hBs, 16); in sbrDecoder_Parse() 1206 hBs = &bsBwd; in sbrDecoder_Parse() [all …]
|
D | huff_dec.cpp | 124 HANDLE_FDK_BITSTREAM hBs) /*!< Handle to Bitbuffer */ in DecodeHuffmanCW() argument 130 bit = FDKreadBits(hBs, 1); in DecodeHuffmanCW()
|
/external/aac/libMpegTPEnc/src/ |
D | tpenc_latm.cpp | 119 static UINT transportEnc_LatmWriteValue(HANDLE_FDK_BITSTREAM hBs, int value) { in transportEnc_LatmWriteValue() argument 134 FDKwriteBits(hBs, valueBytes - 1, 2); /* size of value in Bytes */ in transportEnc_LatmWriteValue() 137 FDKwriteBits(hBs, (UCHAR)(value >> ((valueBytes - 1 - i) << 3)), 8); in transportEnc_LatmWriteValue() 287 CreateStreamMuxConfig(HANDLE_LATM_STREAM hAss, HANDLE_FDK_BITSTREAM hBs, in CreateStreamMuxConfig() argument 298 FDKwriteBits(hBs, hAss->audioMuxVersion, 1); /* audioMuxVersion */ in CreateStreamMuxConfig() 302 FDKwriteBits(hBs, hAss->audioMuxVersionA, 1); /* audioMuxVersionA */ in CreateStreamMuxConfig() 309 hBs, hAss->taraBufferFullness); /* taraBufferFullness */ in CreateStreamMuxConfig() 311 FDKwriteBits(hBs, hAss->allStreamsSameTimeFraming ? 1 : 0, in CreateStreamMuxConfig() 313 FDKwriteBits(hBs, hAss->noSubframes - 1, 6); /* Number of Subframes */ in CreateStreamMuxConfig() 314 FDKwriteBits(hBs, hAss->noProgram - 1, 4); /* Number of Programs */ in CreateStreamMuxConfig() [all …]
|
D | tpenc_asc.cpp | 348 int transportEnc_writePCE(HANDLE_FDK_BITSTREAM hBs, CHANNEL_MODE channelMode, in transportEnc_writePCE() argument 384 FDKwriteBits(hBs, instanceTagPCE, 4); /* Element instance tag */ in transportEnc_writePCE() 385 FDKwriteBits(hBs, profile, 2); /* Object type */ in transportEnc_writePCE() 386 FDKwriteBits(hBs, sampleRateIndex, 4); /* Sample rate index*/ in transportEnc_writePCE() 388 FDKwriteBits(hBs, config->num_front_channel_elements, in transportEnc_writePCE() 390 FDKwriteBits(hBs, config->num_side_channel_elements, in transportEnc_writePCE() 392 FDKwriteBits(hBs, config->num_back_channel_elements, in transportEnc_writePCE() 394 FDKwriteBits(hBs, config->num_lfe_channel_elements, in transportEnc_writePCE() 397 FDKwriteBits(hBs, 0, 3); /* No assoc data elements */ in transportEnc_writePCE() 398 FDKwriteBits(hBs, 0, 4); /* No valid cc elements */ in transportEnc_writePCE() [all …]
|
D | tpenc_adif.cpp | 108 int adifWrite_EncodeHeader(ADIF_INFO *adif, HANDLE_FDK_BITSTREAM hBs, in adifWrite_EncodeHeader() argument 124 UINT alignAnchor = FDKgetValidBits(hBs); in adifWrite_EncodeHeader() 129 FDKwriteBits(hBs, adifId[0], 8); in adifWrite_EncodeHeader() 130 FDKwriteBits(hBs, adifId[1], 8); in adifWrite_EncodeHeader() 131 FDKwriteBits(hBs, adifId[2], 8); in adifWrite_EncodeHeader() 132 FDKwriteBits(hBs, adifId[3], 8); in adifWrite_EncodeHeader() 134 FDKwriteBits(hBs, copyRightIdPresent ? 1 : 0, 1); in adifWrite_EncodeHeader() 138 FDKwriteBits(hBs, 0, 1); in adifWrite_EncodeHeader() 141 FDKwriteBits(hBs, originalCopy ? 1 : 0, 1); in adifWrite_EncodeHeader() 142 FDKwriteBits(hBs, home ? 1 : 0, 1); in adifWrite_EncodeHeader() [all …]
|
D | tpenc_adts.cpp | 110 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsWrite_CrcStartReg() argument 116 return (FDKcrcStartReg(&pAdts->crcInfo, hBs, mBits)); in adtsWrite_CrcStartReg() 121 HANDLE_FDK_BITSTREAM hBs, /*!< handle to current bit buffer structure */ in adtsWrite_CrcEndReg() argument 125 FDKcrcEndReg(&pAdts->crcInfo, hBs, reg); in adtsWrite_CrcEndReg() 258 void adtsWrite_EndRawDataBlock(HANDLE_ADTS hAdts, HANDLE_FDK_BITSTREAM hBs, in adtsWrite_EndRawDataBlock() argument 263 FDKinitBitStream(&bsWriter, hBs->hBitBuf.Buffer, hBs->hBitBuf.bufSize, 0, in adtsWrite_EndRawDataBlock() 273 FDKwriteBits(hBs, FDKcrcGetCRC(&hAdts->crcInfo), 16); in adtsWrite_EndRawDataBlock() 279 FDKgetValidBits(hBs) - (56 + (hAdts->num_raw_blocks) * 16 + 16); in adtsWrite_EndRawDataBlock() 292 FDKinitBitStream(&bsWriter, hBs->hBitBuf.Buffer, hBs->hBitBuf.bufSize, 0, in adtsWrite_EndRawDataBlock() 301 FDKwriteBits(&bsWriter, FDKgetValidBits(hBs) >> 3, 13); in adtsWrite_EndRawDataBlock()
|
D | tpenc_lib.cpp | 389 HANDLE_FDK_BITSTREAM hBs = &hTp->bitStream; in transportEnc_WriteAccessUnit() local 402 if (0 != adifWrite_EncodeHeader(&hTp->writer.adif, hBs, bufferFullness)) { in transportEnc_WriteAccessUnit() 419 transportEnc_LatmWrite(&hTp->writer.latm, hBs, frameUsedBits, in transportEnc_WriteAccessUnit() 428 hTp->writer.raw.prevBits = FDKgetValidBits(hBs); in transportEnc_WriteAccessUnit() 499 HANDLE_FDK_BITSTREAM hBs = &hTpEnc->bitStream; in transportEnc_GetFrame() local 506 tpErr = transportEnc_LatmGetFrame(&hTpEnc->writer.latm, hBs, nbytes); in transportEnc_GetFrame() 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() 522 FDKsyncCache(hBs); in transportEnc_GetFrame() [all …]
|
D | tpenc_adts.h | 179 void adtsWrite_EndRawDataBlock(HANDLE_ADTS hAdts, HANDLE_FDK_BITSTREAM hBs, 196 int adtsWrite_CrcStartReg(HANDLE_ADTS pAdts, HANDLE_FDK_BITSTREAM hBs, 206 void adtsWrite_CrcEndReg(HANDLE_ADTS pAdts, HANDLE_FDK_BITSTREAM hBs, int reg);
|
D | tpenc_latm.h | 191 HANDLE_FDK_BITSTREAM hBs, 257 HANDLE_FDK_BITSTREAM hBs, 271 CreateStreamMuxConfig(HANDLE_LATM_STREAM hAss, HANDLE_FDK_BITSTREAM hBs,
|
/external/aac/libFDK/src/ |
D | FDK_crc.cpp | 217 USHORT crcPoly, HANDLE_FDK_BITSTREAM hBs, 221 HANDLE_FDK_BITSTREAM hBs, INT nBytes); 223 static void crcCalc(HANDLE_FDK_CRCINFO hCrcInfo, HANDLE_FDK_BITSTREAM hBs, 277 INT FDKcrcStartReg(HANDLE_FDK_CRCINFO hCrcInfo, const HANDLE_FDK_BITSTREAM hBs, in FDKcrcStartReg() argument 284 hCrcInfo->crcRegData[reg].validBits = (INT)FDKgetValidBits(hBs); in FDKcrcStartReg() 292 INT FDKcrcEndReg(HANDLE_FDK_CRCINFO hCrcInfo, const HANDLE_FDK_BITSTREAM hBs, in FDKcrcEndReg() argument 297 if (hBs->ConfigCache == BS_WRITER) { in FDKcrcEndReg() 299 (INT)FDKgetValidBits(hBs) - hCrcInfo->crcRegData[reg].validBits; in FDKcrcEndReg() 302 hCrcInfo->crcRegData[reg].validBits - (INT)FDKgetValidBits(hBs); in FDKcrcEndReg() 309 crcCalc(hCrcInfo, hBs, reg); in FDKcrcEndReg() [all …]
|
/external/aac/libAACdec/src/ |
D | channel.cpp | 415 HANDLE_FDK_BITSTREAM hBs, CAacDecoderChannelInfo *pAacDecoderChannelInfo[], in CChannelElement_Read() argument 473 pAacDecoderChannelInfo[0]->ElementInstanceTag = FDKreadBits(hBs, 4); in CChannelElement_Read() 482 FDKreadBits(hBs, 1); in CChannelElement_Read() 502 error = IcsRead(hBs, &pAacDecoderChannelInfo[ch]->icsInfo, in CChannelElement_Read() 520 if (FDKreadBit(hBs) == 0) { in CChannelElement_Read() 521 error = IcsReadMaxSfb(hBs, &pAacDecoderChannelInfo[1]->icsInfo, in CChannelElement_Read() 527 if (FDKreadBits(hBs, 1) != 0) { in CChannelElement_Read() 556 hBs, &pAacDecoderChannelInfo[0]->pComData->jointStereoData, in CChannelElement_Read() 580 (UCHAR)FDKreadBits(hBs, 8); in CChannelElement_Read() 584 error = CBlock_ReadSectionData(hBs, pAacDecoderChannelInfo[ch], in CChannelElement_Read() [all …]
|
D | usacdec_acelp.cpp | 653 static int DecodePitchLag(HANDLE_FDK_BITSTREAM hBs, in DecodePitchLag() argument 666 acb_idx = FDKreadBits(hBs, num_acb_idx_bits); in DecodePitchLag() 1200 INT CLpd_AcelpRead(HANDLE_FDK_BITSTREAM hBs, CAcelpChannelData *acelp, in CLpd_AcelpRead() argument 1225 acelp->mean_energy = FDKreadBits(hBs, 2); in CLpd_AcelpRead() 1229 error = DecodePitchLag(hBs, num_acb_index_bits[sfr], PIT_MIN, PIT_FR2, in CLpd_AcelpRead() 1236 acelp->ltp_filtering_flag[sfr] = FDKreadBits(hBs, 1); in CLpd_AcelpRead() 1239 acelp->icb_index[sfr][0] = FDKreadBits(hBs, 1); in CLpd_AcelpRead() 1240 acelp->icb_index[sfr][1] = FDKreadBits(hBs, 5); in CLpd_AcelpRead() 1241 acelp->icb_index[sfr][2] = FDKreadBits(hBs, 1); in CLpd_AcelpRead() 1242 acelp->icb_index[sfr][3] = FDKreadBits(hBs, 5); in CLpd_AcelpRead() [all …]
|
D | usacdec_lpc.cpp | 119 static int get_vlclbf(HANDLE_FDK_BITSTREAM hBs) { in get_vlclbf() argument 122 while (FDKreadBits(hBs, 1) && result <= NQ_MAX) { in get_vlclbf() 134 static int get_vlclbf_n(HANDLE_FDK_BITSTREAM hBs, int n) { in get_vlclbf_n() argument 137 while (FDKreadBits(hBs, 1)) { in get_vlclbf_n() 582 static void decode_qn(HANDLE_FDK_BITSTREAM hBs, int nk_mode, int nqn, in decode_qn() argument 590 qn[n] = get_vlclbf(hBs); in decode_qn() 598 qn[n] = 2 + FDKreadBits(hBs, 2); in decode_qn() 605 qn[n] = get_vlclbf(hBs); in decode_qn() 614 qn[n] = get_vlclbf(hBs); in decode_qn() 672 HANDLE_FDK_BITSTREAM hBs, /* input: codebook index */ in vlpc_1st_dec() argument [all …]
|
D | aacdec_tns.cpp | 236 void CTns_ReadDataPresentUsac(HANDLE_FDK_BITSTREAM hBs, CTnsData *pTnsData0, in CTns_ReadDataPresentUsac() argument 243 common_tns = FDKreadBit(hBs); in CTns_ReadDataPresentUsac() 245 { *ptns_on_lr = FDKreadBit(hBs); } in CTns_ReadDataPresentUsac() 248 CTns_Read(hBs, pTnsData0, pIcsInfo, flags); in CTns_ReadDataPresentUsac() 256 tns_present_both = FDKreadBit(hBs); in CTns_ReadDataPresentUsac() 261 pTnsData1->DataPresent = FDKreadBit(hBs); in CTns_ReadDataPresentUsac()
|
D | aacdec_drc.h | 154 int aacDecoder_drcMarkPayload(HANDLE_AAC_DRC self, HANDLE_FDK_BITSTREAM hBs, 158 HANDLE_AAC_DRC self, HANDLE_FDK_BITSTREAM hBs, 184 HANDLE_AAC_DRC self, HANDLE_FDK_BITSTREAM hBs,
|
D | aacdecoder.cpp | 390 HANDLE_FDK_BITSTREAM hBs, in CAacDecoder_AncDataParse() argument 408 ancData->buffer[i + offset] = FDKreadBits(hBs, 8); in CAacDecoder_AncDataParse() 423 FDKpushFor(hBs, readBytes << 3); in CAacDecoder_AncDataParse() 724 HANDLE_FDK_BITSTREAM hBs; in CAacDecoder_PreRollExtensionPayloadParse() local 743 hBs = transportDec_GetBitstream(self->hInput, 0); in CAacDecoder_PreRollExtensionPayloadParse() 744 bs = *hBs; in CAacDecoder_PreRollExtensionPayloadParse() 746 auStartAnchor = (INT)FDKgetValidBits(hBs); in CAacDecoder_PreRollExtensionPayloadParse() 753 FDKreadBit(hBs); in CAacDecoder_PreRollExtensionPayloadParse() 756 extPayloadPresentFlag = FDKreadBits(hBs, 1); in CAacDecoder_PreRollExtensionPayloadParse() 762 useDefaultLengthFlag = FDKreadBits(hBs, 1); in CAacDecoder_PreRollExtensionPayloadParse() [all …]
|
/external/aac/libPCMutils/src/ |
D | pcmdmx_lib.cpp | 1849 PCMDMX_ERROR pcmDmx_Parse(HANDLE_PCM_DOWNMIX self, HANDLE_FDK_BITSTREAM hBs, in pcmDmx_Parse() argument 1863 if ((self == NULL) || (hBs == NULL)) { in pcmDmx_Parse() 1868 if ((ancDataBits < minAncBits) || (ancDataBits > FDKgetValidBits(hBs))) { in pcmDmx_Parse() 1876 FDKpushFor(hBs, 16); in pcmDmx_Parse() 1880 if (FDKreadBits(hBs, 8) != ANC_DATA_SYNC_BYTE) { in pcmDmx_Parse() 1885 FDKpushFor(hBs, 4); in pcmDmx_Parse() 1888 /* int numAncBytes = */ FDKreadBits(hBs, 4); in pcmDmx_Parse() 1890 if (FDKreadBit(hBs)) skip4Dmx += 24; in pcmDmx_Parse() 1892 if (FDKreadBit(hBs)) skip4Dmx += 8; in pcmDmx_Parse() 1894 if (FDKreadBit(hBs)) skip4Dmx += 8; in pcmDmx_Parse() [all …]
|