Lines Matching refs:hi

85   int hi;  member
251 g->ampmax_att_per_sec=ci->hi.amplitude_track_dBpersec; in vorbis_encode_global_psych_setup()
256 const highlevel_encode_setup *const hi, in vorbis_encode_global_stereo() argument
258 float s=hi->stereo_point_setting; in vorbis_encode_global_stereo()
268 if(hi->managed){ in vorbis_encode_global_stereo()
311 highlevel_encode_setup *hi=&ci->hi; in vorbis_encode_psyset_setup() local
324 if(hi->noise_normalize_p){ in vorbis_encode_psyset_setup()
405 p->noisewindowhimin=guard[block].hi; in vorbis_encode_noisebias_setup()
429 p->ath_adjatt=ci->hi.ath_floating_dB; in vorbis_encode_ath_setup()
430 p->ath_maxatt=ci->hi.ath_absolute_dB; in vorbis_encode_ath_setup()
476 if(ci->hi.managed){ in vorbis_encode_residue_setup()
519 double freq=ci->hi.lowpass_kHz*1000.; in vorbis_encode_residue_setup()
535 if(ci->hi.managed) in vorbis_encode_residue_setup()
620 highlevel_encode_setup *hi=&ci->hi; in setting_to_approx_bitrate() local
621 ve_setup_data_template *setup=(ve_setup_data_template *)hi->setup; in setting_to_approx_bitrate()
622 int is=hi->base_setting; in setting_to_approx_bitrate()
623 double ds=hi->base_setting-is; in setting_to_approx_bitrate()
685 highlevel_encode_setup *hi=&ci->hi; in vorbis_encode_setup_init() local
688 if(!hi->impulse_block_p)i0=1; in vorbis_encode_setup_init()
691 if(hi->ath_floating_dB>-80)hi->ath_floating_dB=-80; in vorbis_encode_setup_init()
692 if(hi->ath_floating_dB<-200)hi->ath_floating_dB=-200; in vorbis_encode_setup_init()
696 if(hi->amplitude_track_dBpersec>0.)hi->amplitude_track_dBpersec=0.; in vorbis_encode_setup_init()
697 if(hi->amplitude_track_dBpersec<-99999.)hi->amplitude_track_dBpersec=-99999.; in vorbis_encode_setup_init()
701 setup=(ve_setup_data_template *)hi->setup; in vorbis_encode_setup_init()
704 hi->set_in_stone=1; in vorbis_encode_setup_init()
709 vorbis_encode_blocksize_setup(vi,hi->base_setting, in vorbis_encode_setup_init()
717 vorbis_encode_floor_setup(vi,hi->base_setting, in vorbis_encode_setup_init()
723 vorbis_encode_global_psych_setup(vi,hi->trigger_setting, in vorbis_encode_setup_init()
726 vorbis_encode_global_stereo(vi,hi,setup->stereo_modes); in vorbis_encode_setup_init()
729 vorbis_encode_psyset_setup(vi,hi->base_setting, in vorbis_encode_setup_init()
734 vorbis_encode_psyset_setup(vi,hi->base_setting, in vorbis_encode_setup_init()
740 vorbis_encode_psyset_setup(vi,hi->base_setting, in vorbis_encode_setup_init()
745 vorbis_encode_psyset_setup(vi,hi->base_setting, in vorbis_encode_setup_init()
753 vorbis_encode_tonemask_setup(vi,hi->block[i0].tone_mask_setting,0, in vorbis_encode_setup_init()
757 vorbis_encode_tonemask_setup(vi,hi->block[1].tone_mask_setting,1, in vorbis_encode_setup_init()
762 vorbis_encode_tonemask_setup(vi,hi->block[2].tone_mask_setting,2, in vorbis_encode_setup_init()
766 vorbis_encode_tonemask_setup(vi,hi->block[3].tone_mask_setting,3, in vorbis_encode_setup_init()
773 vorbis_encode_compand_setup(vi,hi->block[i0].noise_compand_setting,0, in vorbis_encode_setup_init()
776 vorbis_encode_compand_setup(vi,hi->block[1].noise_compand_setting,1, in vorbis_encode_setup_init()
780 vorbis_encode_compand_setup(vi,hi->block[2].noise_compand_setting,2, in vorbis_encode_setup_init()
783 vorbis_encode_compand_setup(vi,hi->block[3].noise_compand_setting,3, in vorbis_encode_setup_init()
789 vorbis_encode_peak_setup(vi,hi->block[i0].tone_peaklimit_setting,0, in vorbis_encode_setup_init()
791 vorbis_encode_peak_setup(vi,hi->block[1].tone_peaklimit_setting,1, in vorbis_encode_setup_init()
794 vorbis_encode_peak_setup(vi,hi->block[2].tone_peaklimit_setting,2, in vorbis_encode_setup_init()
796 vorbis_encode_peak_setup(vi,hi->block[3].tone_peaklimit_setting,3, in vorbis_encode_setup_init()
801 vorbis_encode_noisebias_setup(vi,hi->block[i0].noise_bias_setting,0, in vorbis_encode_setup_init()
805 (i0==0?hi->impulse_noisetune:0.)); in vorbis_encode_setup_init()
806 vorbis_encode_noisebias_setup(vi,hi->block[1].noise_bias_setting,1, in vorbis_encode_setup_init()
811 vorbis_encode_noisebias_setup(vi,hi->block[2].noise_bias_setting,2, in vorbis_encode_setup_init()
815 vorbis_encode_noisebias_setup(vi,hi->block[3].noise_bias_setting,3, in vorbis_encode_setup_init()
828 vorbis_encode_map_n_res_setup(vi,hi->base_setting,setup->maps); in vorbis_encode_setup_init()
831 if(hi->bitrate_av>0) in vorbis_encode_setup_init()
832 vi->bitrate_nominal=hi->bitrate_av; in vorbis_encode_setup_init()
837 vi->bitrate_lower=hi->bitrate_min; in vorbis_encode_setup_init()
838 vi->bitrate_upper=hi->bitrate_max; in vorbis_encode_setup_init()
839 if(hi->bitrate_av) in vorbis_encode_setup_init()
840 vi->bitrate_window=(double)hi->bitrate_reservoir/hi->bitrate_av; in vorbis_encode_setup_init()
844 if(hi->managed){ in vorbis_encode_setup_init()
845 ci->bi.avg_rate=hi->bitrate_av; in vorbis_encode_setup_init()
846 ci->bi.min_rate=hi->bitrate_min; in vorbis_encode_setup_init()
847 ci->bi.max_rate=hi->bitrate_max; in vorbis_encode_setup_init()
849 ci->bi.reservoir_bits=hi->bitrate_reservoir; in vorbis_encode_setup_init()
851 hi->bitrate_reservoir_bias; in vorbis_encode_setup_init()
853 ci->bi.slew_damp=hi->bitrate_av_damp; in vorbis_encode_setup_init()
866 highlevel_encode_setup *hi=&ci->hi; in vorbis_encode_setup_setting() local
867 const ve_setup_data_template *setup=hi->setup; in vorbis_encode_setup_setting()
874 hi->impulse_block_p=1; in vorbis_encode_setup_setting()
875 hi->noise_normalize_p=1; in vorbis_encode_setup_setting()
877 is=hi->base_setting; in vorbis_encode_setup_setting()
878 ds=hi->base_setting-is; in vorbis_encode_setup_setting()
880 hi->stereo_point_setting=hi->base_setting; in vorbis_encode_setup_setting()
882 if(!hi->lowpass_altered) in vorbis_encode_setup_setting()
883 hi->lowpass_kHz= in vorbis_encode_setup_setting()
886 hi->ath_floating_dB=setup->psy_ath_float[is]*(1.-ds)+ in vorbis_encode_setup_setting()
888 hi->ath_absolute_dB=setup->psy_ath_abs[is]*(1.-ds)+ in vorbis_encode_setup_setting()
891 hi->amplitude_track_dBpersec=-6.; in vorbis_encode_setup_setting()
892 hi->trigger_setting=hi->base_setting; in vorbis_encode_setup_setting()
895 hi->block[i].tone_mask_setting=hi->base_setting; in vorbis_encode_setup_setting()
896 hi->block[i].tone_peaklimit_setting=hi->base_setting; in vorbis_encode_setup_setting()
897 hi->block[i].noise_bias_setting=hi->base_setting; in vorbis_encode_setup_setting()
898 hi->block[i].noise_compand_setting=hi->base_setting; in vorbis_encode_setup_setting()
907 highlevel_encode_setup *hi=&ci->hi; in vorbis_encode_setup_vbr() local
912 hi->req=quality; in vorbis_encode_setup_vbr()
913 hi->setup=get_setup_template(channels,rate,quality,0,&hi->base_setting); in vorbis_encode_setup_vbr()
914 if(!hi->setup)return OV_EIMPL; in vorbis_encode_setup_vbr()
917 hi->managed=0; in vorbis_encode_setup_vbr()
918 hi->coupling_p=1; in vorbis_encode_setup_vbr()
952 highlevel_encode_setup *hi=&ci->hi; in vorbis_encode_setup_managed() local
970 hi->req=nominal_bitrate; in vorbis_encode_setup_managed()
971 hi->setup=get_setup_template(channels,rate,nominal_bitrate,1,&hi->base_setting); in vorbis_encode_setup_managed()
972 if(!hi->setup)return OV_EIMPL; in vorbis_encode_setup_managed()
977 hi->coupling_p=1; in vorbis_encode_setup_managed()
978 hi->managed=1; in vorbis_encode_setup_managed()
979 hi->bitrate_min=min_bitrate; in vorbis_encode_setup_managed()
980 hi->bitrate_max=max_bitrate; in vorbis_encode_setup_managed()
981 hi->bitrate_av=tnominal; in vorbis_encode_setup_managed()
982 hi->bitrate_av_damp=1.5f; /* full range in no less than 1.5 second */ in vorbis_encode_setup_managed()
983 hi->bitrate_reservoir=nominal_bitrate*2; in vorbis_encode_setup_managed()
984 hi->bitrate_reservoir_bias=.1; /* bias toward hoarding bits */ in vorbis_encode_setup_managed()
1016 highlevel_encode_setup *hi=&ci->hi; in vorbis_encode_ctl() local
1019 if(setp && hi->set_in_stone)return(OV_EINVAL); in vorbis_encode_ctl()
1030 ai->management_active=hi->managed; in vorbis_encode_ctl()
1032 (double)hi->bitrate_reservoir/vi->rate; in vorbis_encode_ctl()
1034 ai->bitrate_hard_min=hi->bitrate_min; in vorbis_encode_ctl()
1035 ai->bitrate_hard_max=hi->bitrate_max; in vorbis_encode_ctl()
1036 ai->bitrate_av_lo=hi->bitrate_av; in vorbis_encode_ctl()
1037 ai->bitrate_av_hi=hi->bitrate_av; in vorbis_encode_ctl()
1048 hi->managed=0; in vorbis_encode_ctl()
1050 hi->managed=ai->management_active; in vorbis_encode_ctl()
1063 hi->bitrate_av=0; in vorbis_encode_ctl()
1065 hi->bitrate_av=(ai->bitrate_av_lo+ai->bitrate_av_hi)*.5; in vorbis_encode_ctl()
1075 hi->bitrate_min=0; in vorbis_encode_ctl()
1076 hi->bitrate_max=0; in vorbis_encode_ctl()
1078 hi->bitrate_min=ai->bitrate_hard_min; in vorbis_encode_ctl()
1079 hi->bitrate_max=ai->bitrate_hard_max; in vorbis_encode_ctl()
1080 hi->bitrate_reservoir=ai->bitrate_hard_window* in vorbis_encode_ctl()
1081 (hi->bitrate_max+hi->bitrate_min)*.5; in vorbis_encode_ctl()
1083 if(hi->bitrate_reservoir<128.) in vorbis_encode_ctl()
1084 hi->bitrate_reservoir=128.; in vorbis_encode_ctl()
1095 ai->management_active=hi->managed; in vorbis_encode_ctl()
1096 ai->bitrate_limit_min_kbps=hi->bitrate_min/1000; in vorbis_encode_ctl()
1097 ai->bitrate_limit_max_kbps=hi->bitrate_max/1000; in vorbis_encode_ctl()
1098 ai->bitrate_average_kbps=hi->bitrate_av/1000; in vorbis_encode_ctl()
1099 ai->bitrate_average_damping=hi->bitrate_av_damp; in vorbis_encode_ctl()
1100 ai->bitrate_limit_reservoir_bits=hi->bitrate_reservoir; in vorbis_encode_ctl()
1101 ai->bitrate_limit_reservoir_bias=hi->bitrate_reservoir_bias; in vorbis_encode_ctl()
1109 hi->managed=0; in vorbis_encode_ctl()
1139 hi->managed=ai->management_active; in vorbis_encode_ctl()
1140 hi->bitrate_min=ai->bitrate_limit_min_kbps * 1000; in vorbis_encode_ctl()
1141 hi->bitrate_max=ai->bitrate_limit_max_kbps * 1000; in vorbis_encode_ctl()
1142 hi->bitrate_av=ai->bitrate_average_kbps * 1000; in vorbis_encode_ctl()
1143 hi->bitrate_av_damp=ai->bitrate_average_damping; in vorbis_encode_ctl()
1144 hi->bitrate_reservoir=ai->bitrate_limit_reservoir_bits; in vorbis_encode_ctl()
1145 hi->bitrate_reservoir_bias=ai->bitrate_limit_reservoir_bias; in vorbis_encode_ctl()
1153 *farg=hi->lowpass_kHz; in vorbis_encode_ctl()
1159 hi->lowpass_kHz=*farg; in vorbis_encode_ctl()
1161 if(hi->lowpass_kHz<2.)hi->lowpass_kHz=2.; in vorbis_encode_ctl()
1162 if(hi->lowpass_kHz>99.)hi->lowpass_kHz=99.; in vorbis_encode_ctl()
1163 hi->lowpass_altered=1; in vorbis_encode_ctl()
1169 *farg=hi->impulse_noisetune; in vorbis_encode_ctl()
1175 hi->impulse_noisetune=*farg; in vorbis_encode_ctl()
1177 if(hi->impulse_noisetune>0.)hi->impulse_noisetune=0.; in vorbis_encode_ctl()
1178 if(hi->impulse_noisetune<-15.)hi->impulse_noisetune=-15.; in vorbis_encode_ctl()
1184 *iarg=hi->coupling_p; in vorbis_encode_ctl()
1192 hi->coupling_p=((*iarg)!=0); in vorbis_encode_ctl()
1200 new_template = get_setup_template(hi->coupling_p?vi->channels:-1, in vorbis_encode_ctl()
1202 hi->req, in vorbis_encode_ctl()
1203 hi->managed, in vorbis_encode_ctl()
1205 if(!hi->setup)return OV_EIMPL; in vorbis_encode_ctl()
1206 hi->setup=new_template; in vorbis_encode_ctl()
1207 hi->base_setting=new_base; in vorbis_encode_ctl()