Lines Matching refs:vp8_cfg
76 struct vp8_extracfg vp8_cfg; member
131 const struct vp8_extracfg *vp8_cfg, in validate_config() argument
184 RANGE_CHECK_BOOL(vp8_cfg, enable_auto_alt_ref); in validate_config()
185 RANGE_CHECK(vp8_cfg, cpu_used, -16, 16); in validate_config()
188 RANGE_CHECK(vp8_cfg, noise_sensitivity, 0, 0); in validate_config()
190 RANGE_CHECK_HI(vp8_cfg, noise_sensitivity, 6); in validate_config()
193 RANGE_CHECK(vp8_cfg, token_partitions, VP8_ONE_TOKENPARTITION, in validate_config()
195 RANGE_CHECK_HI(vp8_cfg, Sharpness, 7); in validate_config()
196 RANGE_CHECK(vp8_cfg, arnr_max_frames, 0, 15); in validate_config()
197 RANGE_CHECK_HI(vp8_cfg, arnr_strength, 6); in validate_config()
198 RANGE_CHECK(vp8_cfg, arnr_type, 1, 3); in validate_config()
199 RANGE_CHECK(vp8_cfg, cq_level, 0, 63); in validate_config()
200 RANGE_CHECK_HI(vp8_cfg, screen_content_mode, 2); in validate_config()
202 RANGE_CHECK(vp8_cfg, cq_level, cfg->rc_min_quantizer, in validate_config()
250 if (cfg->g_threads > (1 << vp8_cfg->token_partitions)) in validate_config()
276 struct vp8_extracfg vp8_cfg, in set_vp8e_config() argument
319 oxcf->rc_max_intra_bitrate_pct = vp8_cfg.rc_max_intra_bitrate_pct; in set_vp8e_config()
320 oxcf->gf_cbr_boost_pct = vp8_cfg.gf_cbr_boost_pct; in set_vp8e_config()
324 oxcf->cq_level = vp8_cfg.cq_level; in set_vp8e_config()
373 oxcf->cpu_used = vp8_cfg.cpu_used; in set_vp8e_config()
374 oxcf->encode_breakout = vp8_cfg.static_thresh; in set_vp8e_config()
375 oxcf->play_alternate = vp8_cfg.enable_auto_alt_ref; in set_vp8e_config()
376 oxcf->noise_sensitivity = vp8_cfg.noise_sensitivity; in set_vp8e_config()
377 oxcf->Sharpness = vp8_cfg.Sharpness; in set_vp8e_config()
378 oxcf->token_partitions = vp8_cfg.token_partitions; in set_vp8e_config()
381 oxcf->output_pkt_list = vp8_cfg.pkt_list; in set_vp8e_config()
383 oxcf->arnr_max_frames = vp8_cfg.arnr_max_frames; in set_vp8e_config()
384 oxcf->arnr_strength = vp8_cfg.arnr_strength; in set_vp8e_config()
385 oxcf->arnr_type = vp8_cfg.arnr_type; in set_vp8e_config()
387 oxcf->tuning = vp8_cfg.tuning; in set_vp8e_config()
389 oxcf->screen_content_mode = vp8_cfg.screen_content_mode; in set_vp8e_config()
447 res = validate_config(ctx, cfg, &ctx->vp8_cfg, 0); in vp8e_set_config()
451 set_vp8e_config(&ctx->oxcf, ctx->cfg, ctx->vp8_cfg, NULL); in vp8e_set_config()
477 ctx->vp8_cfg = *extra_cfg; in update_extracfg()
478 set_vp8e_config(&ctx->oxcf, ctx->cfg, ctx->vp8_cfg, NULL); in update_extracfg()
485 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_cpu_used()
492 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_enable_auto_alt_ref()
499 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_noise_sensitivity()
505 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_sharpness()
512 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_static_thresh()
519 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_token_partitions()
526 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_arnr_max_frames()
533 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_arnr_strength()
539 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_arnr_type()
545 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_tuning()
551 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_cq_level()
558 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_rc_max_intra_bitrate_pct()
566 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in ctrl_set_rc_gf_cbr_boost_pct()
573 struct vp8_extracfg extra_cfg = ctx->vp8_cfg; in set_screen_content_mode()
634 priv->vp8_cfg = default_extracfg; in vp8e_init()
635 priv->vp8_cfg.pkt_list = &priv->pkt_list.head; in vp8e_init()
655 res = validate_config(priv, &priv->cfg, &priv->vp8_cfg, 0); in vp8e_init()
658 set_vp8e_config(&priv->oxcf, priv->cfg, priv->vp8_cfg, mr_cfg); in vp8e_init()
809 if (!res) res = validate_config(ctx, &ctx->cfg, &ctx->vp8_cfg, 1); in vp8e_encode()