Lines Matching refs:hBs

113 UINT transportEnc_LatmWriteValue(HANDLE_FDK_BITSTREAM hBs, int value)
129 FDKwriteBits(hBs, valueBytes-1, 2 ); /* size of value in Bytes */
132 FDKwriteBits(hBs, (UCHAR)(value>>((valueBytes-1-i)<<3)), 8);
289 HANDLE_FDK_BITSTREAM hBs,
302 FDKwriteBits( hBs, hAss->audioMuxVersion, 1 ); /* audioMuxVersion */
306 FDKwriteBits( hBs, hAss->audioMuxVersionA, 1 ); /* audioMuxVersionA */
313 hAss->streamMuxConfigBits+= transportEnc_LatmWriteValue( hBs, hAss->taraBufferFullness );/* taraBufferFullness */
315 FDKwriteBits( hBs, hAss->allStreamsSameTimeFraming ? 1:0, 1 ); /* allStreamsSameTimeFraming */
316 FDKwriteBits( hBs, hAss->noSubframes-1, 6 ); /* Number of Subframes */
317 FDKwriteBits( hBs, hAss->noProgram-1, 4 ); /* Number of Programs */
325 FDKwriteBits( hBs, hAss->noLayer[prog]-1, 3 );
338 FDKwriteBits( hBs, useSameConfig ? 1 : 0, 1 );
345 FDKpushFor(hBs, 2); /* align to ASC, even if we do not know the length of the "ascLen" field yet */
348 bits = FDKgetValidBits( hBs );
351 hBs,
356 bits = FDKgetValidBits( hBs ) - bits;
359 FDKpushBack(hBs, bits+2);
360 hAss->streamMuxConfigBits += transportEnc_LatmWriteValue( hBs, bits );
362 hBs,
390 FDKwriteBits( hBs, p_linfo->frameLengthType, 3 ); /* frameLengthType */
391 FDKwriteBits( hBs, bufferFullness, 8 ); /* bufferFullness */
398 FDKwriteBits( hBs, coreFrameOffset, 6 ); /* coreFrameOffset */
410 FDKwriteBits( hBs, p_linfo->frameLengthType, 3 ); /* frameLengthType */
411 FDKwriteBits( hBs, tmp, 9 );
419 FDKwriteBits( hBs, p_linfo->frameLengthType, 3 ); /* frameLengthType */
431 FDKwriteBits( hBs, i, 6 ); /* CELPframeLengthTabelIndex */
439 FDKwriteBits( hBs, p_linfo->frameLengthType, 3 ); /* frameLengthType */
451 FDKwriteBits( hBs, i, 1 ); /* HVXCframeLengthTableIndex */
465 FDKwriteBits( hBs, (hAss->otherDataLenBytes>0) ? 1:0, 1 ); /* otherDataPresent */
484 FDKwriteBits( hBs, otherDataLenEsc, 1 );
485 FDKwriteBits( hBs, otherDataLenTmp, 8 );
494 FDKwriteBits( hBs, crcCheckPresent, 1 ); /* crcCheckPresent */
497 FDKwriteBits( hBs, crcCheckSum, 8 ); /* crcCheckSum */
667 HANDLE_FDK_BITSTREAM hBs,
687 FDKwriteBits( hBs, 0, 1 ); /* useSameStreamMux useNewStreamMux */
688 CreateStreamMuxConfig(hAss, hBs, bufferFullness, cb);
692 FDKwriteBits( hBs, 1, 1 ); /* useSameStreamMux */
703 ErrorStatus = WriteAuPayloadLengthInfo( hBs, auBits );
717 HANDLE_FDK_BITSTREAM hBs,
727 FDKresetBitbuffer(hBs, BS_WRITER);
730 hAss->latmSubframeStart = FDKgetValidBits(hBs);
739 FDKwriteBits( hBs, 0x2B7, 11 );
741 hAss->audioMuxLengthBytesPos = FDKgetValidBits( hBs ); /* store read pointer position */
742 FDKwriteBits( hBs, hAss->audioMuxLengthBytes, 13 );
747 hBs,
771 HANDLE_FDK_BITSTREAM hBs,
784 latmBytes = (FDKgetValidBits(hBs)+7) >> 3;
791 FDKinitBitStream( &tmpBuf, hBs->hBitBuf.Buffer, hBs->hBitBuf.bufSize, 0, BS_WRITER ) ;
799 FDKwriteBits(hBs, 0, hAss->fillBits);
801 FDK_ASSERT( (FDKgetValidBits(hBs) % 8) == 0);
805 FDKsyncCache(hBs);
806 *bytes = (FDKgetValidBits(hBs) + 7)>>3;
807 //FDKfetchBuffer(hBs, buffer, (UINT*)bytes);
829 HANDLE_FDK_BITSTREAM hBs,
871 AdvanceAudioMuxElement(hAss, hBs, 0, 0, cb);
872 //CreateStreamMuxConfig(hAss, hBs, 0);