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