libaom threads线程配置

参数配置 parse_stream_params

} else if (arg_match(&arg, &g_av1_codec_arg_defs.threads, argi)) {

config->cfg.g_threads = arg_parse_uint(&arg);

使用线程个数参数g_threads

int av1_compute_num_fp_contexts(AV1_PRIMARY *ppi, AV1EncoderConfig *oxcf)

{

//编码模块并行工作线程数量初始化为0

ppi->p_mt_info.num_mod_workers[MOD_FRAME_ENC] = 0;

//检查并行多线程配置是否有效如果无效直接返回1(表示单帧处理)

if (!av1_check_fpmt_config(ppi, oxcf)) {

return 1;

}

//计算最大编码工作线程

int max_num_enc_workers = compute_max_num_enc_workers(

&ppi->cpi->common.mi_params, ppi->cpi->common.seq_params->mib_size_log2);

//用于调整每个工作线程数量计算缩放因子舍入因子

// Scaling factors and rounding factors used to tune worker_per_frame

// computation.

int rounding_factor[2] = { 2, 4 };

int scaling_factor[2] = { 4, 8 };

/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值