/external/aac/libMpegTPEnc/src/ |
D | tpenc_asc.cpp | 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() 399 FDKwriteBits(hBs, 0, 1); /* Mono mixdown present */ in transportEnc_writePCE() [all …]
|
D | tpenc_adts.cpp | 220 FDKwriteBits(hBitStream, 0xFFF, 12); in adtsWrite_EncodeHeader() 221 FDKwriteBits(hBitStream, hAdts->mpeg_id, 1); in adtsWrite_EncodeHeader() 222 FDKwriteBits(hBitStream, hAdts->layer, 2); in adtsWrite_EncodeHeader() 223 FDKwriteBits(hBitStream, hAdts->protection_absent, 1); in adtsWrite_EncodeHeader() 224 FDKwriteBits(hBitStream, hAdts->profile, 2); in adtsWrite_EncodeHeader() 225 FDKwriteBits(hBitStream, hAdts->sample_freq_index, 4); in adtsWrite_EncodeHeader() 226 FDKwriteBits(hBitStream, hAdts->private_bit, 1); in adtsWrite_EncodeHeader() 227 FDKwriteBits( in adtsWrite_EncodeHeader() 230 FDKwriteBits(hBitStream, hAdts->original, 1); in adtsWrite_EncodeHeader() 231 FDKwriteBits(hBitStream, hAdts->home, 1); in adtsWrite_EncodeHeader() [all …]
|
D | tpenc_adif.cpp | 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() 143 FDKwriteBits(hBs, adif->bVariableRate ? 1 : 0, 1); in adifWrite_EncodeHeader() 144 FDKwriteBits(hBs, totalBitRate, 23); in adifWrite_EncodeHeader() [all …]
|
D | tpenc_latm.cpp | 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() 298 FDKwriteBits(hBs, hAss->audioMuxVersion, 1); /* audioMuxVersion */ in CreateStreamMuxConfig() 302 FDKwriteBits(hBs, hAss->audioMuxVersionA, 1); /* audioMuxVersionA */ 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() 322 FDKwriteBits(hBs, hAss->noLayer[prog] - 1, 3); in CreateStreamMuxConfig() 335 FDKwriteBits(hBs, useSameConfig ? 1 : 0, 1); in CreateStreamMuxConfig() 385 FDKwriteBits(hBs, p_linfo->frameLengthType, in CreateStreamMuxConfig() [all …]
|
D | tpenc_lib.cpp | 442 FDKwriteBits(&hTp->bitStream, ID_PCE, 3); in transportEnc_WriteAccessUnit()
|
/external/aac/libSBRenc/src/ |
D | bit_sbr.cpp | 281 payloadBits += FDKwriteBits(&cmonData->sbrBitbuf, 1, 1); in encodeSbrHeader() 284 payloadBits += FDKwriteBits(&cmonData->sbrBitbuf, 0, 1); in encodeSbrHeader() 308 payloadBits += FDKwriteBits(hBitStream, sbrHeaderData->sbr_amp_res, in encodeSbrHeaderData() 310 payloadBits += FDKwriteBits(hBitStream, sbrHeaderData->sbr_start_frequency, in encodeSbrHeaderData() 312 payloadBits += FDKwriteBits(hBitStream, sbrHeaderData->sbr_stop_frequency, in encodeSbrHeaderData() 314 payloadBits += FDKwriteBits(hBitStream, sbrHeaderData->sbr_xover_band, in encodeSbrHeaderData() 317 payloadBits += FDKwriteBits(hBitStream, 0, SI_SBR_RESERVED_BITS); in encodeSbrHeaderData() 319 payloadBits += FDKwriteBits(hBitStream, sbrHeaderData->header_extra_1, in encodeSbrHeaderData() 321 payloadBits += FDKwriteBits(hBitStream, sbrHeaderData->header_extra_2, in encodeSbrHeaderData() 325 payloadBits += FDKwriteBits(hBitStream, sbrHeaderData->freqScale, in encodeSbrHeaderData() [all …]
|
D | env_bit.cpp | 169 FDKwriteBits(&hCmonData->sbrBitbuf, 0x0, SI_SBR_DRM_CRC_BITS); in FDKsbrEnc_InitSbrBitstream() 173 FDKwriteBits(&hCmonData->sbrBitbuf, 0x0, SI_SBR_CRC_BITS); in FDKsbrEnc_InitSbrBitstream() 207 FDKwriteBits(&hCmonData->tmpWriteBitbuf, FDKcrcGetCRC(hCrcInfo) ^ 0xFF, in FDKsbrEnc_AssembleSbrBitstream() 227 FDKwriteBits(&hCmonData->sbrBitbuf, 0, hCmonData->sbrFillBits); in FDKsbrEnc_AssembleSbrBitstream() 252 FDKwriteBits(&hCmonData->tmpWriteBitbuf, crcReg, SI_SBR_CRC_BITS); in FDKsbrEnc_AssembleSbrBitstream()
|
D | ps_bitenc.cpp | 112 FDKwriteBits(hBitStream, value, numberOfBits); in FDKsbrEnc_WriteBits_ps()
|
/external/aac/libAACenc/src/ |
D | bitenc.cpp | 162 FDKwriteBits(hBitStream, in FDKaacEnc_encodeGlobalGain() 198 FDKwriteBits(hBitStream, icsReservedBit, 1); in FDKaacEnc_encodeIcsInfo() 199 FDKwriteBits(hBitStream, blockType, 2); in FDKaacEnc_encodeIcsInfo() 200 FDKwriteBits(hBitStream, in FDKaacEnc_encodeIcsInfo() 208 FDKwriteBits(hBitStream, maxSfbPerGroup, 6); in FDKaacEnc_encodeIcsInfo() 213 FDKwriteBits(hBitStream, 0, 1); in FDKaacEnc_encodeIcsInfo() 218 FDKwriteBits(hBitStream, maxSfbPerGroup, 4); in FDKaacEnc_encodeIcsInfo() 221 FDKwriteBits(hBitStream, groupingMask, TRANS_FAC - 1); in FDKaacEnc_encodeIcsInfo() 266 FDKwriteBits(hBitStream, codeBook, sectCbBits); in FDKaacEnc_encodeSectionData() 272 FDKwriteBits(hBitStream, sectEscapeVal, sectLenBits); in FDKaacEnc_encodeSectionData() [all …]
|
D | metadata_main.cpp | 876 FDKwriteBits(&bsWriter, pce_tag_present, 1); /* pce_tag_present */ in WriteDynamicRangeInfoPayload() 878 FDKwriteBits(&bsWriter, 0x0, 4); /* pce_instance_tag */ in WriteDynamicRangeInfoPayload() 879 FDKwriteBits(&bsWriter, 0x0, 4); /* drc_tag_reserved_bits */ in WriteDynamicRangeInfoPayload() 883 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.excluded_chns_present) ? 1 : 0, in WriteDynamicRangeInfoPayload() 887 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.drc_bands_present) ? 1 : 0, in WriteDynamicRangeInfoPayload() 890 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_incr, in WriteDynamicRangeInfoPayload() 892 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_interpolation_scheme, in WriteDynamicRangeInfoPayload() 896 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_top[i], in WriteDynamicRangeInfoPayload() 902 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level_present, in WriteDynamicRangeInfoPayload() 905 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level, in WriteDynamicRangeInfoPayload() [all …]
|
D | bit_cnt.cpp | 745 FDKwriteBits(hBitstream, codeWord, codeLength); in FDKaacEnc_codeValues() 757 FDKwriteBits(hBitstream, codeWord, codeLength); in FDKaacEnc_codeValues() 776 FDKwriteBits(hBitstream, (codeWord << signLength) | sign, in FDKaacEnc_codeValues() 796 FDKwriteBits(hBitstream, (codeWord << signLength) | sign, in FDKaacEnc_codeValues() 812 FDKwriteBits(hBitstream, codeWord, codeLength); in FDKaacEnc_codeValues() 827 FDKwriteBits(hBitstream, codeWord, codeLength); in FDKaacEnc_codeValues() 844 FDKwriteBits(hBitstream, (codeWord << signLength) | sign, in FDKaacEnc_codeValues() 862 FDKwriteBits(hBitstream, (codeWord << signLength) | sign, in FDKaacEnc_codeValues() 880 FDKwriteBits(hBitstream, (codeWord << signLength) | sign, in FDKaacEnc_codeValues() 898 FDKwriteBits(hBitstream, (codeWord << signLength) | sign, in FDKaacEnc_codeValues() [all …]
|
D | mps_main.cpp | 421 FDKwriteBits(hBs, mp4SpaceEncoderInfo.pSscBuf->pSsc[i], 8); in FDK_MpegsEnc_WriteSpatialSpecificConfig() 424 FDKwriteBits(hBs, mp4SpaceEncoderInfo.pSscBuf->pSsc[i], in FDK_MpegsEnc_WriteSpatialSpecificConfig() 452 FDKwriteBits(&Bs, sacTimeAlignFlag, 1); in FDK_MpegsEnc_WriteFrameHeader() 455 FDKwriteBits(&Bs, cnt, 7); in FDK_MpegsEnc_WriteFrameHeader() 457 FDKwriteBits(&Bs, 127, 7); in FDK_MpegsEnc_WriteFrameHeader() 458 FDKwriteBits(&Bs, cnt - 127, 16); in FDK_MpegsEnc_WriteFrameHeader()
|
/external/aac/libSACenc/src/ |
D | sacenc_bitstream.cpp | 290 FDKwriteBits(bitstream, losslessData->bsXXXDataMode[paramIdx][0], 2); in ecData() 306 FDKwriteBits(bitstream, losslessData->bsXXXDataMode[paramIdx][ps], 2); in ecData() 356 FDKwriteBits(bitstream, losslessData->bsDataPair[paramIdx][ps], 1); in ecData() 357 FDKwriteBits(bitstream, losslessData->bsQuantCoarseXXX[paramIdx][ps], 1); in ecData() 358 FDKwriteBits(bitstream, losslessData->bsFreqResStrideXXX[paramIdx][ps], in ecData() 566 FDKwriteBits(&bitstream, bsSamplingFrequencyIndex, 4); in fdk_sacenc_writeSpatialSpecificConfig() 569 FDKwriteBits(&bitstream, spatialSpecificConfig->bsSamplingFrequency, 24); in fdk_sacenc_writeSpatialSpecificConfig() 572 FDKwriteBits(&bitstream, spatialSpecificConfig->bsFrameLength, 5); in fdk_sacenc_writeSpatialSpecificConfig() 574 FDKwriteBits(&bitstream, bsFreqRes, 3); in fdk_sacenc_writeSpatialSpecificConfig() 575 FDKwriteBits(&bitstream, spatialSpecificConfig->bsTreeConfig, 4); in fdk_sacenc_writeSpatialSpecificConfig() [all …]
|
D | sacenc_nlc_enc.cpp | 174 FDKwriteBits(strm, in_data_lsb[i], num_lsb); in apply_lsb_coding() 367 FDKwriteBits(strm, grp_val, pcm_chunk_size[grp_len]); in apply_pcm_coding() 398 huffBits += FDKwriteBits(strm, HUFF_VALUE(part0), HUFF_LENGTH(part0)); in huff_enc_1D() 415 FDKwriteBits(strm, HUFF_VALUE(pHuffTab[id]), HUFF_LENGTH(pHuffTab[id])); in huff_enc_1D() 418 huffBits += FDKwriteBits(strm, id_sign, 1); in huff_enc_1D() 536 huffBits += FDKwriteBits(strm, HUFF_VALUE(entry), HUFF_LENGTH(entry)); in huff_enc_2D() 540 huffBits += FDKwriteBits(strm, HUFF_VALUE(entry), HUFF_LENGTH(entry)); in huff_enc_2D() 554 huffBits += FDKwriteBits(strm, HUFF_VALUE(entry), HUFF_LENGTH(entry)); in huff_enc_2D() 560 huffBits += FDKwriteBits(strm, sym_bits, num_sbits); in huff_enc_2D() 813 FDKwriteBits(strm, cdg_scheme >> PAIR_SHIFT, 1); in apply_huff_coding() [all …]
|
/external/aac/libFDK/include/ |
D | FDK_bitstream.h | 342 FDK_INLINE UCHAR FDKwriteBits(HANDLE_FDK_BITSTREAM hBitStream, UINT value, in FDKwriteBits() function 427 nbits += FDKwriteBits(hBitStream, value, nBits1); in FDKwriteEscapedValue() 429 nbits += FDKwriteBits(hBitStream, tmp, nBits1); in FDKwriteEscapedValue() 434 nbits += FDKwriteBits(hBitStream, value, nBits2); in FDKwriteEscapedValue() 436 nbits += FDKwriteBits(hBitStream, tmp, nBits2); in FDKwriteEscapedValue() 439 nbits += FDKwriteBits(hBitStream, value, nBits3); in FDKwriteEscapedValue()
|
/external/aac/libMpegTPDec/src/ |
D | tpdec_asc.cpp | 1516 FDKwriteBits(&usacConf, tmp, 32); in StoreConfigAsBitstream() 1520 FDKwriteBits(&usacConf, tmp, j); in StoreConfigAsBitstream()
|