Lines Matching refs:bsWriter

872   FDK_BITSTREAM bsWriter;  in WriteDynamicRangeInfoPayload()  local
873 FDKinitBitStream(&bsWriter, pExtensionPayload, 16, 0, BS_WRITER); in WriteDynamicRangeInfoPayload()
876 FDKwriteBits(&bsWriter, pce_tag_present, 1); /* pce_tag_present */ in WriteDynamicRangeInfoPayload()
878 FDKwriteBits(&bsWriter, 0x0, 4); /* pce_instance_tag */ in WriteDynamicRangeInfoPayload()
879 FDKwriteBits(&bsWriter, 0x0, 4); /* drc_tag_reserved_bits */ in WriteDynamicRangeInfoPayload()
883 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.excluded_chns_present) ? 1 : 0, in WriteDynamicRangeInfoPayload()
887 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.drc_bands_present) ? 1 : 0, in WriteDynamicRangeInfoPayload()
890 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_incr, in WriteDynamicRangeInfoPayload()
892 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_interpolation_scheme, in WriteDynamicRangeInfoPayload()
896 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.drc_band_top[i], in WriteDynamicRangeInfoPayload()
902 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level_present, in WriteDynamicRangeInfoPayload()
905 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.prog_ref_level, in WriteDynamicRangeInfoPayload()
907 FDKwriteBits(&bsWriter, prog_ref_lev_res_bits, in WriteDynamicRangeInfoPayload()
913 FDKwriteBits(&bsWriter, (pMetadata->mpegDrc.dyn_rng_sgn[i]) ? 1 : 0, in WriteDynamicRangeInfoPayload()
915 FDKwriteBits(&bsWriter, pMetadata->mpegDrc.dyn_rng_ctl[i], in WriteDynamicRangeInfoPayload()
920 return FDKgetValidBits(&bsWriter); in WriteDynamicRangeInfoPayload()
925 FDK_BITSTREAM bsWriter; in WriteEtsiAncillaryDataPayload() local
926 FDKinitBitStream(&bsWriter, pExtensionPayload, 16, 0, BS_WRITER); in WriteEtsiAncillaryDataPayload()
929 FDKwriteBits(&bsWriter, 0xBC, 8); in WriteEtsiAncillaryDataPayload()
932 FDKwriteBits(&bsWriter, 0x3, 2); /* mpeg_audio_type */ in WriteEtsiAncillaryDataPayload()
933 FDKwriteBits(&bsWriter, pMetadata->dolbySurroundMode, in WriteEtsiAncillaryDataPayload()
935 FDKwriteBits(&bsWriter, pMetadata->drcPresentationMode, in WriteEtsiAncillaryDataPayload()
937 FDKwriteBits(&bsWriter, 0x0, 1); /* stereo_downmix_mode */ in WriteEtsiAncillaryDataPayload()
938 FDKwriteBits(&bsWriter, 0x0, 1); /* reserved */ in WriteEtsiAncillaryDataPayload()
941 FDKwriteBits(&bsWriter, 0, 3); /* 3 bit Reserved, set to "0" */ in WriteEtsiAncillaryDataPayload()
942 FDKwriteBits(&bsWriter, (pMetadata->DmxLvl_On) ? 1 : 0, in WriteEtsiAncillaryDataPayload()
944 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.extAncDataStatus, in WriteEtsiAncillaryDataPayload()
946 FDKwriteBits(&bsWriter, (pMetadata->etsiAncData.compression_on) ? 1 : 0, in WriteEtsiAncillaryDataPayload()
948 FDKwriteBits(&bsWriter, in WriteEtsiAncillaryDataPayload()
951 FDKwriteBits(&bsWriter, (pMetadata->etsiAncData.timecode_fine_status) ? 1 : 0, in WriteEtsiAncillaryDataPayload()
957 &bsWriter, in WriteEtsiAncillaryDataPayload()
964 FDKwriteBits(&bsWriter, 0x01, 8); /* audio coding mode */ in WriteEtsiAncillaryDataPayload()
965 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.compression_value, in WriteEtsiAncillaryDataPayload()
971 FDKwriteBits(&bsWriter, 0x0, 16); /* not yet supported */ in WriteEtsiAncillaryDataPayload()
975 FDKwriteBits(&bsWriter, 0x0, 16); /* not yet supported */ in WriteEtsiAncillaryDataPayload()
981 FDKwriteBits(&bsWriter, 0, 1); /* Reserved, set to "0" */ in WriteEtsiAncillaryDataPayload()
982 FDKwriteBits(&bsWriter, in WriteEtsiAncillaryDataPayload()
985 FDKwriteBits(&bsWriter, in WriteEtsiAncillaryDataPayload()
988 FDKwriteBits(&bsWriter, in WriteEtsiAncillaryDataPayload()
991 FDKwriteBits(&bsWriter, 0, 4); /* Reserved, set to "0" */ in WriteEtsiAncillaryDataPayload()
995 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.extAncData.ext_dmix_a_idx, in WriteEtsiAncillaryDataPayload()
997 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.extAncData.ext_dmix_b_idx, in WriteEtsiAncillaryDataPayload()
999 FDKwriteBits(&bsWriter, 0, 2); /* Reserved, set to "0" */ in WriteEtsiAncillaryDataPayload()
1004 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.extAncData.dmx_gain_5_sgn, in WriteEtsiAncillaryDataPayload()
1006 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.extAncData.dmx_gain_5_idx, in WriteEtsiAncillaryDataPayload()
1008 FDKwriteBits(&bsWriter, 0, 1); /* Reserved, set to "0" */ in WriteEtsiAncillaryDataPayload()
1009 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.extAncData.dmx_gain_2_sgn, in WriteEtsiAncillaryDataPayload()
1011 FDKwriteBits(&bsWriter, pMetadata->etsiAncData.extAncData.dmx_gain_2_idx, in WriteEtsiAncillaryDataPayload()
1013 FDKwriteBits(&bsWriter, 0, 1); /* Reserved, set to "0" */ in WriteEtsiAncillaryDataPayload()
1017 FDKwriteBits(&bsWriter, in WriteEtsiAncillaryDataPayload()
1020 FDKwriteBits(&bsWriter, 0, 4); /* Reserved, set to "0" */ in WriteEtsiAncillaryDataPayload()
1024 return FDKgetValidBits(&bsWriter); in WriteEtsiAncillaryDataPayload()