Lines Matching refs:payloadBits

184   INT payloadBits = 0;  in FDKsbrEnc_WriteEnvSingleChannelElement()  local
193 payloadBits += encodeSbrHeader (sbrHeaderData, in FDKsbrEnc_WriteEnvSingleChannelElement()
199 payloadBits += encodeSbrData (sbrEnvData, in FDKsbrEnc_WriteEnvSingleChannelElement()
208 return payloadBits; in FDKsbrEnc_WriteEnvSingleChannelElement()
230 INT payloadBits = 0; in FDKsbrEnc_WriteEnvChannelPairElement() local
238 payloadBits += encodeSbrHeader (sbrHeaderData, in FDKsbrEnc_WriteEnvChannelPairElement()
243 payloadBits += encodeSbrData (sbrEnvDataLeft, in FDKsbrEnc_WriteEnvChannelPairElement()
252 return payloadBits; in FDKsbrEnc_WriteEnvChannelPairElement()
264 INT payloadBits; in FDKsbrEnc_CountSbrChannelPairElement() local
267 payloadBits = FDKsbrEnc_WriteEnvChannelPairElement(sbrHeaderData, in FDKsbrEnc_CountSbrChannelPairElement()
277 return payloadBits; in FDKsbrEnc_CountSbrChannelPairElement()
311 INT payloadBits = 0; in encodeSbrHeader() local
314 payloadBits += FDKwriteBits (&cmonData->sbrBitbuf, 1, 1); in encodeSbrHeader()
315 payloadBits += encodeSbrHeaderData (sbrHeaderData, in encodeSbrHeader()
319 payloadBits += FDKwriteBits (&cmonData->sbrBitbuf, 0, 1); in encodeSbrHeader()
322 cmonData->sbrHdrBits = payloadBits; in encodeSbrHeader()
324 return payloadBits; in encodeSbrHeader()
344 INT payloadBits = 0; in encodeSbrHeaderData() local
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()
367 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->alterScale, in encodeSbrHeaderData()
369 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_noise_bands, in encodeSbrHeaderData()
374 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_limiter_bands, in encodeSbrHeaderData()
376 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_limiter_gains, in encodeSbrHeaderData()
378 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_interpol_freq, in encodeSbrHeaderData()
380 payloadBits += FDKwriteBits (hBitStream, sbrHeaderData->sbr_smoothing_length, in encodeSbrHeaderData()
386 return payloadBits; in encodeSbrHeaderData()
408 INT payloadBits = 0; in encodeSbrData() local
412payloadBits += encodeSbrSingleChannelElement (sbrEnvDataLeft, &cmonData->sbrBitbuf, hParametricSte… in encodeSbrData()
415payloadBits += encodeSbrChannelPairElement (sbrEnvDataLeft, sbrEnvDataRight, hParametricStereo, &c… in encodeSbrData()
422 cmonData->sbrDataBits = payloadBits; in encodeSbrData()
424 return payloadBits; in encodeSbrData()
451 INT i, payloadBits = 0; in encodeSbrSingleChannelElement() local
453 payloadBits += FDKwriteBits (hBitStream, 0, SI_SBR_DATA_EXTRA_BITS); /* no reserved bits */ in encodeSbrSingleChannelElement()
458 payloadBits += encodeSbrGrid (sbrEnvData, hBitStream); in encodeSbrSingleChannelElement()
461payloadBits += encodeLowDelaySbrGrid ( sbrEnvData, hBitStream, encodeFreqs(LD_TRANSMISSION)); in encodeSbrSingleChannelElement()
467 payloadBits += FDKwriteBits (hBitStream, 1, SI_SBR_COUPLING_BITS); in encodeSbrSingleChannelElement()
469 payloadBits += encodeSbrGrid (sbrEnvData, hBitStream); in encodeSbrSingleChannelElement()
472 payloadBits += encodeSbrDtdf (sbrEnvData, hBitStream); in encodeSbrSingleChannelElement()
475payloadBits += FDKwriteBits (hBitStream, sbrEnvData->sbr_invf_mode_vec[i], SI_SBR_INVF_MODE_BITS); in encodeSbrSingleChannelElement()
478 payloadBits += writeEnvelopeData (sbrEnvData, hBitStream, 0); in encodeSbrSingleChannelElement()
479 payloadBits += writeNoiseLevelData (sbrEnvData, hBitStream, 0); in encodeSbrSingleChannelElement()
481 payloadBits += writeSyntheticCodingData (sbrEnvData,hBitStream); in encodeSbrSingleChannelElement()
483 payloadBits += encodeExtendedData(hParametricStereo, hBitStream); in encodeSbrSingleChannelElement()
485 return payloadBits; in encodeSbrSingleChannelElement()
505 INT payloadBits = 0; in encodeSbrChannelPairElement() local
508 payloadBits += FDKwriteBits (hBitStream, 0, SI_SBR_DATA_EXTRA_BITS); /* no reserved bits */ in encodeSbrChannelPairElement()
510 payloadBits += FDKwriteBits (hBitStream, coupling, SI_SBR_COUPLING_BITS); in encodeSbrChannelPairElement()
516 payloadBits += encodeSbrGrid (sbrEnvDataLeft, hBitStream); in encodeSbrChannelPairElement()
520payloadBits += encodeLowDelaySbrGrid ( sbrEnvDataLeft, hBitStream, encodeFreqs(LD_TRANSMISSION)); in encodeSbrChannelPairElement()
523 payloadBits += encodeSbrGrid (sbrEnvDataLeft, hBitStream); in encodeSbrChannelPairElement()
525 payloadBits += encodeSbrDtdf (sbrEnvDataLeft, hBitStream); in encodeSbrChannelPairElement()
526 payloadBits += encodeSbrDtdf (sbrEnvDataRight, hBitStream); in encodeSbrChannelPairElement()
529payloadBits += FDKwriteBits (hBitStream, sbrEnvDataLeft->sbr_invf_mode_vec[i], SI_SBR_INVF_MODE_BI… in encodeSbrChannelPairElement()
532 payloadBits += writeEnvelopeData (sbrEnvDataLeft, hBitStream,1); in encodeSbrChannelPairElement()
533 payloadBits += writeNoiseLevelData (sbrEnvDataLeft, hBitStream,1); in encodeSbrChannelPairElement()
534 payloadBits += writeEnvelopeData (sbrEnvDataRight, hBitStream,1); in encodeSbrChannelPairElement()
535 payloadBits += writeNoiseLevelData (sbrEnvDataRight, hBitStream,1); in encodeSbrChannelPairElement()
537 payloadBits += writeSyntheticCodingData (sbrEnvDataLeft,hBitStream); in encodeSbrChannelPairElement()
538 payloadBits += writeSyntheticCodingData (sbrEnvDataRight,hBitStream); in encodeSbrChannelPairElement()
548 payloadBits += encodeSbrGrid (sbrEnvDataLeft, hBitStream); in encodeSbrChannelPairElement()
552payloadBits += encodeLowDelaySbrGrid ( sbrEnvDataLeft, hBitStream, encodeFreqs(LD_TRANSMISSION)); in encodeSbrChannelPairElement()
559 payloadBits += encodeSbrGrid (sbrEnvDataRight, hBitStream); in encodeSbrChannelPairElement()
563payloadBits += encodeLowDelaySbrGrid ( sbrEnvDataRight, hBitStream, encodeFreqs(LD_TRANSMISSION)); in encodeSbrChannelPairElement()
567 payloadBits += encodeSbrGrid (sbrEnvDataLeft, hBitStream); in encodeSbrChannelPairElement()
568 payloadBits += encodeSbrGrid (sbrEnvDataRight, hBitStream); in encodeSbrChannelPairElement()
570 payloadBits += encodeSbrDtdf (sbrEnvDataLeft, hBitStream); in encodeSbrChannelPairElement()
571 payloadBits += encodeSbrDtdf (sbrEnvDataRight, hBitStream); in encodeSbrChannelPairElement()
574 payloadBits += FDKwriteBits (hBitStream, sbrEnvDataLeft->sbr_invf_mode_vec[i], in encodeSbrChannelPairElement()
578 payloadBits += FDKwriteBits (hBitStream, sbrEnvDataRight->sbr_invf_mode_vec[i], in encodeSbrChannelPairElement()
582 payloadBits += writeEnvelopeData (sbrEnvDataLeft, hBitStream,0); in encodeSbrChannelPairElement()
583 payloadBits += writeEnvelopeData (sbrEnvDataRight, hBitStream,0); in encodeSbrChannelPairElement()
584 payloadBits += writeNoiseLevelData (sbrEnvDataLeft, hBitStream,0); in encodeSbrChannelPairElement()
585 payloadBits += writeNoiseLevelData (sbrEnvDataRight, hBitStream,0); in encodeSbrChannelPairElement()
587 payloadBits += writeSyntheticCodingData (sbrEnvDataLeft,hBitStream); in encodeSbrChannelPairElement()
588 payloadBits += writeSyntheticCodingData (sbrEnvDataRight,hBitStream); in encodeSbrChannelPairElement()
592 payloadBits += encodeExtendedData(hParametricStereo, hBitStream); in encodeSbrChannelPairElement()
594 return payloadBits; in encodeSbrChannelPairElement()
618 INT payloadBits = 0; in encodeSbrGrid() local
624 payloadBits += FDKwriteBits (hBitStream, in encodeSbrGrid()
628 payloadBits += FDKwriteBits (hBitStream, in encodeSbrGrid()
638 payloadBits += FDKwriteBits (hBitStream, temp, SBR_ENV_BITS); in encodeSbrGrid()
640 payloadBits += FDKwriteBits(hBitStream, sbrEnvData->currentAmpResFF, SI_SBR_AMP_RES_BITS); in encodeSbrGrid()
641 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_f[0], SBR_RES_BITS); in encodeSbrGrid()
652 payloadBits += FDKwriteBits (hBitStream, temp, SBR_ABS_BITS); in encodeSbrGrid()
653 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->n, SBR_NUM_BITS); in encodeSbrGrid()
657 payloadBits += FDKwriteBits (hBitStream, temp, SBR_REL_BITS); in encodeSbrGrid()
661 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->p, temp); in encodeSbrGrid()
664 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_f[i], in encodeSbrGrid()
671 payloadBits += FDKwriteBits (hBitStream, temp, SBR_ABS_BITS); in encodeSbrGrid()
673 payloadBits += FDKwriteBits (hBitStream, temp, SBR_ABS_BITS); in encodeSbrGrid()
675 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->bs_num_rel_0, SBR_NUM_BITS); in encodeSbrGrid()
676 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->bs_num_rel_1, SBR_NUM_BITS); in encodeSbrGrid()
680 payloadBits += FDKwriteBits (hBitStream, temp, SBR_REL_BITS); in encodeSbrGrid()
685 payloadBits += FDKwriteBits (hBitStream, temp, SBR_REL_BITS); in encodeSbrGrid()
690 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->p, temp); in encodeSbrGrid()
696 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_fLR[i], in encodeSbrGrid()
702 return payloadBits; in encodeSbrGrid()
724 int payloadBits = 0; in encodeLowDelaySbrGrid() local
729 payloadBits += FDKwriteBits(hBitStream, 1, SBR_CLA_BITS_LD); in encodeLowDelaySbrGrid()
738 payloadBits += FDKwriteBits ( hBitStream, sbrEnvData->hSbrBSGrid->bs_abs_bord, 3); in encodeLowDelaySbrGrid()
740 payloadBits += FDKwriteBits ( hBitStream, sbrEnvData->hSbrBSGrid->bs_abs_bord, 4); in encodeLowDelaySbrGrid()
745 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_f[i], SBR_RES_BITS); in encodeLowDelaySbrGrid()
749 return payloadBits; in encodeLowDelaySbrGrid()
764 INT i, payloadBits = 0, noOfNoiseEnvelopes; in encodeSbrDtdf() local
769 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->domain_vec[i], SBR_DIR_BITS); in encodeSbrDtdf()
772 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->domain_vec_noise[i], SBR_DIR_BITS); in encodeSbrDtdf()
775 return payloadBits; in encodeSbrDtdf()
791 INT j, i, payloadBits = 0; in writeNoiseLevelData() local
798 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
802 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
811 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
818 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
826 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
840 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
847 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
855 payloadBits += FDKwriteBits (hBitStream, in writeNoiseLevelData()
865 return payloadBits; in writeNoiseLevelData()
881 INT payloadBits = 0, j, i, delta; in writeEnvelopeData() local
886payloadBits += FDKwriteBits (hBitStream, sbrEnvData->ienvelope[j][0], sbrEnvData->si_sbr_start_env… in writeEnvelopeData()
888payloadBits += FDKwriteBits (hBitStream, sbrEnvData->ienvelope[j][0], sbrEnvData->si_sbr_start_env… in writeEnvelopeData()
903 payloadBits += FDKwriteBits (hBitStream, in writeEnvelopeData()
908 payloadBits += FDKwriteBits (hBitStream, in writeEnvelopeData()
915 payloadBits += FDKwriteBits (hBitStream, in writeEnvelopeData()
920 payloadBits += FDKwriteBits (hBitStream, in writeEnvelopeData()
928 payloadBits += FDKwriteBits (hBitStream, in writeEnvelopeData()
933 payloadBits += FDKwriteBits (hBitStream, in writeEnvelopeData()
940 return payloadBits; in writeEnvelopeData()
957 INT payloadBits = 0; in encodeExtendedData() local
966 payloadBits += FDKwriteBits (hBitStream, 1, SI_SBR_EXTENDED_DATA_BITS); in encodeExtendedData()
970 payloadBits += FDKwriteBits (hBitStream, extDataSize, SI_SBR_EXTENSION_SIZE_BITS); in encodeExtendedData()
972 payloadBits += FDKwriteBits (hBitStream, maxExtSize, SI_SBR_EXTENSION_SIZE_BITS); in encodeExtendedData()
973payloadBits += FDKwriteBits (hBitStream, extDataSize - maxExtSize, SI_SBR_EXTENSION_ESC_COUNT_BITS… in encodeExtendedData()
982 payloadBits += writtenNoBits; in encodeExtendedData()
987 payloadBits += FDKwriteBits(hBitStream, 0, (8 - writtenNoBits)); in encodeExtendedData()
989 payloadBits += FDKwriteBits (hBitStream, 0, SI_SBR_EXTENDED_DATA_BITS); in encodeExtendedData()
992 return payloadBits; in encodeExtendedData()
1010 INT payloadBits = 0; in writeSyntheticCodingData() local
1012 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->addHarmonicFlag, 1); in writeSyntheticCodingData()
1016 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->addHarmonic[i], 1); in writeSyntheticCodingData()
1020 return payloadBits; in writeSyntheticCodingData()