Lines Matching refs:cfg

137                                   const vpx_codec_enc_cfg_t *cfg,  in write_ivf_file_header()  argument
141 if(cfg->g_pass != VPX_RC_ONE_PASS && cfg->g_pass != VPX_RC_LAST_PASS) in write_ivf_file_header()
150 mem_put_le16(header+12, cfg->g_w); /* width */ in write_ivf_file_header()
151 mem_put_le16(header+14, cfg->g_h); /* height */ in write_ivf_file_header()
152 mem_put_le32(header+16, cfg->g_timebase.den); /* rate */ in write_ivf_file_header()
153 mem_put_le32(header+20, cfg->g_timebase.num); /* scale */ in write_ivf_file_header()
183 vpx_codec_enc_cfg_t *cfg, in set_temporal_layer_pattern() argument
193 cfg->ts_number_layers = 1; in set_temporal_layer_pattern()
194 cfg->ts_periodicity = 1; in set_temporal_layer_pattern()
195 cfg->ts_rate_decimator[0] = 1; in set_temporal_layer_pattern()
196 cfg->ts_layer_id[0] = 0; in set_temporal_layer_pattern()
197 cfg->ts_target_bitrate[0] = bitrate; in set_temporal_layer_pattern()
207 cfg->ts_number_layers = 2; in set_temporal_layer_pattern()
208 cfg->ts_periodicity = 2; in set_temporal_layer_pattern()
209 cfg->ts_rate_decimator[0] = 2; in set_temporal_layer_pattern()
210 cfg->ts_rate_decimator[1] = 1; in set_temporal_layer_pattern()
211 cfg->ts_layer_id[0] = 0; in set_temporal_layer_pattern()
212 cfg->ts_layer_id[1] = 1; in set_temporal_layer_pattern()
214 cfg->ts_target_bitrate[0] = 0.6f * bitrate; in set_temporal_layer_pattern()
215 cfg->ts_target_bitrate[1] = bitrate; in set_temporal_layer_pattern()
260 cfg->ts_number_layers = 3; in set_temporal_layer_pattern()
261 cfg->ts_periodicity = 4; in set_temporal_layer_pattern()
262 cfg->ts_rate_decimator[0] = 4; in set_temporal_layer_pattern()
263 cfg->ts_rate_decimator[1] = 2; in set_temporal_layer_pattern()
264 cfg->ts_rate_decimator[2] = 1; in set_temporal_layer_pattern()
265 cfg->ts_layer_id[0] = 0; in set_temporal_layer_pattern()
266 cfg->ts_layer_id[1] = 2; in set_temporal_layer_pattern()
267 cfg->ts_layer_id[2] = 1; in set_temporal_layer_pattern()
268 cfg->ts_layer_id[3] = 2; in set_temporal_layer_pattern()
270 cfg->ts_target_bitrate[0] = 0.4f * bitrate; in set_temporal_layer_pattern()
271 cfg->ts_target_bitrate[1] = 0.6f * bitrate; in set_temporal_layer_pattern()
272 cfg->ts_target_bitrate[2] = bitrate; in set_temporal_layer_pattern()
326 vpx_codec_enc_cfg_t cfg[NUM_ENCODERS]; in main() local
444 res[i] = vpx_codec_enc_config_default(interface, &cfg[i], 0); in main()
455 cfg[0].g_w = width; in main()
456 cfg[0].g_h = height; in main()
457 cfg[0].rc_dropframe_thresh = 0; in main()
458 cfg[0].rc_end_usage = VPX_CBR; in main()
459 cfg[0].rc_resize_allowed = 0; in main()
460 cfg[0].rc_min_quantizer = 2; in main()
461 cfg[0].rc_max_quantizer = 56; in main()
462 cfg[0].rc_undershoot_pct = 100; in main()
463 cfg[0].rc_overshoot_pct = 15; in main()
464 cfg[0].rc_buf_initial_sz = 500; in main()
465 cfg[0].rc_buf_optimal_sz = 600; in main()
466 cfg[0].rc_buf_sz = 1000; in main()
467 cfg[0].g_error_resilient = 1; /* Enable error resilient mode */ in main()
468 cfg[0].g_lag_in_frames = 0; in main()
474 cfg[0].kf_mode = VPX_KF_AUTO; in main()
475 cfg[0].kf_min_dist = 3000; in main()
476 cfg[0].kf_max_dist = 3000; in main()
478 cfg[0].rc_target_bitrate = target_bitrate[0]; /* Set target bitrate */ in main()
479 cfg[0].g_timebase.num = 1; /* Set fps */ in main()
480 cfg[0].g_timebase.den = framerate; in main()
485 memcpy(&cfg[i], &cfg[0], sizeof(vpx_codec_enc_cfg_t)); in main()
487 cfg[i].rc_target_bitrate = target_bitrate[i]; in main()
494 unsigned int iw = cfg[i-1].g_w*dsf[i-1].den + dsf[i-1].num - 1; in main()
495 unsigned int ih = cfg[i-1].g_h*dsf[i-1].den + dsf[i-1].num - 1; in main()
496 cfg[i].g_w = iw/dsf[i-1].num; in main()
497 cfg[i].g_h = ih/dsf[i-1].num; in main()
502 if((cfg[i].g_w)%2)cfg[i].g_w++; in main()
503 if((cfg[i].g_h)%2)cfg[i].g_h++; in main()
509 cfg[0].g_threads = 2; in main()
510 cfg[1].g_threads = 1; in main()
511 cfg[2].g_threads = 1; in main()
515 if(!vpx_img_alloc(&raw[i], VPX_IMG_FMT_I420, cfg[i].g_w, cfg[i].g_h, 32)) in main()
516 die("Failed to allocate image", cfg[i].g_w, cfg[i].g_h); in main()
525 write_ivf_file_header(outfile[i], &cfg[i], 0); in main()
531 &cfg[i], in main()
532 cfg[i].rc_target_bitrate, in main()
537 if(vpx_codec_enc_init_multi(&codec[0], interface, &cfg[0], NUM_ENCODERS, in main()
580 (int)(((double)cfg[0].rc_buf_optimal_sz * 0.5) * framerate / 10); in main()
613 length_frame = cfg[i].g_w * cfg[i].g_h *3/2; in main()
626 layer_id = cfg[i].ts_layer_id[frame_cnt % cfg[i].ts_periodicity]; in main()
730 write_ivf_file_header(outfile[i], &cfg[i], frame_cnt-1); in main()