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