Lines Matching defs:bitstream
100 Bitstream Writer
262 /* write data to bitstream */
263 static void ecData(HANDLE_FDK_BITSTREAM bitstream,
290 FDKwriteBits(bitstream, losslessData->bsXXXDataMode[paramIdx][0], 2);
306 FDKwriteBits(bitstream, losslessData->bsXXXDataMode[paramIdx][ps], 2);
356 FDKwriteBits(bitstream, losslessData->bsDataPair[paramIdx][ps], 1);
357 FDKwriteBits(bitstream, losslessData->bsQuantCoarseXXX[paramIdx][ps], 1);
358 FDKwriteBits(bitstream, losslessData->bsFreqResStrideXXX[paramIdx][ps],
401 fdk_sacenc_ecDataPairEnc(bitstream, cmpIdxData, cmpOldData, dataType, 0,
406 fdk_sacenc_ecDataSingleEnc(bitstream, cmpIdxData, cmpOldData, dataType,
434 /* Bitstream formatter interface functions */
547 FDK_BITSTREAM bitstream;
560 /* bind extern buffer to bitstream handle */
561 FDKinitBitStream(&bitstream, pOutputBuffer, outputBufferSize, 0, BS_WRITER);
564 /* write to bitstream */
566 FDKwriteBits(&bitstream, bsSamplingFrequencyIndex, 4);
569 FDKwriteBits(&bitstream, spatialSpecificConfig->bsSamplingFrequency, 24);
572 FDKwriteBits(&bitstream, spatialSpecificConfig->bsFrameLength, 5);
574 FDKwriteBits(&bitstream, bsFreqRes, 3);
575 FDKwriteBits(&bitstream, spatialSpecificConfig->bsTreeConfig, 4);
576 FDKwriteBits(&bitstream, spatialSpecificConfig->bsQuantMode, 2);
578 FDKwriteBits(&bitstream, 0, 1); /* bsArbitraryDownmix */
580 FDKwriteBits(&bitstream, spatialSpecificConfig->bsFixedGainDMX, 3);
582 FDKwriteBits(&bitstream, TEMPSHAPE_OFF, 2);
583 FDKwriteBits(&bitstream, spatialSpecificConfig->bsDecorrConfig, 2);
585 FDKbyteAlign(&bitstream, 0); /* byte alignment */
587 /* return number of valid bits in bitstream */
588 if ((*pnOutputBits = FDKgetValidBits(&bitstream)) >
595 FDKbyteAlign(&bitstream, 0);
715 HANDLE_FDK_BITSTREAM bitstream, HANDLE_BSF_INSTANCE self) {
718 if ((bitstream == NULL) || (self == NULL)) {
721 FDKbyteAlign(bitstream, 0);
739 FDK_BITSTREAM bitstream;
769 /* bind extern buffer to bitstream handle */
770 FDKinitBitStream(&bitstream, pOutputBuffer, outputBufferSize, 0, BS_WRITER);
773 &bitstream, &(frame->framingInfo),
779 FDKwriteBits(&bitstream, frame->bsIndependencyFlag, 1);
781 /* write spatial data to bitstream */
783 (error = writeOttData(&bitstream, &selfPtr->prevFrameData.prevOttData,
790 if (SACENC_OK != (error = writeSmgData(&bitstream, &frame->smgData,
796 FDKbyteAlign(&bitstream, 0);
800 (error = WriteSpatialExtensionFrame(&bitstream, selfPtr))) {
812 /* return number of valid bits in bitstream */
813 if ((*pnOutputBits = FDKgetValidBits(&bitstream)) >
820 FDKbyteAlign(&bitstream, 0);