Lines Matching refs:hBs
140 static int extractFrameInfo (HANDLE_FDK_BITSTREAM hBs,
150 HANDLE_FDK_BITSTREAM hBs,
154 HANDLE_FDK_BITSTREAM hBs);
158 HANDLE_FDK_BITSTREAM hBs);
270 HANDLE_FDK_BITSTREAM hBs, in sbrGetHeaderData() argument
289 hHeaderData->bs_info.ampResolution = FDKreadBits (hBs, 1); in sbrGetHeaderData()
292 pBsData->startFreq = FDKreadBits (hBs, 4); in sbrGetHeaderData()
293 pBsData->stopFreq = FDKreadBits (hBs, 4); in sbrGetHeaderData()
296 hHeaderData->bs_info.xover_band = FDKreadBits (hBs, 3); in sbrGetHeaderData()
297 FDKreadBits (hBs, 2); in sbrGetHeaderData()
300 headerExtra1 = FDKreadBits (hBs, 1); in sbrGetHeaderData()
301 headerExtra2 = FDKreadBits (hBs, 1); in sbrGetHeaderData()
306 pBsData->freqScale = FDKreadBits (hBs, 2); in sbrGetHeaderData()
307 pBsData->alterScale = FDKreadBits (hBs, 1); in sbrGetHeaderData()
308 pBsData->noise_bands = FDKreadBits (hBs, 2); in sbrGetHeaderData()
317 pBsData->limiterBands = FDKreadBits (hBs, 2); in sbrGetHeaderData()
318 pBsData->limiterGains = FDKreadBits (hBs, 2); in sbrGetHeaderData()
319 pBsData->interpolFreq = FDKreadBits (hBs, 1); in sbrGetHeaderData()
320 pBsData->smoothingLength = FDKreadBits (hBs, 1); in sbrGetHeaderData()
351 HANDLE_FDK_BITSTREAM hBs) in sbrGetSyntheticCodedData() argument
355 int flag = FDKreadBits(hBs,1); in sbrGetSyntheticCodedData()
360 hFrameData->addHarmonics[i] = FDKreadBits (hBs, 1 ); in sbrGetSyntheticCodedData()
382 … HANDLE_FDK_BITSTREAM hBs /*!< Handle to the bit buffer */ in extractExtendedData() argument
390 extended_data = FDKreadBits(hBs, 1); in extractExtendedData()
396 cnt = FDKreadBits(hBs, 4); in extractExtendedData()
398 cnt += FDKreadBits(hBs, 8); in extractExtendedData()
404 if (nBitsLeft > (INT)FDKgetValidBits(hBs)) { in extractExtendedData()
406 nBitsLeft = (INT)FDKgetValidBits(hBs); in extractExtendedData()
412 int extension_id = FDKreadBits(hBs, 2); in extractExtendedData()
427 FDKreadBits(hBs, 8); in extractExtendedData()
430 nBitsLeft -= ReadPsData(hParametricStereoDec, hBs, nBitsLeft); in extractExtendedData()
450 FDKreadBits(hBs, 8); in extractExtendedData()
462 FDKreadBits(hBs, nBitsLeft); in extractExtendedData()
479 … HANDLE_FDK_BITSTREAM hBs, /*!< Handle to struct BIT_BUF */ in sbrGetSingleChannelElement() argument
492 if (FDKreadBits(hBs, 1)) { /* bs_data_extra */ in sbrGetSingleChannelElement()
493 FDKreadBits(hBs, 4); in sbrGetSingleChannelElement()
495 FDKreadBits(hBs, 4); in sbrGetSingleChannelElement()
501 FDKreadBits (hBs, 1); /* bs_coupling */ in sbrGetSingleChannelElement()
507 if ( !extractFrameInfo ( hBs, hHeaderData, hFrameData, 1, flags) ) in sbrGetSingleChannelElement()
517 sbrGetDirectionControlData (hFrameData, hBs); in sbrGetSingleChannelElement()
521 (INVF_MODE) FDKreadBits (hBs, 2); in sbrGetSingleChannelElement()
527 if ( !sbrGetEnvelope (hHeaderData, hFrameData, hBs, flags) ) in sbrGetSingleChannelElement()
531 sbrGetNoiseFloorData (hHeaderData, hFrameData, hBs); in sbrGetSingleChannelElement()
533 sbrGetSyntheticCodedData(hHeaderData, hFrameData, hBs); in sbrGetSingleChannelElement()
539 hBs in sbrGetSingleChannelElement()
559 HANDLE_FDK_BITSTREAM hBs, /*!< handle to struct BIT_BUF */ in sbrGetChannelPairElement() argument
567 if (FDKreadBits(hBs, 1)) { /* bs_data_extra */ in sbrGetChannelPairElement()
568 FDKreadBits(hBs, 4); in sbrGetChannelPairElement()
569 FDKreadBits(hBs, 4); in sbrGetChannelPairElement()
573 bit = FDKreadBits (hBs, 1); in sbrGetChannelPairElement()
588 if ( !extractFrameInfo (hBs, hHeaderData, hFrameDataLeft, 2, flags) ) in sbrGetChannelPairElement()
599 if ( !extractFrameInfo (hBs, hHeaderData, hFrameDataRight, 2, flags) ) in sbrGetChannelPairElement()
609 sbrGetDirectionControlData (hFrameDataLeft, hBs); in sbrGetChannelPairElement()
610 sbrGetDirectionControlData (hFrameDataRight, hBs); in sbrGetChannelPairElement()
613 hFrameDataLeft->sbr_invf_mode[i] = (INVF_MODE) FDKreadBits (hBs, 2); in sbrGetChannelPairElement()
622 if ( !sbrGetEnvelope (hHeaderData, hFrameDataLeft, hBs, flags) ) { in sbrGetChannelPairElement()
626 sbrGetNoiseFloorData (hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelPairElement()
628 if ( !sbrGetEnvelope (hHeaderData, hFrameDataRight, hBs, flags) ) { in sbrGetChannelPairElement()
635 hFrameDataRight->sbr_invf_mode[i] = (INVF_MODE) FDKreadBits (hBs, 2); in sbrGetChannelPairElement()
640 if ( !sbrGetEnvelope (hHeaderData, hFrameDataLeft, hBs, flags) ) in sbrGetChannelPairElement()
643 if ( !sbrGetEnvelope (hHeaderData, hFrameDataRight, hBs, flags) ) in sbrGetChannelPairElement()
646 sbrGetNoiseFloorData (hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelPairElement()
649 sbrGetNoiseFloorData (hHeaderData, hFrameDataRight, hBs); in sbrGetChannelPairElement()
651 sbrGetSyntheticCodedData(hHeaderData, hFrameDataLeft, hBs); in sbrGetChannelPairElement()
652 sbrGetSyntheticCodedData(hHeaderData, hFrameDataRight, hBs); in sbrGetChannelPairElement()
657 hBs in sbrGetChannelPairElement()
675 HANDLE_FDK_BITSTREAM hBs) /*!< handle to struct BIT_BUF */ in sbrGetDirectionControlData() argument
680 h_frame_data->domain_vec[i] = FDKreadBits (hBs, 1); in sbrGetDirectionControlData()
684 h_frame_data->domain_vec_noise[i] = FDKreadBits (hBs, 1); in sbrGetDirectionControlData()
696 HANDLE_FDK_BITSTREAM hBs) /*!< handle to struct BIT_BUF */ in sbrGetNoiseFloorData() argument
733 (FIXP_SGL) (((int)FDKreadBits (hBs, 5)) << envDataTableCompFactor); in sbrGetNoiseFloorData()
737 (FIXP_SGL) (int)FDKreadBits (hBs, 5); in sbrGetNoiseFloorData()
741 delta = DecodeHuffmanCW(hcb_noiseF, hBs); in sbrGetNoiseFloorData()
747 delta = DecodeHuffmanCW(hcb_noise, hBs); in sbrGetNoiseFloorData()
761 HANDLE_FDK_BITSTREAM hBs, /*!< handle to struct BIT_BUF */ in sbrGetEnvelope() argument
844 (FIXP_SGL) (( (int)FDKreadBits(hBs, start_bits_balance)) << envDataTableCompFactor); in sbrGetEnvelope()
848 (FIXP_SGL) (int)FDKreadBits (hBs, start_bits); in sbrGetEnvelope()
855 delta = DecodeHuffmanCW(hcb_f, hBs); in sbrGetEnvelope()
858 delta = DecodeHuffmanCW(hcb_t, hBs); in sbrGetEnvelope()
986 extractFrameInfo ( HANDLE_FDK_BITSTREAM hBs, /*!< bitbuffer handle */ in extractFrameInfo() argument
1002 frameClass = FDKreadBits (hBs, 1); /* frameClass = [1 bit] */ in extractFrameInfo()
1007 extractLowDelayGrid (hBs, hHeaderData, h_frame_data, numberTimeSlots); in extractFrameInfo()
1012 frameClass = FDKreadBits (hBs, 2); /* frameClass = C [2 bits] */ in extractFrameInfo()
1018 temp = FDKreadBits (hBs, 2); /* E [2 bits ] */ in extractFrameInfo()
1022 h_frame_data->ampResolutionCurrentFrame = FDKreadBits( hBs, 1); /* new ELD Syntax 07-11-09 */ in extractFrameInfo()
1024 staticFreqRes = FDKreadBits (hBs, 1); in extractFrameInfo()
1095 temp = FDKreadBits (hBs, 2); /* A [2 bits] */ in extractFrameInfo()
1097 n = FDKreadBits (hBs, 2); /* n = N [2 bits] */ in extractFrameInfo()
1114 temp = FDKreadBits (hBs, 2);/* R [2 bits] */ in extractFrameInfo()
1122 p = FDKreadBits (hBs, pointer_bits); /* p = P [pointer_bits bits] */ in extractFrameInfo()
1132 pFrameInfo->freqRes[k] = FDKreadBits (hBs, 1); /* f = F [1 bits] */ in extractFrameInfo()
1150 temp = FDKreadBits (hBs, 2);/* R [2 bits] */ in extractFrameInfo()
1159 p = FDKreadBits (hBs, pointer_bits); /* p = P [pointer_bits bits] */ in extractFrameInfo()
1172 pFrameInfo->freqRes[k] = FDKreadBits(hBs, 1); /* f = F [1 bits] */ in extractFrameInfo()
1195 aL = FDKreadBits (hBs, 2); /* AL [2 bits], AL -> aL */ in extractFrameInfo()
1197 aR = FDKreadBits (hBs, 2) + numberTimeSlots; /* AR [2 bits], AR -> aR */ in extractFrameInfo()
1199 nL = FDKreadBits (hBs, 2); /* nL = NL [2 bits] */ in extractFrameInfo()
1201 nR = FDKreadBits (hBs, 2); /* nR = NR [2 bits] */ in extractFrameInfo()
1227 temp = FDKreadBits (hBs, 2);/* R [2 bits] */ in extractFrameInfo()
1240 temp = FDKreadBits (hBs, 2);/* R [2 bits] */ in extractFrameInfo()
1248 p = FDKreadBits (hBs, pointer_bits); /* p = P [pointer_bits bits] */ in extractFrameInfo()
1259 pFrameInfo->freqRes[k] = FDKreadBits(hBs, 1); /* f = F [1 bits] */ in extractFrameInfo()