• Home
  • Raw
  • Download

Lines Matching refs:hBs

119 static UINT transportEnc_LatmWriteValue(HANDLE_FDK_BITSTREAM hBs, int value) {  in transportEnc_LatmWriteValue()  argument
134 FDKwriteBits(hBs, valueBytes - 1, 2); /* size of value in Bytes */ in transportEnc_LatmWriteValue()
137 FDKwriteBits(hBs, (UCHAR)(value >> ((valueBytes - 1 - i) << 3)), 8); in transportEnc_LatmWriteValue()
287 CreateStreamMuxConfig(HANDLE_LATM_STREAM hAss, HANDLE_FDK_BITSTREAM hBs, in CreateStreamMuxConfig() argument
298 FDKwriteBits(hBs, hAss->audioMuxVersion, 1); /* audioMuxVersion */ in CreateStreamMuxConfig()
302 FDKwriteBits(hBs, hAss->audioMuxVersionA, 1); /* audioMuxVersionA */ in CreateStreamMuxConfig()
309 hBs, hAss->taraBufferFullness); /* taraBufferFullness */ in CreateStreamMuxConfig()
311 FDKwriteBits(hBs, hAss->allStreamsSameTimeFraming ? 1 : 0, in CreateStreamMuxConfig()
313 FDKwriteBits(hBs, hAss->noSubframes - 1, 6); /* Number of Subframes */ in CreateStreamMuxConfig()
314 FDKwriteBits(hBs, hAss->noProgram - 1, 4); /* Number of Programs */ in CreateStreamMuxConfig()
322 FDKwriteBits(hBs, hAss->noLayer[prog] - 1, 3); in CreateStreamMuxConfig()
335 FDKwriteBits(hBs, useSameConfig ? 1 : 0, 1); in CreateStreamMuxConfig()
339 const UINT alignAnchor = FDKgetValidBits(hBs); in CreateStreamMuxConfig()
342 (transportEnc_writeASC(hBs, hAss->config[prog][layer], cb))) { in CreateStreamMuxConfig()
347 UINT ascLen = transportEnc_LatmWriteValue(hBs, 0); in CreateStreamMuxConfig()
348 FDKbyteAlign(hBs, alignAnchor); in CreateStreamMuxConfig()
349 ascLen = FDKgetValidBits(hBs) - alignAnchor - ascLen; in CreateStreamMuxConfig()
350 FDKpushBack(hBs, FDKgetValidBits(hBs) - alignAnchor); in CreateStreamMuxConfig()
352 transportEnc_LatmWriteValue(hBs, ascLen); in CreateStreamMuxConfig()
355 (transportEnc_writeASC(hBs, hAss->config[prog][layer], cb))) { in CreateStreamMuxConfig()
359 FDKbyteAlign(hBs, alignAnchor); /* asc length fillbits */ in CreateStreamMuxConfig()
363 FDKgetValidBits(hBs) - in CreateStreamMuxConfig()
385 FDKwriteBits(hBs, p_linfo->frameLengthType, in CreateStreamMuxConfig()
387 FDKwriteBits(hBs, bufferFullness, 8); /* bufferFullness */ in CreateStreamMuxConfig()
396 FDKwriteBits(hBs, coreFrameOffset, 6); /* coreFrameOffset */ in CreateStreamMuxConfig()
409 FDKwriteBits(hBs, p_linfo->frameLengthType, in CreateStreamMuxConfig()
411 FDKwriteBits(hBs, tmp, 9); in CreateStreamMuxConfig()
419 FDKwriteBits(hBs, p_linfo->frameLengthType, in CreateStreamMuxConfig()
431 FDKwriteBits(hBs, i, 6); /* CELPframeLengthTabelIndex */ in CreateStreamMuxConfig()
439 FDKwriteBits(hBs, p_linfo->frameLengthType, in CreateStreamMuxConfig()
452 FDKwriteBits(hBs, i, 1); /* HVXCframeLengthTableIndex */ in CreateStreamMuxConfig()
466 FDKwriteBits(hBs, (hAss->otherDataLenBits > 0) ? 1 : 0, in CreateStreamMuxConfig()
471 FDKwriteBits(hBs, 0, 1); in CreateStreamMuxConfig()
472 FDKwriteBits(hBs, hAss->otherDataLenBits, 8); in CreateStreamMuxConfig()
476 FDKwriteBits(hBs, 0, 1); /* crcCheckPresent=0 */ in CreateStreamMuxConfig()
638 HANDLE_FDK_BITSTREAM hBs, in AdvanceAudioMuxElement() argument
654 FDKwriteBits(hBs, 0, 1); /* useSameStreamMux useNewStreamMux */ in AdvanceAudioMuxElement()
656 hAss, hBs, bufferFullness, cb))) { in AdvanceAudioMuxElement()
660 FDKwriteBits(hBs, 1, 1); /* useSameStreamMux */ in AdvanceAudioMuxElement()
671 ErrorStatus = WriteAuPayloadLengthInfo(hBs, auBits); in AdvanceAudioMuxElement()
682 transportEnc_LatmWrite(HANDLE_LATM_STREAM hAss, HANDLE_FDK_BITSTREAM hBs, in transportEnc_LatmWrite() argument
688 FDKresetBitbuffer(hBs, BS_WRITER); in transportEnc_LatmWrite()
691 hAss->latmSubframeStart = FDKgetValidBits(hBs); in transportEnc_LatmWrite()
699 FDKwriteBits(hBs, 0x2B7, 11); in transportEnc_LatmWrite()
702 FDKgetValidBits(hBs); /* store read pointer position */ in transportEnc_LatmWrite()
703 FDKwriteBits(hBs, hAss->audioMuxLengthBytes, 13); in transportEnc_LatmWrite()
706 ErrorStatus = AdvanceAudioMuxElement(hAss, hBs, auBits, bufferFullness, cb); in transportEnc_LatmWrite()
724 HANDLE_FDK_BITSTREAM hBs, in transportEnc_LatmGetFrame() argument
736 ((FDKgetValidBits(hBs) + hAss->otherDataLenBits + 7) >> 3) - in transportEnc_LatmGetFrame()
746 FDKinitBitStream(&tmpBuf, hBs->hBitBuf.Buffer, hBs->hBitBuf.bufSize, 0, in transportEnc_LatmGetFrame()
754 FDKwriteBits(hBs, 0, hAss->otherDataLenBits); in transportEnc_LatmGetFrame()
757 FDKwriteBits(hBs, 0, hAss->fillBits); in transportEnc_LatmGetFrame()
759 FDK_ASSERT((FDKgetValidBits(hBs) % 8) == 0); in transportEnc_LatmGetFrame()
763 FDKsyncCache(hBs); in transportEnc_LatmGetFrame()
764 *pBytes = (FDKgetValidBits(hBs) + 7) >> 3; in transportEnc_LatmGetFrame()
787 HANDLE_FDK_BITSTREAM hBs, in transportEnc_Latm_Init() argument
821 (ErrorStatus = AdvanceAudioMuxElement(hAss, hBs, 0, 0, cb))) { in transportEnc_Latm_Init()