Lines Matching refs:bitstream
218 HANDLE_FDK_BITSTREAM bitstream, SPATIAL_SPECIFIC_CONFIG *config, in SpatialDecParseExtensionConfig() argument
226 ba = fMin((int)FDKgetValidBits(bitstream), ba); in SpatialDecParseExtensionConfig()
233 config->sacExtType[config->sacExtCnt] = FDKreadBits(bitstream, 4); in SpatialDecParseExtensionConfig()
236 sacExtLen = FDKreadBits(bitstream, 4); in SpatialDecParseExtensionConfig()
240 sacExtLen += FDKreadBits(bitstream, 8); in SpatialDecParseExtensionConfig()
243 sacExtLen += FDKreadBits(bitstream, 16); in SpatialDecParseExtensionConfig()
249 bitstream); /* Extension config payload start anchor. */ in SpatialDecParseExtensionConfig()
260 bitsRead = tmp - FDKgetValidBits(bitstream); in SpatialDecParseExtensionConfig()
268 FDKpushFor(bitstream, nFillBits); in SpatialDecParseExtensionConfig()
280 HANDLE_FDK_BITSTREAM bitstream, in SpatialDecParseSpecificConfigHeader() argument
288 sacTimeAlignFlag = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfigHeader()
289 sacHeaderLen = FDKreadBits(bitstream, 7); in SpatialDecParseSpecificConfigHeader()
292 sacHeaderLen += FDKreadBits(bitstream, 16); in SpatialDecParseSpecificConfigHeader()
294 numFillBits = (INT)FDKgetValidBits(bitstream); in SpatialDecParseSpecificConfigHeader()
296 err = SpatialDecParseSpecificConfig(bitstream, pSpatialSpecificConfig, in SpatialDecParseSpecificConfigHeader()
300 (INT)FDKgetValidBits(bitstream); /* the number of read bits (tmpBits) */ in SpatialDecParseSpecificConfigHeader()
307 FDKpushBiDirectional(bitstream, numFillBits); in SpatialDecParseSpecificConfigHeader()
311 FDKreadBits(bitstream, 16); in SpatialDecParseSpecificConfigHeader()
322 HANDLE_FDK_BITSTREAM bitstream, in SpatialDecParseMps212Config() argument
333 (SPATIALDEC_FREQ_RES)freqResTable[FDKreadBits(bitstream, 3)]; in SpatialDecParseMps212Config()
341 (SPATIALDEC_FIXED_GAINS)FDKreadBits(bitstream, 3); in SpatialDecParseMps212Config()
344 (SPATIALDEC_TS_CONF)(FDKreadBits(bitstream, 1) * 3); in SpatialDecParseMps212Config()
350 (SPATIALDEC_FIXED_GAINS)FDKreadBits(bitstream, 3); in SpatialDecParseMps212Config()
352 (SPATIALDEC_TS_CONF)FDKreadBits(bitstream, 2); in SpatialDecParseMps212Config()
354 (SPATIALDEC_DECORR_CONF)FDKreadBits(bitstream, 2); in SpatialDecParseMps212Config()
364 pSpatialSpecificConfig->bsHighRateMode = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
367 pSpatialSpecificConfig->bsPhaseCoding = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
369 (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
372 FDKreadBits(bitstream, 5))) { in SpatialDecParseMps212Config()
385 FDKreadBits(bitstream, 5))) { in SpatialDecParseMps212Config()
391 pSpatialSpecificConfig->bsPseudoLr = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
404 pSpatialSpecificConfig->envQuantMode = FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
442 HANDLE_FDK_BITSTREAM bitstream, in SpatialDecParseSpecificConfig() argument
454 cfgStartPos = FDKgetValidBits(bitstream); in SpatialDecParseSpecificConfig()
466 bsSamplingFreqIndex = FDKreadBits(bitstream, 4); in SpatialDecParseSpecificConfig()
469 pSpatialSpecificConfig->samplingFreq = FDKreadBits(bitstream, 24); in SpatialDecParseSpecificConfig()
479 pSpatialSpecificConfig->nTimeSlots = FDKreadBits(bitstream, 5) + 1; in SpatialDecParseSpecificConfig()
486 bsFreqRes = FDKreadBits(bitstream, 3); in SpatialDecParseSpecificConfig()
492 (SPATIALDEC_TREE_CONFIG)FDKreadBits(bitstream, 4); in SpatialDecParseSpecificConfig()
511 (SPATIALDEC_QUANT_MODE)FDKreadBits(bitstream, 2); in SpatialDecParseSpecificConfig()
513 pSpatialSpecificConfig->bArbitraryDownmix = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
516 (SPATIALDEC_FIXED_GAINS)FDKreadBits(bitstream, 3); in SpatialDecParseSpecificConfig()
519 (SPATIALDEC_TS_CONF)FDKreadBits(bitstream, 2); in SpatialDecParseSpecificConfig()
525 (SPATIALDEC_DECORR_CONF)FDKreadBits(bitstream, 2); in SpatialDecParseSpecificConfig()
535 int bTttDualMode = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
536 FDKreadBits(bitstream, 3); /* not supported */ in SpatialDecParseSpecificConfig()
539 FDKreadBits(bitstream, 8); /* not supported */ in SpatialDecParseSpecificConfig()
544 pSpatialSpecificConfig->envQuantMode = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
548 if (FDKreadBits(bitstream, 2) == 0) { /* b3DaudioHRTFset ? */ in SpatialDecParseSpecificConfig()
551 int HRTFfreqRes = FDKreadBits(bitstream, 3); in SpatialDecParseSpecificConfig()
552 int HRTFnumChan = FDKreadBits(bitstream, 4); in SpatialDecParseSpecificConfig()
553 int HRTFasymmetric = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
558 FDKpushFor(bitstream, HRTFnumBand * 6); /* HRTFlevelLeft[hc][hb] */ in SpatialDecParseSpecificConfig()
560 FDKpushFor(bitstream, HRTFnumBand * 6); /* HRTFlevelRight[hc][hb] */ in SpatialDecParseSpecificConfig()
562 if (FDKreadBits(bitstream, 1)) { /* HRTFphase[hc] ? */ in SpatialDecParseSpecificConfig()
563 FDKpushFor(bitstream, HRTFnumBand * 6); /* HRTFphaseLR[hc][hb] */ in SpatialDecParseSpecificConfig()
565 if (FDKreadBits(bitstream, 1)) { /* HRTFicc[hc] ? */ in SpatialDecParseSpecificConfig()
566 FDKpushFor(bitstream, HRTFnumBand * 6); /* HRTFiccLR[hc][hb] */ in SpatialDecParseSpecificConfig()
572 FDKbyteAlign(bitstream, in SpatialDecParseSpecificConfig()
577 numHeaderBits = cfgStartPos - (INT)FDKgetValidBits(bitstream); in SpatialDecParseSpecificConfig()
588 bitstream, pSpatialSpecificConfig, pSpatialSpecificConfig->nOttBoxes, in SpatialDecParseSpecificConfig()
593 bitstream, in SpatialDecParseSpecificConfig()
606 bitstream, in SpatialDecParseSpecificConfig()
607 (sacHeaderLen * 8) - (cfgStartPos - (INT)FDKgetValidBits(bitstream))); in SpatialDecParseSpecificConfig()
781 HANDLE_FDK_BITSTREAM bitstream, LOSSLESSDATA *const llData, in ecDataDec() argument
790 llData->bsXXXDataMode[i] = (SCHAR)FDKreadBits(bitstream, 2); in ecDataDec()
828 bsDataPair = FDKreadBits(bitstream, 1); in ecDataDec()
829 llData->bsQuantCoarseXXX[setIdx] = (UCHAR)FDKreadBits(bitstream, 1); in ecDataDec()
830 llData->bsFreqResStrideXXX[setIdx] = (UCHAR)FDKreadBits(bitstream, 2); in ecDataDec()
862 this_decoder_type, bitstream, data[boxIdx][setIdx + 0], in ecDataDec()
918 HANDLE_FDK_BITSTREAM bitstream) { in parseArbitraryDownmixData() argument
925 err = ecDataDec(frame, syntaxFlags, bitstream, in parseArbitraryDownmixData()
964 HANDLE_FDK_BITSTREAM bitstream, in SpatialDecParseFrameData() argument
978 bitstream); /* Anchor for ByteAlign() function. See comment below. */ in SpatialDecParseFrameData()
988 bsFramingType = FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
990 frame->numParameterSets = FDKreadBits(bitstream, 1) + 1; in SpatialDecParseFrameData()
992 frame->numParameterSets = FDKreadBits(bitstream, 3) + 1; in SpatialDecParseFrameData()
1018 frame->paramSlot[i] = FDKreadBits(bitstream, bitsParamSlot); in SpatialDecParseFrameData()
1040 frame->bsIndependencyFlag = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
1047 err = ecDataDec(frame, syntaxFlags, bitstream, &frame->CLDLosslessData[i], in SpatialDecParseFrameData()
1058 err = ecDataDec(frame, syntaxFlags, bitstream, &frame->ICCLosslessData[i], in SpatialDecParseFrameData()
1069 frame->phaseMode = FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
1082 frame->OpdSmoothingMode = FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
1083 err = ecDataDec(frame, syntaxFlags, bitstream, &frame->IPDLosslessData[0], in SpatialDecParseFrameData()
1104 frame->bsSmoothMode[ps] = (UCHAR)FDKreadBits(bitstream, 2); in SpatialDecParseFrameData()
1106 frame->bsSmoothTime[ps] = (UCHAR)FDKreadBits(bitstream, 2); in SpatialDecParseFrameData()
1109 frame->bsFreqResStrideSmg[ps] = (UCHAR)FDKreadBits(bitstream, 2); in SpatialDecParseFrameData()
1114 frame->bsSmgData[ps][pg] = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
1127 TsdErr = TsdRead(bitstream, pSpatialSpecificConfig->nTimeSlots, in SpatialDecParseFrameData()
1144 int bsTempShapeEnable = FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
1152 int stpEnable = FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
1161 gesChannelEnable[i] = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseFrameData()
1167 if (huff_dec_reshape(bitstream, envShapeData_tmp, in SpatialDecParseFrameData()
1192 frame, bitstream); in SpatialDecParseFrameData()
1197 FDKbyteAlign(bitstream, in SpatialDecParseFrameData()