Home | History | Annotate | Download | only in encoder

Lines Matching refs:oxcf

56 #define POW1 (double)cpi->oxcf.two_pass_vbrbias/100.0
57 #define POW2 (double)cpi->oxcf.two_pass_vbrbias/100.0
355 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
357 double buffer_fullness_ratio = (double)cpi->buffer_level / DOUBLE_DIVIDE_CHECK((double)cpi->oxcf.optimal_buffer_level);
362 max_bits = (int)(cpi->av_per_frame_bandwidth * ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0));
385 max_bits = (int)(((double)cpi->twopass.bits_left / (cpi->twopass.total_stats.count - (double)cpi->common.current_video_frame)) * ((double)cpi->oxcf.two_pass_vbrmax_section / 100.0));
651 if (raw_motion_error < cpi->oxcf.encode_breakout)
1027 if (cpi->oxcf.cpu_used <= 5)
1028 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04);
1069 if ( (cpi->oxcf.end_usage == USAGE_CONSTRAINED_QUALITY) &&
1131 if (cpi->oxcf.cpu_used <= 5)
1132 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04);
1199 if (cpi->oxcf.cpu_used <= 5)
1200 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04);
1278 if (cpi->oxcf.cpu_used <= 5)
1279 speed_correction = 1.04 + (cpi->oxcf.cpu_used * 0.04);
1321 (double)cpi->buffer_level / (double)cpi->oxcf.optimal_buffer_level, Q);
1335 double two_pass_min_rate = (double)(cpi->oxcf.target_bandwidth * cpi->oxcf.two_pass_vbrmin_section / 100);
1355 cpi->twopass.bits_left = (int64_t)(cpi->twopass.total_stats.duration * cpi->oxcf.target_bandwidth / 10000000.0) ;
1761 cpi->oxcf.play_alternate && cpi->oxcf.lag_in_frames;
1880 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
1887 int64_t df_buffer_level = cpi->oxcf.drop_frames_water_mark *
1888 (cpi->oxcf.optimal_buffer_level / 100);
1956 int Q = (cpi->oxcf.fixed_q < 0)
1957 ? cpi->last_q[INTER_FRAME] : cpi->oxcf.fixed_q;
2017 int frames_bwd = cpi->oxcf.arnr_max_frames - 1;
2018 int frames_fwd = cpi->oxcf.arnr_max_frames - 1;
2053 switch (cpi->oxcf.arnr_type)
2083 frames_bwd += (cpi->oxcf.arnr_max_frames+1) & 0x1;
2134 * variability limit (cpi->oxcf.two_pass_vbrmax_section)
2151 int Q = (cpi->oxcf.fixed_q < 0) ? cpi->last_q[INTER_FRAME] : cpi->oxcf.fixed_q;
2243 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
2451 if (cpi->oxcf.error_resilient_mode)
2499 if (cpi->oxcf.error_resilient_mode)
2547 if ( cpi->oxcf.end_usage == USAGE_CONSTRAINED_QUALITY )
2557 cpi->cq_target_quality = cpi->oxcf.cq_level;
2779 if (cpi->oxcf.auto_key
2834 if (cpi->oxcf.auto_key
2909 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
2911 int64_t opt_buffer_lvl = cpi->oxcf.optimal_buffer_level;
2920 cpi->oxcf.maximum_buffer_size) >> 1;
3029 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
3035 int df_buffer_level = (int)(cpi->oxcf.drop_frames_water_mark
3036 * (cpi->oxcf.optimal_buffer_level / 100));
3136 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
3199 if (cpi->oxcf.allow_spatial_resampling)
3206 int new_width = cpi->oxcf.Width;
3207 int new_height = cpi->oxcf.Height;
3219 if ((cpi->common.Width != cpi->oxcf.Width) || (cpi->common.Height != cpi->oxcf.Height))
3227 av_bits_per_frame = cpi->oxcf.target_bandwidth / DOUBLE_DIVIDE_CHECK((double)cpi->framerate);
3230 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
3253 if (bits_per_frame < (cpi->oxcf.target_bandwidth * cpi->oxcf.two_pass_vbrmin_section / 100))
3254 bits_per_frame = (cpi->oxcf.target_bandwidth * cpi->oxcf.two_pass_vbrmin_section / 100);
3288 if (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)
3294 if ((projected_buffer_level < (cpi->oxcf.resample_down_water_mark * cpi->oxcf.optimal_buffer_level / 100)) ||
3295 (last_kf_resampled && (projected_buffer_level < (cpi->oxcf.resample_up_water_mark * cpi->oxcf.optimal_buffer_level / 100))))
3302 int64_t clip_bits = (int64_t)(cpi->twopass.total_stats.count * cpi->oxcf.target_bandwidth / DOUBLE_DIVIDE_CHECK((double)cpi->framerate));
3303 int64_t over_spend = cpi->oxcf.starting_buffer_level - cpi->buffer_level;
3332 new_width = ((hs - 1) + (cpi->oxcf.Width * hr)) / hs;
3333 new_height = ((vs - 1) + (cpi->oxcf.Height * vr)) / vs;
3339 effective_size_ratio = (double)(new_width * new_height) / (double)(cpi->oxcf.Width * cpi->oxcf.Height);