Lines Matching defs:oxcf

432   const VP9EncoderConfig *oxcf = &cpi->oxcf;
434 cpi->lookahead = vp9_lookahead_init(oxcf->width, oxcf->height,
439 oxcf->lag_in_frames);
445 oxcf->width, oxcf->height,
542 cm->log2_tile_cols = clamp(cpi->oxcf.tile_columns,
544 cm->log2_tile_rows = cpi->oxcf.tile_rows;
553 static void init_config(struct VP9_COMP *cpi, VP9EncoderConfig *oxcf) {
556 cpi->oxcf = *oxcf;
557 cpi->framerate = oxcf->init_framerate;
559 cm->profile = oxcf->profile;
560 cm->bit_depth = oxcf->bit_depth;
562 cm->use_highbitdepth = oxcf->use_highbitdepth;
566 cm->width = oxcf->width;
567 cm->height = oxcf->height;
571 cpi->svc.number_spatial_layers = oxcf->ss_number_layers;
573 cpi->svc.number_temporal_layers = oxcf->ts_number_layers;
575 if ((cpi->svc.number_temporal_layers > 1 && cpi->oxcf.rc_mode == VPX_CBR) ||
578 cpi->oxcf.pass == 2)) {
583 vp9_change_config(cpi, oxcf);
594 const VP9EncoderConfig *oxcf) {
595 const int64_t bandwidth = oxcf->target_bandwidth;
596 const int64_t starting = oxcf->starting_buffer_level_ms;
597 const int64_t optimal = oxcf->optimal_buffer_level_ms;
598 const int64_t maximum = oxcf->maximum_buffer_size_ms;
607 void vp9_change_config(struct VP9_COMP *cpi, const VP9EncoderConfig *oxcf) {
611 if (cm->profile != oxcf->profile)
612 cm->profile = oxcf->profile;
613 cm->bit_depth = oxcf->bit_depth;
620 cpi->oxcf = *oxcf;
622 if (cpi->oxcf.use_highbitdepth) {
641 cpi->segment_encode_breakout[i] = cpi->oxcf.encode_breakout;
643 cpi->encode_breakout = cpi->oxcf.encode_breakout;
645 set_rc_buffer_sizes(rc, &cpi->oxcf);
656 rc->worst_quality = cpi->oxcf.worst_allowed_q;
657 rc->best_quality = cpi->oxcf.best_allowed_q;
661 cm->display_width = cpi->oxcf.width;
662 cm->display_height = cpi->oxcf.height;
674 cpi->oxcf.rc_mode == VPX_CBR) ||
677 cpi->oxcf.pass == 2)) {
679 (int)cpi->oxcf.target_bandwidth);
697 if (cpi->oxcf.noise_sensitivity > 0) {
751 VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf) {
771 init_config(cpi, oxcf);
772 vp9_rc_init(&cpi->oxcf, oxcf->pass, &cpi->rc);
836 if (oxcf->pass == 2) {
919 if (oxcf->pass == 1) {
921 } else if (oxcf->pass == 2) {
923 const int packets = (int)(oxcf->two_pass_stats_in.sz / packet_sz);
927 FIRSTPASS_STATS *const stats = oxcf->two_pass_stats_in.buf;
931 for (i = 0; i < oxcf->ss_number_layers; ++i) {
933 &stats[packets - oxcf->ss_number_layers + i];
936 if (layer_id >= 0 && layer_id < oxcf->ss_number_layers) {
954 if (layer_id >= 0 && layer_id < oxcf->ss_number_layers
966 const int ps = (int)(oxcf->firstpass_mb_stats_in.sz / psz);
969 oxcf->firstpass_mb_stats_in.buf;
976 cpi->twopass.stats_in_start = oxcf->two_pass_stats_in.buf;
1095 if (cpi->oxcf.pass != 1) {
1151 if (cpi->oxcf.noise_sensitivity > 0) {
1481 const VP9EncoderConfig *const oxcf = &cpi->oxcf;
1499 } else if (cpi->oxcf.rc_mode == VPX_CQ) {
1502 if (q > oxcf->cq_level &&
1546 if ((cpi->oxcf.pass == 2) && cpi->multi_arf_allowed) {
1581 if (cpi->oxcf.noise_sensitivity > 0) {
1705 vp9_convert_qindex_to_q(cpi->oxcf.cq_level),
1743 if (cpi->oxcf.aq_mode == VARIANCE_AQ) {
1745 } else if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) {
1747 } else if (cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ) {
1790 if (cpi->oxcf.aq_mode == VARIANCE_AQ) {
1792 } else if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) {
1820 if (cpi->oxcf.rc_mode == VPX_Q) {
1918 if (cpi->oxcf.rc_mode == VPX_CQ &&
2032 if ((cpi->oxcf.pass == 2) && cpi->multi_arf_allowed) {
2100 const VP9EncoderConfig *const oxcf = &cpi->oxcf;
2134 if (cpi->oxcf.pass == 2 &&
2154 cm->error_resilient_mode = oxcf->error_resilient_mode;
2162 cm->frame_parallel_decoding_mode = oxcf->frame_parallel_decoding_mode;
2201 if (oxcf->pass == 2 && cpi->sf.static_segmentation)
2206 if (oxcf->pass == 2 &&
2213 if (oxcf->pass == 0 &&
2214 oxcf->rc_mode == VPX_CBR &&
2226 if (oxcf->noise_sensitivity > 0) {
2228 switch (oxcf->noise_sensitivity) {
2280 if (oxcf->noise_sensitivity > 0) {
2393 if (cpi->oxcf.rc_mode == VPX_CBR) {
2531 if (cpi->oxcf.pass == 2) {
2547 if (cpi->oxcf.pass == 2) {
2569 const VP9EncoderConfig *const oxcf = &cpi->oxcf;
2584 if (oxcf->pass == 2)
2612 if (oxcf->ss_play_alternate[i]) {
2621 if (oxcf->arnr_max_frames > 0) {
2674 if (flush && oxcf->pass == 1 && !cpi->twopass.first_pass_done) {
2695 oxcf->rc_mode == VPX_CBR) {
2711 if ((oxcf->pass == 2) && (!cpi->use_svc || is_two_pass_svc(cpi))) {
2718 } else if (oxcf->pass == 2) {
2726 if (oxcf->pass == 2 &&
2728 oxcf->allow_spatial_resampling &&
2729 oxcf->rc_mode == VPX_VBR) {
2731 vp9_set_size_literal(cpi, oxcf->scaled_frame_width,
2732 oxcf->scaled_frame_height);
2770 if (oxcf->aq_mode == VARIANCE_AQ) {
2774 if (oxcf->pass == 1 &&
2776 const int lossless = is_lossless_requested(oxcf);
2778 if (cpi->oxcf.use_highbitdepth)
2789 } else if (oxcf->pass == 2 &&
2813 oxcf->rc_mode == VPX_CBR) ||
2816 oxcf->pass == 2)) {
2823 if (cpi->b_calculate_psnr && oxcf->pass != 1 && cm->show_frame)
2828 if (oxcf->pass != 1) {
2976 cm->width = (hs - 1 + cpi->oxcf.width * hr) / hs;
2977 cm->height = (vs - 1 + cpi->oxcf.height * vr) / vs;