Lines Matching refs:cfg
81 MppEncCfg cfg; member
421 MppEncCfg cfg = p->cfg; in test_mpp_enc_cfg_setup() local
443 mpp_enc_cfg_set_s32(cfg, "codec:type", p->type); in test_mpp_enc_cfg_setup()
446 mpp_enc_cfg_set_s32(cfg, "prep:width", p->width); in test_mpp_enc_cfg_setup()
447 mpp_enc_cfg_set_s32(cfg, "prep:height", p->height); in test_mpp_enc_cfg_setup()
448 mpp_enc_cfg_set_s32(cfg, "prep:hor_stride", p->hor_stride); in test_mpp_enc_cfg_setup()
449 mpp_enc_cfg_set_s32(cfg, "prep:ver_stride", p->ver_stride); in test_mpp_enc_cfg_setup()
450 mpp_enc_cfg_set_s32(cfg, "prep:format", p->fmt); in test_mpp_enc_cfg_setup()
451 mpp_enc_cfg_set_s32(cfg, "prep:range", MPP_FRAME_RANGE_JPEG); in test_mpp_enc_cfg_setup()
457 mpp_enc_cfg_set_s32(cfg, "prep:mirroring", mirroring); in test_mpp_enc_cfg_setup()
458 mpp_enc_cfg_set_s32(cfg, "prep:rotation", rotation); in test_mpp_enc_cfg_setup()
459 mpp_enc_cfg_set_s32(cfg, "prep:flip", flip); in test_mpp_enc_cfg_setup()
462 mpp_enc_cfg_set_s32(cfg, "rc:mode", p->rc_mode); in test_mpp_enc_cfg_setup()
463 mpp_enc_cfg_set_u32(cfg, "rc:max_reenc_times", 0); in test_mpp_enc_cfg_setup()
464 mpp_enc_cfg_set_u32(cfg, "rc:super_mode", 0); in test_mpp_enc_cfg_setup()
467 mpp_enc_cfg_set_s32(cfg, "rc:fps_in_flex", p->fps_in_flex); in test_mpp_enc_cfg_setup()
468 mpp_enc_cfg_set_s32(cfg, "rc:fps_in_num", p->fps_in_num); in test_mpp_enc_cfg_setup()
469 mpp_enc_cfg_set_s32(cfg, "rc:fps_in_denom", p->fps_in_den); in test_mpp_enc_cfg_setup()
470 mpp_enc_cfg_set_s32(cfg, "rc:fps_out_flex", p->fps_out_flex); in test_mpp_enc_cfg_setup()
471 mpp_enc_cfg_set_s32(cfg, "rc:fps_out_num", p->fps_out_num); in test_mpp_enc_cfg_setup()
472 mpp_enc_cfg_set_s32(cfg, "rc:fps_out_denom", p->fps_out_den); in test_mpp_enc_cfg_setup()
475 mpp_enc_cfg_set_u32(cfg, "rc:drop_mode", MPP_ENC_RC_DROP_FRM_DISABLED); in test_mpp_enc_cfg_setup()
476 mpp_enc_cfg_set_u32(cfg, "rc:drop_thd", 20); /* 20% of max bps */ in test_mpp_enc_cfg_setup()
477 mpp_enc_cfg_set_u32(cfg, "rc:drop_gap", 1); /* Do not continuous drop frame */ in test_mpp_enc_cfg_setup()
480 mpp_enc_cfg_set_s32(cfg, "rc:bps_target", p->bps); in test_mpp_enc_cfg_setup()
487 mpp_enc_cfg_set_s32(cfg, "rc:bps_max", p->bps_max ? p->bps_max : p->bps * 17 / 16); in test_mpp_enc_cfg_setup()
488 mpp_enc_cfg_set_s32(cfg, "rc:bps_min", p->bps_min ? p->bps_min : p->bps * 15 / 16); in test_mpp_enc_cfg_setup()
493 mpp_enc_cfg_set_s32(cfg, "rc:bps_max", p->bps_max ? p->bps_max : p->bps * 17 / 16); in test_mpp_enc_cfg_setup()
494 mpp_enc_cfg_set_s32(cfg, "rc:bps_min", p->bps_min ? p->bps_min : p->bps * 1 / 16); in test_mpp_enc_cfg_setup()
498 mpp_enc_cfg_set_s32(cfg, "rc:bps_max", p->bps_max ? p->bps_max : p->bps * 17 / 16); in test_mpp_enc_cfg_setup()
499 mpp_enc_cfg_set_s32(cfg, "rc:bps_min", p->bps_min ? p->bps_min : p->bps * 15 / 16); in test_mpp_enc_cfg_setup()
511 mpp_enc_cfg_set_s32(cfg, "rc:qp_init", fix_qp); in test_mpp_enc_cfg_setup()
512 mpp_enc_cfg_set_s32(cfg, "rc:qp_max", fix_qp); in test_mpp_enc_cfg_setup()
513 mpp_enc_cfg_set_s32(cfg, "rc:qp_min", fix_qp); in test_mpp_enc_cfg_setup()
514 mpp_enc_cfg_set_s32(cfg, "rc:qp_max_i", fix_qp); in test_mpp_enc_cfg_setup()
515 mpp_enc_cfg_set_s32(cfg, "rc:qp_min_i", fix_qp); in test_mpp_enc_cfg_setup()
516 mpp_enc_cfg_set_s32(cfg, "rc:qp_ip", 0); in test_mpp_enc_cfg_setup()
517 mpp_enc_cfg_set_s32(cfg, "rc:fqp_min_i", fix_qp); in test_mpp_enc_cfg_setup()
518 mpp_enc_cfg_set_s32(cfg, "rc:fqp_max_i", fix_qp); in test_mpp_enc_cfg_setup()
519 mpp_enc_cfg_set_s32(cfg, "rc:fqp_min_p", fix_qp); in test_mpp_enc_cfg_setup()
520 mpp_enc_cfg_set_s32(cfg, "rc:fqp_max_p", fix_qp); in test_mpp_enc_cfg_setup()
526 mpp_enc_cfg_set_s32(cfg, "rc:qp_init", cmd->qp_init ? cmd->qp_init : -1); in test_mpp_enc_cfg_setup()
527 mpp_enc_cfg_set_s32(cfg, "rc:qp_max", cmd->qp_max ? cmd->qp_max : 51); in test_mpp_enc_cfg_setup()
528 mpp_enc_cfg_set_s32(cfg, "rc:qp_min", cmd->qp_min ? cmd->qp_min : 10); in test_mpp_enc_cfg_setup()
529 mpp_enc_cfg_set_s32(cfg, "rc:qp_max_i", cmd->qp_max_i ? cmd->qp_max_i : 51); in test_mpp_enc_cfg_setup()
530 mpp_enc_cfg_set_s32(cfg, "rc:qp_min_i", cmd->qp_min_i ? cmd->qp_min_i : 10); in test_mpp_enc_cfg_setup()
531 mpp_enc_cfg_set_s32(cfg, "rc:qp_ip", 2); in test_mpp_enc_cfg_setup()
532 mpp_enc_cfg_set_s32(cfg, "rc:fqp_min_i", cmd->fqp_min_i ? cmd->fqp_min_i : 10); in test_mpp_enc_cfg_setup()
533 mpp_enc_cfg_set_s32(cfg, "rc:fqp_max_i", cmd->fqp_max_i ? cmd->fqp_max_i : 45); in test_mpp_enc_cfg_setup()
534 mpp_enc_cfg_set_s32(cfg, "rc:fqp_min_p", cmd->fqp_min_p ? cmd->fqp_min_p : 10); in test_mpp_enc_cfg_setup()
535 mpp_enc_cfg_set_s32(cfg, "rc:fqp_max_p", cmd->fqp_max_p ? cmd->fqp_max_p : 45); in test_mpp_enc_cfg_setup()
544 mpp_enc_cfg_set_s32(cfg, "rc:qp_init", cmd->qp_init ? cmd->qp_init : 40); in test_mpp_enc_cfg_setup()
545 mpp_enc_cfg_set_s32(cfg, "rc:qp_max", cmd->qp_max ? cmd->qp_max : 127); in test_mpp_enc_cfg_setup()
546 mpp_enc_cfg_set_s32(cfg, "rc:qp_min", cmd->qp_min ? cmd->qp_min : 0); in test_mpp_enc_cfg_setup()
547 mpp_enc_cfg_set_s32(cfg, "rc:qp_max_i", cmd->qp_max_i ? cmd->qp_max_i : 127); in test_mpp_enc_cfg_setup()
548 mpp_enc_cfg_set_s32(cfg, "rc:qp_min_i", cmd->qp_min_i ? cmd->qp_min_i : 0); in test_mpp_enc_cfg_setup()
549 mpp_enc_cfg_set_s32(cfg, "rc:qp_ip", 6); in test_mpp_enc_cfg_setup()
553 mpp_enc_cfg_set_s32(cfg, "jpeg:q_factor", cmd->qp_init ? cmd->qp_init : 80); in test_mpp_enc_cfg_setup()
554 mpp_enc_cfg_set_s32(cfg, "jpeg:qf_max", cmd->qp_max ? cmd->qp_max : 99); in test_mpp_enc_cfg_setup()
555 mpp_enc_cfg_set_s32(cfg, "jpeg:qf_min", cmd->qp_min ? cmd->qp_min : 1); in test_mpp_enc_cfg_setup()
562 mpp_enc_cfg_set_s32(cfg, "codec:type", p->type); in test_mpp_enc_cfg_setup()
573 mpp_enc_cfg_set_s32(cfg, "h264:profile", 100); in test_mpp_enc_cfg_setup()
582 mpp_enc_cfg_set_s32(cfg, "h264:level", 40); in test_mpp_enc_cfg_setup()
583 mpp_enc_cfg_set_s32(cfg, "h264:cabac_en", 1); in test_mpp_enc_cfg_setup()
584 mpp_enc_cfg_set_s32(cfg, "h264:cabac_idc", 0); in test_mpp_enc_cfg_setup()
585 mpp_enc_cfg_set_s32(cfg, "h264:trans8x8", 1); in test_mpp_enc_cfg_setup()
589 mpp_enc_cfg_set_s32(cfg, "h264:constraint_set", constraint_set); in test_mpp_enc_cfg_setup()
592 mpp_enc_cfg_set_s32(cfg, "h265:diff_cu_qp_delta_depth", p->cu_qp_delta_depth); in test_mpp_enc_cfg_setup()
613 mpp_enc_cfg_set_s32(cfg, "split:mode", p->split_mode); in test_mpp_enc_cfg_setup()
614 mpp_enc_cfg_set_s32(cfg, "split:arg", p->split_arg); in test_mpp_enc_cfg_setup()
615 mpp_enc_cfg_set_s32(cfg, "split:out", p->split_out); in test_mpp_enc_cfg_setup()
619 mpp_enc_cfg_set_s32(cfg, "rc:gop", p->gop_len ? p->gop_len : p->fps_out_num * 2); in test_mpp_enc_cfg_setup()
630 mpp_enc_cfg_set_ptr(cfg, "rc:ref_cfg", ref); in test_mpp_enc_cfg_setup()
634 mpp_enc_cfg_set_s32(cfg, "tune:anti_flicker_str", p->anti_flicker_str); in test_mpp_enc_cfg_setup()
635 mpp_enc_cfg_set_s32(cfg, "tune:atf_str", cmd->atf_str); in test_mpp_enc_cfg_setup()
636 mpp_enc_cfg_set_s32(cfg, "tune:atr_str_i", p->atr_str_i); in test_mpp_enc_cfg_setup()
637 mpp_enc_cfg_set_s32(cfg, "tune:atr_str_p", p->atr_str_p); in test_mpp_enc_cfg_setup()
638 mpp_enc_cfg_set_s32(cfg, "tune:atl_str", p->atl_str); in test_mpp_enc_cfg_setup()
639 mpp_enc_cfg_set_s32(cfg, "tune:deblur_en", cmd->deblur_en); in test_mpp_enc_cfg_setup()
640 mpp_enc_cfg_set_s32(cfg, "tune:deblur_str", cmd->deblur_str); in test_mpp_enc_cfg_setup()
641 mpp_enc_cfg_set_s32(cfg, "tune:sao_str_i", p->sao_str_i); in test_mpp_enc_cfg_setup()
642 mpp_enc_cfg_set_s32(cfg, "tune:sao_str_p", p->sao_str_p); in test_mpp_enc_cfg_setup()
643 mpp_enc_cfg_set_s32(cfg, "tune:lambda_idx_p", cmd->lambda_idx_p); in test_mpp_enc_cfg_setup()
644 mpp_enc_cfg_set_s32(cfg, "tune:lambda_idx_i", cmd->lambda_idx_i); in test_mpp_enc_cfg_setup()
645 mpp_enc_cfg_set_s32(cfg, "tune:rc_container", cmd->rc_container); in test_mpp_enc_cfg_setup()
646 mpp_enc_cfg_set_s32(cfg, "tune:scene_mode", p->scene_mode); in test_mpp_enc_cfg_setup()
647 mpp_enc_cfg_set_s32(cfg, "tune:speed", cmd->speed); in test_mpp_enc_cfg_setup()
648 mpp_enc_cfg_set_s32(cfg, "tune:vmaf_opt", 0); in test_mpp_enc_cfg_setup()
652 mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_i", aq_thd_smart); in test_mpp_enc_cfg_setup()
653 mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_p", aq_thd_smart); in test_mpp_enc_cfg_setup()
654 mpp_enc_cfg_set_st(cfg, "hw:aq_step_i", aq_step_smart); in test_mpp_enc_cfg_setup()
655 mpp_enc_cfg_set_st(cfg, "hw:aq_step_p", aq_step_smart); in test_mpp_enc_cfg_setup()
657 mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_i", aq_thd); in test_mpp_enc_cfg_setup()
658 mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_p", aq_thd); in test_mpp_enc_cfg_setup()
659 mpp_enc_cfg_set_st(cfg, "hw:aq_step_i", aq_step_i_ipc); in test_mpp_enc_cfg_setup()
660 mpp_enc_cfg_set_st(cfg, "hw:aq_step_p", aq_step_p_ipc); in test_mpp_enc_cfg_setup()
662 mpp_enc_cfg_set_st(cfg, "hw:aq_rnge_arr", aq_rnge_arr); in test_mpp_enc_cfg_setup()
664 mpp_enc_cfg_set_s32(cfg, "hw:qbias_en", 1); in test_mpp_enc_cfg_setup()
665 mpp_enc_cfg_set_s32(cfg, "hw:qbias_i", cmd->bias_i); in test_mpp_enc_cfg_setup()
666 mpp_enc_cfg_set_s32(cfg, "hw:qbias_p", cmd->bias_p); in test_mpp_enc_cfg_setup()
669 mpp_enc_cfg_set_st(cfg, "hw:qbias_arr", qbias_arr_avc); in test_mpp_enc_cfg_setup()
671 mpp_enc_cfg_set_st(cfg, "hw:qbias_arr", qbias_arr_hevc); in test_mpp_enc_cfg_setup()
674 mpp_enc_cfg_set_s32(cfg, "hw:skip_bias_en", 0); in test_mpp_enc_cfg_setup()
675 mpp_enc_cfg_set_s32(cfg, "hw:skip_bias", 4); in test_mpp_enc_cfg_setup()
676 mpp_enc_cfg_set_s32(cfg, "hw:skip_sad", 8); in test_mpp_enc_cfg_setup()
678 ret = mpi->control(ctx, MPP_ENC_SET_CFG, cfg); in test_mpp_enc_cfg_setup()
1201 ret = mpp_enc_cfg_init_k(&p->cfg); in enc_test()
1203 ret = mpp_enc_cfg_init(&p->cfg); in enc_test()
1209 ret = p->mpi->control(p->ctx, MPP_ENC_GET_CFG, p->cfg); in enc_test()
1248 if (p->cfg) { in enc_test()
1249 mpp_enc_cfg_deinit(p->cfg); in enc_test()
1250 p->cfg = NULL; in enc_test()