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