Lines Matching refs:FDKwriteBits

384   FDKwriteBits(hBs, instanceTagPCE, 4);  /* Element instance tag */  in transportEnc_writePCE()
385 FDKwriteBits(hBs, profile, 2); /* Object type */ in transportEnc_writePCE()
386 FDKwriteBits(hBs, sampleRateIndex, 4); /* Sample rate index*/ in transportEnc_writePCE()
388 FDKwriteBits(hBs, config->num_front_channel_elements, in transportEnc_writePCE()
390 FDKwriteBits(hBs, config->num_side_channel_elements, in transportEnc_writePCE()
392 FDKwriteBits(hBs, config->num_back_channel_elements, in transportEnc_writePCE()
394 FDKwriteBits(hBs, config->num_lfe_channel_elements, in transportEnc_writePCE()
397 FDKwriteBits(hBs, 0, 3); /* No assoc data elements */ in transportEnc_writePCE()
398 FDKwriteBits(hBs, 0, 4); /* No valid cc elements */ in transportEnc_writePCE()
399 FDKwriteBits(hBs, 0, 1); /* Mono mixdown present */ in transportEnc_writePCE()
400 FDKwriteBits(hBs, 0, 1); /* Stereo mixdown present */ in transportEnc_writePCE()
404 FDKwriteBits(hBs, 1, 1); /* Matrix mixdown present */ in transportEnc_writePCE()
405 FDKwriteBits(hBs, (matrixMixdownA - 1) & 0x3, 2); /* matrix_mixdown_idx */ in transportEnc_writePCE()
406 FDKwriteBits(hBs, (pseudoSurroundEnable) ? 1 : 0, in transportEnc_writePCE()
409 FDKwriteBits(hBs, 0, 1); /* Matrix mixdown not present */ in transportEnc_writePCE()
513 FDKwriteBits(hBs, frontIsCpe[i], 1); in transportEnc_writePCE()
514 FDKwriteBits(hBs, frontTag[i], 4); in transportEnc_writePCE()
518 FDKwriteBits(hBs, sideIsCpe[i], 1); in transportEnc_writePCE()
519 FDKwriteBits(hBs, sideTag[i], 4); in transportEnc_writePCE()
523 FDKwriteBits(hBs, backIsCpe[i], 1); in transportEnc_writePCE()
524 FDKwriteBits(hBs, backTag[i], 4); in transportEnc_writePCE()
528 FDKwriteBits(hBs, lfeCnt++, 4); /* LFE channel Instance Tag. */ in transportEnc_writePCE()
555 FDKwriteBits(hBs, commentBytes, 8); /* comment size. */ in transportEnc_writePCE()
563 FDKwriteBits(hBs, PCE_HEIGHT_EXT_SYNC, 8); /* indicate height extension */ in transportEnc_writePCE()
571 FDKwriteBits(hBs, HEIGHT_NORMAL, 2); in transportEnc_writePCE()
574 FDKwriteBits(hBs, HEIGHT_TOP, 2); in transportEnc_writePCE()
577 FDKwriteBits(hBs, HEIGHT_BOTTOM, 2); in transportEnc_writePCE()
585 FDKwriteBits(hBs, HEIGHT_NORMAL, 2); in transportEnc_writePCE()
588 FDKwriteBits(hBs, HEIGHT_TOP, 2); in transportEnc_writePCE()
591 FDKwriteBits(hBs, HEIGHT_BOTTOM, 2); in transportEnc_writePCE()
599 FDKwriteBits(hBs, HEIGHT_NORMAL, 2); in transportEnc_writePCE()
602 FDKwriteBits(hBs, HEIGHT_TOP, 2); in transportEnc_writePCE()
605 FDKwriteBits(hBs, HEIGHT_BOTTOM, 2); in transportEnc_writePCE()
610 FDKwriteBits(hBs, FDKcrcGetCRC(&crcInfo), 8); in transportEnc_writePCE()
613 FDKwriteBits(hBs, 0, in transportEnc_writePCE()
677 FDKwriteBits(hBitstreamBuffer, AOT_ESCAPE, 5); in writeAot()
678 FDKwriteBits(hBitstreamBuffer, tmp - 32, 6); /* AudioObjectType */ in writeAot()
680 FDKwriteBits(hBitstreamBuffer, tmp, 5); in writeAot()
688 FDKwriteBits(hBs, srIdx, nBits); in writeSampleRate()
690 FDKwriteBits(hBs, sampleRate, 24); in writeSampleRate()
701 FDKwriteBits(asc, in transportEnc_writeGASpecificConfig()
705 FDKwriteBits(asc, 0, in transportEnc_writeGASpecificConfig()
708 FDKwriteBits(asc, extFlg, in transportEnc_writeGASpecificConfig()
719 FDKwriteBits(asc, 0, 3); /* layerNr */ in transportEnc_writeGASpecificConfig()
723 FDKwriteBits(asc, config->BSACnumOfSubFrame, 5); /* numOfSubFrame */ in transportEnc_writeGASpecificConfig()
724 FDKwriteBits(asc, config->BSAClayerLength, 11); /* layer_length */ in transportEnc_writeGASpecificConfig()
728 FDKwriteBits(asc, (config->flags & CC_VCB11) ? 1 : 0, in transportEnc_writeGASpecificConfig()
730 FDKwriteBits(asc, (config->flags & CC_RVLC) ? 1 : 0, in transportEnc_writeGASpecificConfig()
732 FDKwriteBits(asc, (config->flags & CC_HCR) ? 1 : 0, in transportEnc_writeGASpecificConfig()
735 FDKwriteBits(asc, 0, 1); /* extensionFlag3: reserved. Shall be '0' */ in transportEnc_writeGASpecificConfig()
761 FDKwriteBits(hBs, frameLengthFlag, 1); in transportEnc_writeELDSpecificConfig()
763 FDKwriteBits(hBs, (config->flags & CC_VCB11) ? 1 : 0, 1); in transportEnc_writeELDSpecificConfig()
764 FDKwriteBits(hBs, (config->flags & CC_RVLC) ? 1 : 0, 1); in transportEnc_writeELDSpecificConfig()
765 FDKwriteBits(hBs, (config->flags & CC_HCR) ? 1 : 0, 1); in transportEnc_writeELDSpecificConfig()
767 FDKwriteBits(hBs, (config->flags & CC_SBR) ? 1 : 0, 1); /* SBR header flag */ in transportEnc_writeELDSpecificConfig()
769 FDKwriteBits(hBs, (config->samplingRate == config->extSamplingRate) ? 0 : 1, in transportEnc_writeELDSpecificConfig()
771 FDKwriteBits(hBs, (config->flags & CC_SBRCRC) ? 1 : 0, 1); /* SBR CRC flag*/ in transportEnc_writeELDSpecificConfig()
794 FDKwriteBits(hBs, ELDEXT_LDSAC, 4); in transportEnc_writeELDSpecificConfig()
804 FDKwriteBits(hBs, cnt, 4); in transportEnc_writeELDSpecificConfig()
806 FDKwriteBits(hBs, 0xF, 4); in transportEnc_writeELDSpecificConfig()
810 FDKwriteBits(hBs, cnt, 8); in transportEnc_writeELDSpecificConfig()
812 FDKwriteBits(hBs, 0xFF, 8); in transportEnc_writeELDSpecificConfig()
816 FDKwriteBits(hBs, cnt, 16); in transportEnc_writeELDSpecificConfig()
833 FDKwriteBits(hBs, ELDEXT_DOWNSCALEINFO, 4); /* ELDEXT_DOWNSCALEINFO */ in transportEnc_writeELDSpecificConfig()
846 FDKwriteBits(hBs, eldExtLenDsc, 4); in transportEnc_writeELDSpecificConfig()
848 FDKwriteBits(hBs, 0x0, 4); /* fill_nibble */ in transportEnc_writeELDSpecificConfig()
851 FDKwriteBits(hBs, ELDEXT_TERM, 4); /* ELDEXT_TERM */ in transportEnc_writeELDSpecificConfig()
871 FDKwriteBits(hBs, tmp, 1); in transportEnc_writeUsacSpecificConfig()
917 FDKwriteBits( in transportEnc_writeASC()
968 FDKwriteBits(asc, 0, 2); /* epconfig 0 */ in transportEnc_writeASC()
980 FDKwriteBits(asc, ascExtId, 11); in transportEnc_writeASC()
982 FDKwriteBits(asc, 1, 1); /* sbrPresentFlag=1 */ in transportEnc_writeASC()
986 FDKwriteBits(asc, ascExtId, 11); in transportEnc_writeASC()
987 FDKwriteBits(asc, 1, 1); /* psPresentFlag=1 */ in transportEnc_writeASC()