Lines Matching refs:hSbrBSGrid
456 if ( sbrEnvData->hSbrBSGrid->frameClass != FIXFIXonly ) { in encodeSbrSingleChannelElement()
514 if ( sbrEnvDataLeft->hSbrBSGrid->frameClass != FIXFIXonly ) { in encodeSbrChannelPairElement()
545 if ( sbrEnvDataLeft->hSbrBSGrid->frameClass != FIXFIXonly) { in encodeSbrChannelPairElement()
556 if ( sbrEnvDataRight->hSbrBSGrid->frameClass != FIXFIXonly) { in encodeSbrChannelPairElement()
620 INT bufferFrameStart = sbrEnvData->hSbrBSGrid->bufferFrameStart; in encodeSbrGrid()
621 INT numberTimeSlots = sbrEnvData->hSbrBSGrid->numberTimeSlots; in encodeSbrGrid()
625 sbrEnvData->hSbrBSGrid->frameClass, in encodeSbrGrid()
629 sbrEnvData->hSbrBSGrid->frameClass, in encodeSbrGrid()
632 switch (sbrEnvData->hSbrBSGrid->frameClass) { in encodeSbrGrid()
637 temp = ceil_ln2(sbrEnvData->hSbrBSGrid->bs_num_env); in encodeSbrGrid()
639 if ((sbrEnvData->ldGrid) && (sbrEnvData->hSbrBSGrid->bs_num_env==1)) in encodeSbrGrid()
641 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_f[0], SBR_RES_BITS); in encodeSbrGrid()
647 if (sbrEnvData->hSbrBSGrid->frameClass == FIXVAR) in encodeSbrGrid()
648 temp = sbrEnvData->hSbrBSGrid->bs_abs_bord - (bufferFrameStart + numberTimeSlots); in encodeSbrGrid()
650 temp = sbrEnvData->hSbrBSGrid->bs_abs_bord - bufferFrameStart; in encodeSbrGrid()
653 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->n, SBR_NUM_BITS); in encodeSbrGrid()
655 for (i = 0; i < sbrEnvData->hSbrBSGrid->n; i++) { in encodeSbrGrid()
656 temp = (sbrEnvData->hSbrBSGrid->bs_rel_bord[i] - 2) >> 1; in encodeSbrGrid()
660 temp = ceil_ln2(sbrEnvData->hSbrBSGrid->n + 2); in encodeSbrGrid()
661 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->p, temp); in encodeSbrGrid()
663 for (i = 0; i < sbrEnvData->hSbrBSGrid->n + 1; i++) { in encodeSbrGrid()
664 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_f[i], in encodeSbrGrid()
670 temp = sbrEnvData->hSbrBSGrid->bs_abs_bord_0 - bufferFrameStart; in encodeSbrGrid()
672 temp = sbrEnvData->hSbrBSGrid->bs_abs_bord_1 - (bufferFrameStart + numberTimeSlots); 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()
678 for (i = 0; i < sbrEnvData->hSbrBSGrid->bs_num_rel_0; i++) { in encodeSbrGrid()
679 temp = (sbrEnvData->hSbrBSGrid->bs_rel_bord_0[i] - 2) >> 1; in encodeSbrGrid()
683 for (i = 0; i < sbrEnvData->hSbrBSGrid->bs_num_rel_1; i++) { in encodeSbrGrid()
684 temp = (sbrEnvData->hSbrBSGrid->bs_rel_bord_1[i] - 2) >> 1; in encodeSbrGrid()
688 temp = ceil_ln2(sbrEnvData->hSbrBSGrid->bs_num_rel_0 + in encodeSbrGrid()
689 sbrEnvData->hSbrBSGrid->bs_num_rel_1 + 2); in encodeSbrGrid()
690 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->p, temp); in encodeSbrGrid()
692 temp = sbrEnvData->hSbrBSGrid->bs_num_rel_0 + in encodeSbrGrid()
693 sbrEnvData->hSbrBSGrid->bs_num_rel_1 + 1; in encodeSbrGrid()
696 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_fLR[i], in encodeSbrGrid()
737 if (sbrEnvData->hSbrBSGrid->numberTimeSlots == 8) 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()
744 for (i = 0; i < sbrEnvData->hSbrBSGrid->bs_num_env; i++) { in encodeLowDelaySbrGrid()
745 payloadBits += FDKwriteBits (hBitStream, sbrEnvData->hSbrBSGrid->v_f[i], SBR_RES_BITS); in encodeLowDelaySbrGrid()