Lines Matching refs:hBs
168 HANDLE_FDK_BITSTREAM hBs, /*!< bitbuffer handle */
177 static int extractFrameInfo(HANDLE_FDK_BITSTREAM hBs,
184 HANDLE_FDK_BITSTREAM hBs, const UINT flags,
188 HANDLE_FDK_BITSTREAM hBs, const UINT flags);
191 HANDLE_FDK_BITSTREAM hBs,
196 HANDLE_FDK_BITSTREAM hBs);
378 sbrGetHeaderData(HANDLE_SBR_HEADER_DATA hHeaderData, HANDLE_FDK_BITSTREAM hBs, in sbrGetHeaderData() argument
390 FDKreadBits(hBs, 1); in sbrGetHeaderData()
393 FDKpushFor(hBs, 8); in sbrGetHeaderData()
396 FDKreadBits(hBs, 3); in sbrGetHeaderData()
398 FDKreadBits(hBs, 2); in sbrGetHeaderData()
400 headerExtra1 = FDKreadBit(hBs); in sbrGetHeaderData()
401 headerExtra2 = FDKreadBit(hBs); in sbrGetHeaderData()
402 FDKpushFor(hBs, 5 * headerExtra1 + 6 * headerExtra2); in sbrGetHeaderData()
419 hHeaderData->bs_info.ampResolution = FDKreadBits(hBs, 1); in sbrGetHeaderData()
422 pBsData->startFreq = FDKreadBits(hBs, 4); in sbrGetHeaderData()
423 pBsData->stopFreq = FDKreadBits(hBs, 4); in sbrGetHeaderData()
426 hHeaderData->bs_info.xover_band = FDKreadBits(hBs, 3); in sbrGetHeaderData()
427 FDKreadBits(hBs, 2); in sbrGetHeaderData()
430 headerExtra1 = FDKreadBits(hBs, 1); in sbrGetHeaderData()
431 headerExtra2 = FDKreadBits(hBs, 1); in sbrGetHeaderData()
435 pBsData->freqScale = FDKreadBits(hBs, 2); in sbrGetHeaderData()
436 pBsData->alterScale = FDKreadBits(hBs, 1); in sbrGetHeaderData()
437 pBsData->noise_bands = FDKreadBits(hBs, 2); in sbrGetHeaderData()
445 pBsData->limiterBands = FDKreadBits(hBs, 2); in sbrGetHeaderData()
446 pBsData->limiterGains = FDKreadBits(hBs, 2); in sbrGetHeaderData()
447 pBsData->interpolFreq = FDKreadBits(hBs, 1); in sbrGetHeaderData()
448 pBsData->smoothingLength = FDKreadBits(hBs, 1); in sbrGetHeaderData()
477 HANDLE_FDK_BITSTREAM hBs, const UINT flags) { in sbrGetSyntheticCodedData() argument
480 int add_harmonic_flag = FDKreadBits(hBs, 1); in sbrGetSyntheticCodedData()
490 hFrameData->addHarmonics[i] = FDKreadBits(hBs, readBits) in sbrGetSyntheticCodedData()
502 if (FDKreadBit(hBs) /* bs_sinusoidal_position_flag */) { in sbrGetSyntheticCodedData()
503 bs_sinusoidal_position = FDKreadBits(hBs, 5); in sbrGetSyntheticCodedData()
527 HANDLE_FDK_BITSTREAM hBs /*!< Handle to the bit buffer */ in extractExtendedData() argument
535 extended_data = FDKreadBits(hBs, 1); in extractExtendedData()
541 cnt = FDKreadBits(hBs, 4); in extractExtendedData()
542 if (cnt == (1 << 4) - 1) cnt += FDKreadBits(hBs, 8); in extractExtendedData()
547 if (nBitsLeft > (INT)FDKgetValidBits(hBs)) { in extractExtendedData()
549 nBitsLeft = (INT)FDKgetValidBits(hBs); in extractExtendedData()
555 int extension_id = FDKreadBits(hBs, 2); in extractExtendedData()
568 for (i = 0; i < cnt; i++) FDKreadBits(hBs, 8); in extractExtendedData()
572 (INT)ReadPsData(hParametricStereoDec, hBs, nBitsLeft); in extractExtendedData()
594 for (i = 0; i < cnt; i++) FDKreadBits(hBs, 8); in extractExtendedData()
605 FDKreadBits(hBs, nBitsLeft); in extractExtendedData()
621 UCHAR pvc_mode_last, HANDLE_FDK_BITSTREAM hBs, in sbrGetChannelElement() argument
629 if (FDKreadBits(hBs, 1)) { /* bs_data_extra */ in sbrGetChannelElement()
630 FDKreadBits(hBs, 4); in sbrGetChannelElement()
632 FDKreadBits(hBs, 4); in sbrGetChannelElement()
639 bs_coupling = FDKreadBits(hBs, 1); in sbrGetChannelElement()
649 FDKreadBits(hBs, 1); /* bs_coupling */ in sbrGetChannelElement()
656 hFrameDataLeft->sbrPatchingMode = FDKreadBit(hBs); in sbrGetChannelElement()
658 hFrameDataLeft->sbrOversamplingFlag = FDKreadBit(hBs); in sbrGetChannelElement()
659 if (FDKreadBit(hBs)) { /* sbrPitchInBinsFlag */ in sbrGetChannelElement()
660 hFrameDataLeft->sbrPitchInBins = FDKreadBits(hBs, 7); in sbrGetChannelElement()
676 hFrameDataRight->sbrPatchingMode = FDKreadBit(hBs); in sbrGetChannelElement()
678 hFrameDataRight->sbrOversamplingFlag = FDKreadBit(hBs); in sbrGetChannelElement()
679 if (FDKreadBit(hBs)) { /* sbrPitchInBinsFlag */ in sbrGetChannelElement()
680 hFrameDataRight->sbrPitchInBins = FDKreadBits(hBs, 7); in sbrGetChannelElement()
718 if (!extractPvcFrameInfo(hBs, hHeaderData, hFrameDataLeft, in sbrGetChannelElement()
727 if (!extractFrameInfo(hBs, hHeaderData, hFrameDataLeft, 1, flags)) return 0; in sbrGetChannelElement()
741 if (!extractFrameInfo(hBs, hHeaderData, hFrameDataRight, 2, flags)) in sbrGetChannelElement()
755 sbrGetDirectionControlData(hFrameDataLeft, hBs, flags, in sbrGetChannelElement()
758 sbrGetDirectionControlData(hFrameDataRight, hBs, flags, 0); in sbrGetChannelElement()
763 hFrameDataLeft->sbr_invf_mode[i] = (INVF_MODE)FDKreadBits(hBs, 2); in sbrGetChannelElement()
772 hFrameDataRight->sbr_invf_mode[i] = (INVF_MODE)FDKreadBits(hBs, 2); in sbrGetChannelElement()
779 if (!sbrGetPvcEnvelope(hHeaderData, hFrameDataLeft, hBs, flags, in sbrGetChannelElement()
782 } else if (!sbrGetEnvelope(hHeaderData, hFrameDataLeft, hBs, flags)) in sbrGetChannelElement()
785 sbrGetNoiseFloorData(hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelElement()
787 if (!sbrGetEnvelope(hHeaderData, hFrameDataLeft, hBs, flags)) { in sbrGetChannelElement()
791 sbrGetNoiseFloorData(hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelElement()
793 if (!sbrGetEnvelope(hHeaderData, hFrameDataRight, hBs, flags)) { in sbrGetChannelElement()
796 sbrGetNoiseFloorData(hHeaderData, hFrameDataRight, hBs); in sbrGetChannelElement()
799 if (!sbrGetEnvelope(hHeaderData, hFrameDataLeft, hBs, flags)) return 0; in sbrGetChannelElement()
801 if (!sbrGetEnvelope(hHeaderData, hFrameDataRight, hBs, flags)) return 0; in sbrGetChannelElement()
803 sbrGetNoiseFloorData(hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelElement()
805 sbrGetNoiseFloorData(hHeaderData, hFrameDataRight, hBs); in sbrGetChannelElement()
808 sbrGetSyntheticCodedData(hHeaderData, hFrameDataLeft, hBs, flags); in sbrGetChannelElement()
810 sbrGetSyntheticCodedData(hHeaderData, hFrameDataRight, hBs, flags); in sbrGetChannelElement()
814 if (!extractExtendedData(hHeaderData, hBs, hParametricStereoDec)) { in sbrGetChannelElement()
827 HANDLE_FDK_BITSTREAM hBs, /*!< handle to struct BIT_BUF */ in sbrGetDirectionControlData() argument
844 h_frame_data->domain_vec[i] = FDKreadBits(hBs, 1); in sbrGetDirectionControlData()
853 h_frame_data->domain_vec_noise[i] = FDKreadBits(hBs, 1); in sbrGetDirectionControlData()
863 HANDLE_FDK_BITSTREAM hBs) /*!< handle to struct BIT_BUF */ in sbrGetNoiseFloorData() argument
900 (FIXP_SGL)(((int)FDKreadBits(hBs, 5)) << envDataTableCompFactor); in sbrGetNoiseFloorData()
903 (FIXP_SGL)(int)FDKreadBits(hBs, 5); in sbrGetNoiseFloorData()
907 delta = DecodeHuffmanCW(hcb_noiseF, hBs); in sbrGetNoiseFloorData()
913 delta = DecodeHuffmanCW(hcb_noise, hBs); in sbrGetNoiseFloorData()
930 HANDLE_FDK_BITSTREAM hBs, /*!< handle to struct BIT_BUF */ in sbrGetPvcEnvelope() argument
936 divMode = FDKreadBits(hBs, PVC_DIVMODE_BITS); in sbrGetPvcEnvelope()
937 nsMode = FDKreadBit(hBs); in sbrGetPvcEnvelope()
945 indepFlag ? (reuse_pcvID = 0) : (reuse_pcvID = FDKreadBit(hBs)); in sbrGetPvcEnvelope()
949 pvcID[0] = FDKreadBits(hBs, PVC_PVCID_BITS); in sbrGetPvcEnvelope()
964 length = FDKreadBits(hBs, numBits); in sbrGetPvcEnvelope()
972 pvcID[k++] = FDKreadBits(hBs, PVC_PVCID_BITS); in sbrGetPvcEnvelope()
986 indepFlag ? (grid_info = 1) : (grid_info = FDKreadBit(hBs)); in sbrGetPvcEnvelope()
988 pvcID[k++] = FDKreadBits(hBs, PVC_PVCID_BITS); in sbrGetPvcEnvelope()
1001 grid_info = FDKreadBit(hBs); in sbrGetPvcEnvelope()
1003 pvcID[k++] = FDKreadBits(hBs, PVC_PVCID_BITS); in sbrGetPvcEnvelope()
1025 HANDLE_FDK_BITSTREAM hBs, /*!< handle to struct BIT_BUF */ in sbrGetEnvelope() argument
1100 (FIXP_SGL)(((int)FDKreadBits(hBs, start_bits_balance)) in sbrGetEnvelope()
1104 (FIXP_SGL)(int)FDKreadBits(hBs, start_bits); in sbrGetEnvelope()
1110 delta = DecodeHuffmanCW(hcb_f, hBs); in sbrGetEnvelope()
1112 delta = DecodeHuffmanCW(hcb_t, hBs); in sbrGetEnvelope()
1119 int bs_temp_shape = FDKreadBit(hBs); in sbrGetEnvelope()
1124 FDKread2Bits(hBs); /* bs_inter_temp_shape_mode */ in sbrGetEnvelope()
1256 HANDLE_FDK_BITSTREAM hBs, /*!< bitbuffer handle */ in extractPvcFrameInfo() argument
1268 bs_noise_position = FDKreadBits(hBs, 4); /* SBR_PVC_NOISEPOSITION_BITS 4 */ in extractPvcFrameInfo()
1269 bs_var_len_hf = FDKreadBit(hBs); in extractPvcFrameInfo()
1279 pFrameInfo->varLength = FDKreadBits(hBs, 2) + 1; in extractPvcFrameInfo()
1346 HANDLE_FDK_BITSTREAM hBs, /*!< bitbuffer handle */ in extractFrameInfo() argument
1360 frameClass = FDKreadBits(hBs, 1); /* frameClass = [1 bit] */ in extractFrameInfo()
1367 err = extractLowDelayGrid(hBs, hHeaderData, h_frame_data, numberTimeSlots, in extractFrameInfo()
1372 frameClass = FDKreadBits(hBs, 2); /* frameClass = C [2 bits] */ in extractFrameInfo()
1377 temp = FDKreadBits(hBs, 2); /* E [2 bits ] */ in extractFrameInfo()
1382 FDKreadBits(hBs, 1); /* new ELD Syntax 07-11-09 */ in extractFrameInfo()
1384 staticFreqRes = FDKreadBits(hBs, 1); in extractFrameInfo()
1461 temp = FDKreadBits(hBs, 2); /* A [2 bits] */ in extractFrameInfo()
1463 n = FDKreadBits(hBs, 2); /* n = N [2 bits] */ in extractFrameInfo()
1480 temp = FDKreadBits(hBs, 2); /* R [2 bits] */ in extractFrameInfo()
1487 p = FDKreadBits(hBs, pointer_bits); /* p = P [pointer_bits bits] */ in extractFrameInfo()
1495 pFrameInfo->freqRes[k] = FDKreadBits(hBs, 1); /* f = F [1 bits] */ in extractFrameInfo()
1512 temp = FDKreadBits(hBs, 2); /* R [2 bits] */ in extractFrameInfo()
1520 p = FDKreadBits(hBs, pointer_bits); /* p = P [pointer_bits bits] */ in extractFrameInfo()
1530 pFrameInfo->freqRes[k] = FDKreadBits(hBs, 1); /* f = F [1 bits] */ in extractFrameInfo()
1552 aL = FDKreadBits(hBs, 2); /* AL [2 bits], AL -> aL */ in extractFrameInfo()
1554 aR = FDKreadBits(hBs, 2) + numberTimeSlots; /* AR [2 bits], AR -> aR */ in extractFrameInfo()
1556 nL = FDKreadBits(hBs, 2); /* nL = NL [2 bits] */ in extractFrameInfo()
1558 nR = FDKreadBits(hBs, 2); /* nR = NR [2 bits] */ in extractFrameInfo()
1578 temp = FDKreadBits(hBs, 2); /* R [2 bits] */ in extractFrameInfo()
1590 temp = FDKreadBits(hBs, 2); /* R [2 bits] */ in extractFrameInfo()
1598 p = FDKreadBits(hBs, pointer_bits); /* p = P [pointer_bits bits] */ in extractFrameInfo()
1606 pFrameInfo->freqRes[k] = FDKreadBits(hBs, 1); /* f = F [1 bits] */ in extractFrameInfo()