Home | History | Annotate | Download | only in src

Lines Matching refs:bsWriter

715     FDK_BITSTREAM bsWriter;
716 FDKinitBitStream(&bsWriter, pExtensionPayload, 16, 0, BS_WRITER);
719 FDKwriteBits(&bsWriter, pce_tag_present, 1); /* pce_tag_present */
721 FDKwriteBits(&bsWriter, 0x0, 4); /* pce_instance_tag */
722 FDKwriteBits(&bsWriter, 0x0, 4); /* drc_tag_reserved_bits */
726 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.excluded_chns_present) ? 1 : 0, 1); /* excluded_chns_present*/
729 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.drc_bands_present) ? 1 : 0, 1); /* drc_bands_present */
732 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_incr, 4); /* drc_band_incr */
733 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_interpolation_scheme, 4); /* drc_interpolation_scheme */
736 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_top[i], 8); /* drc_band_top */
741 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level_present, 1); /* prog_ref_level_present */
744 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level, 7); /* prog_ref_level */
745 FDKwriteBits(&bsWriter, prog_ref_lev_res_bits, 1); /* prog_ref_level_reserved_bits */
750 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.dyn_rng_sgn[i]) ? 1 : 0, 1); /* dyn_rng_sgn[ */
751 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.dyn_rng_ctl[i], 7); /* dyn_rng_ctl */
755 return FDKgetValidBits(&bsWriter);
763 FDK_BITSTREAM bsWriter;
764 FDKinitBitStream(&bsWriter, pExtensionPayload, 16, 0, BS_WRITER);
767 FDKwriteBits(&bsWriter, 0xBC, 8);
770 FDKwriteBits(&bsWriter, 0x3, 2); /* mpeg_audio_type */
771 FDKwriteBits(&bsWriter, pMetadata->dolbySurroundMode, 2); /* dolby_surround_mode */
772 FDKwriteBits(&bsWriter, 0x0, 4); /* reserved */
775 FDKwriteBits(&bsWriter, 0, 3); /* 3 bit Reserved, set to "0" */
776 FDKwriteBits(&bsWriter, (pMetadata->DmxLvl_On) ? 1 : 0, 1); /* downmixing_levels_MPEG4_status */
777 FDKwriteBits(&bsWriter, 0, 1); /* Reserved, set to "0" */
778 FDKwriteBits(&bsWriter, (pMetadata->etsiAncData.compression_on) ? 1 : 0, 1); /* audio_coding_mode_and_compression status */
779 FDKwriteBits(&bsWriter, (pMetadata->etsiAncData.timecode_coarse_status) ? 1 : 0, 1); /* coarse_grain_timecode_status */
780 FDKwriteBits(&bsWriter, (pMetadata->etsiAncData.timecode_fine_status) ? 1 : 0, 1); /* fine_grain_timecode_status */
784 FDKwriteBits(&bsWriter, encodeDmxLvls(pMetadata->centerMixLevel, pMetadata->surroundMixLevel), 8);
789 FDKwriteBits(&bsWriter, 0x01, 8); /* audio coding mode */
790 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.compression_value, 8); /* compression value */
795 FDKwriteBits(&bsWriter, 0x0, 16); /* not yet supported */
799 FDKwriteBits(&bsWriter, 0x0, 16); /* not yet supported */
802 return FDKgetValidBits(&bsWriter);