/external/aac/libMpegTPEnc/src/ |
D | tpenc_asc.cpp | 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() 256 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(hBitStream, getChannelConfig(hAdts->channel_mode), 3); in adtsWrite_EncodeHeader() 228 FDKwriteBits(hBitStream, hAdts->original, 1); in adtsWrite_EncodeHeader() 229 FDKwriteBits(hBitStream, hAdts->home, 1); in adtsWrite_EncodeHeader() [all …]
|
D | tpenc_adif.cpp | 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() 136 FDKwriteBits(hBs, adif->bVariableRate?1:0, 1); in adifWrite_EncodeHeader() 137 FDKwriteBits(hBs, totalBitRate,23); in adifWrite_EncodeHeader() [all …]
|
D | tpenc_latm.cpp | 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() 303 FDKwriteBits( hBs, hAss->audioMuxVersion, 1 ); /* audioMuxVersion */ in CreateStreamMuxConfig() 307 FDKwriteBits( hBs, hAss->audioMuxVersionA, 1 ); /* audioMuxVersionA */ 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() 326 FDKwriteBits( hBs, hAss->noLayer[prog]-1, 3 ); in CreateStreamMuxConfig() 339 FDKwriteBits( hBs, useSameConfig ? 1 : 0, 1 ); in CreateStreamMuxConfig() 389 … FDKwriteBits( hBs, p_linfo->frameLengthType, 3 ); /* frameLengthType */ in CreateStreamMuxConfig() [all …]
|
D | tpenc_lib.cpp | 419 FDKwriteBits(&hTp->bitStream, ID_PCE, 3); in transportEnc_WriteAccessUnit()
|
/external/aac/libSBRenc/src/ |
D | bit_sbr.cpp | 314 payloadBits += FDKwriteBits (&cmonData->sbrBitbuf, 1, 1); in encodeSbrHeader() 319 payloadBits += FDKwriteBits (&cmonData->sbrBitbuf, 0, 1); in encodeSbrHeader() 346 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_amp_res, in encodeSbrHeaderData() 348 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_start_frequency, in encodeSbrHeaderData() 350 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_stop_frequency, in encodeSbrHeaderData() 352 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_xover_band, in encodeSbrHeaderData() 355 payloadBits += FDKwriteBits (hBitStream, 0, in encodeSbrHeaderData() 358 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->header_extra_1, in encodeSbrHeaderData() 360 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->header_extra_2, in encodeSbrHeaderData() 365 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->freqScale, in encodeSbrHeaderData() [all …]
|
D | env_bit.cpp | 157 FDKwriteBits (&hCmonData->sbrBitbuf, 0x0, SI_SBR_DRM_CRC_BITS); in FDKsbrEnc_InitSbrBitstream() 161 FDKwriteBits (&hCmonData->sbrBitbuf, 0x0, SI_SBR_CRC_BITS); in FDKsbrEnc_InitSbrBitstream() 200 FDKwriteBits( &hCmonData->tmpWriteBitbuf, FDKcrcGetCRC(hCrcInfo)^0xFF, SI_SBR_DRM_CRC_BITS ); in FDKsbrEnc_AssembleSbrBitstream() 220 FDKwriteBits(&hCmonData->sbrBitbuf, 0, hCmonData->sbrFillBits ); in FDKsbrEnc_AssembleSbrBitstream() 244 FDKwriteBits (&hCmonData->tmpWriteBitbuf, crcReg, SI_SBR_CRC_BITS); in FDKsbrEnc_AssembleSbrBitstream()
|
D | ps_bitenc.cpp | 103 FDKwriteBits(hBitStream, value, numberOfBits); in FDKsbrEnc_WriteBits_ps()
|
/external/aac/libAACenc/src/ |
D | bitenc.cpp | 157 FDKwriteBits(hBitStream,globalGain - scalefac + globalGainOffset-4*(LOG_NORM_PCM-mdctScale),8); in FDKaacEnc_encodeGlobalGain() 196 FDKwriteBits(hBitStream,icsReservedBit,1); in FDKaacEnc_encodeIcsInfo() 197 FDKwriteBits(hBitStream,blockType,2); in FDKaacEnc_encodeIcsInfo() 198 FDKwriteBits(hBitStream, (windowShape == LOL_WINDOW) ? KBD_WINDOW : windowShape,1); in FDKaacEnc_encodeIcsInfo() 205 FDKwriteBits(hBitStream,maxSfbPerGroup,6); in FDKaacEnc_encodeIcsInfo() 209 FDKwriteBits(hBitStream, 0, 1); in FDKaacEnc_encodeIcsInfo() 214 FDKwriteBits(hBitStream,maxSfbPerGroup,4); in FDKaacEnc_encodeIcsInfo() 217 FDKwriteBits(hBitStream,groupingMask,TRANS_FAC-1); in FDKaacEnc_encodeIcsInfo() 265 FDKwriteBits(hBitStream,codeBook,sectCbBits); in FDKaacEnc_encodeSectionData() 272 FDKwriteBits(hBitStream,sectEscapeVal,sectLenBits); in FDKaacEnc_encodeSectionData() [all …]
|
D | metadata_main.cpp | 719 …FDKwriteBits(&bsWriter, pce_tag_present, 1); /* pce_tag_pr… in WriteDynamicRangeInfoPayload() 721 …FDKwriteBits(&bsWriter, 0x0, 4); /* pce_instance… in WriteDynamicRangeInfoPayload() 722 …FDKwriteBits(&bsWriter, 0x0, 4); /* drc_tag_rese… in WriteDynamicRangeInfoPayload() 726 …FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.excluded_chns_present) ? 1 : 0, 1); /* excluded_c… in WriteDynamicRangeInfoPayload() 729 …FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.drc_bands_present) ? 1 : 0, 1); /* drc_bands_… in WriteDynamicRangeInfoPayload() 732 …FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_incr, 4); /* drc_band_inc… in WriteDynamicRangeInfoPayload() 733 …FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_interpolation_scheme, 4); /* drc_interpol… in WriteDynamicRangeInfoPayload() 736 …FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_top[i], 8); /* drc_band_top */ in WriteDynamicRangeInfoPayload() 741 …FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level_present, 1); /* prog_ref_l… in WriteDynamicRangeInfoPayload() 744 …FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level, 7); /* prog_ref_lev… in WriteDynamicRangeInfoPayload() [all …]
|
D | bit_cnt.cpp | 798 FDKwriteBits(hBitstream,codeWord,codeLength); in FDKaacEnc_codeValues() 810 FDKwriteBits(hBitstream,codeWord,codeLength); in FDKaacEnc_codeValues() 857 FDKwriteBits(hBitstream,codeWord,codeLength); in FDKaacEnc_codeValues() 858 FDKwriteBits(hBitstream,sign,signLength); in FDKaacEnc_codeValues() 904 FDKwriteBits(hBitstream,codeWord,codeLength); in FDKaacEnc_codeValues() 905 FDKwriteBits(hBitstream,sign,signLength); in FDKaacEnc_codeValues() 915 FDKwriteBits(hBitstream,codeWord,codeLength); in FDKaacEnc_codeValues() 925 FDKwriteBits(hBitstream,codeWord,codeLength); in FDKaacEnc_codeValues() 954 FDKwriteBits(hBitstream,codeWord,codeLength); in FDKaacEnc_codeValues() 955 FDKwriteBits(hBitstream,sign,signLength); in FDKaacEnc_codeValues() [all …]
|
/external/aac/libFDK/include/ |
D | FDK_bitstream.h | 330 FDK_INLINE UCHAR FDKwriteBits(HANDLE_FDK_BITSTREAM hBitStream, UINT value, in FDKwriteBits() function
|