• Home
  • Raw
  • Download

Lines Matching refs:hBs

348 int transportEnc_writePCE(HANDLE_FDK_BITSTREAM hBs, CHANNEL_MODE channelMode,  in transportEnc_writePCE()  argument
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()
538 FDKbyteAlign(hBs, alignAnchor); /* Alignment */ in transportEnc_writePCE()
555 FDKwriteBits(hBs, commentBytes, 8); /* comment size. */ in transportEnc_writePCE()
561 crcReg = FDKcrcStartReg(&crcInfo, hBs, 0); 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()
607 FDKbyteAlign(hBs, alignAnchor); /* Alignment */ in transportEnc_writePCE()
609 FDKcrcEndReg(&crcInfo, hBs, crcReg); in transportEnc_writePCE()
610 FDKwriteBits(hBs, FDKcrcGetCRC(&crcInfo), 8); in transportEnc_writePCE()
613 FDKwriteBits(hBs, 0, in transportEnc_writePCE()
684 static void writeSampleRate(HANDLE_FDK_BITSTREAM hBs, int sampleRate, in writeSampleRate() argument
688 FDKwriteBits(hBs, srIdx, nBits); in writeSampleRate()
690 FDKwriteBits(hBs, sampleRate, 24); in writeSampleRate()
740 static int transportEnc_writeELDSpecificConfig(HANDLE_FDK_BITSTREAM hBs, in transportEnc_writeELDSpecificConfig() argument
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()
785 cb->cbSbr(cb->cbSbrData, hBs, 0, 0, 0, config->aot, pPce->pEl_type[e], 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()
820 cb->cbSsc(cb->cbSscData, hBs, config->aot, config->extSamplingRate, 0, 0, 0, in transportEnc_writeELDSpecificConfig()
833 FDKwriteBits(hBs, ELDEXT_DOWNSCALEINFO, 4); /* ELDEXT_DOWNSCALEINFO */ in transportEnc_writeELDSpecificConfig()
846 FDKwriteBits(hBs, eldExtLenDsc, 4); in transportEnc_writeELDSpecificConfig()
847 writeSampleRate(hBs, downscaleSamplingRate, 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()
856 static int transportEnc_writeUsacSpecificConfig(HANDLE_FDK_BITSTREAM hBs, in transportEnc_writeUsacSpecificConfig() argument
871 FDKwriteBits(hBs, tmp, 1); in transportEnc_writeUsacSpecificConfig()
873 FDKsyncCache(hBs); in transportEnc_writeUsacSpecificConfig()