Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1814368
  • 博文数量: 274
  • 博客积分: 2366
  • 博客等级: 大尉
  • 技术积分: 1880
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-22 09:37
文章分类

全部博文(274)

文章存档

2022年(1)

2020年(10)

2019年(7)

2018年(18)

2017年(26)

2016年(32)

2015年(43)

2014年(30)

2013年(44)

2012年(36)

2011年(17)

2010年(10)

分类: LINUX

2012-03-28 17:52:20

转自H264乐园

请教x264里面h->param.rc.b_stat_read 参数的含义

本帖最后由 xinyancode 于 2010-3-31 09:53 AM 编辑


请问x264里面:
h->param.rc.b_stat_read 参数是什么含义?

这是对它的赋初值:
h->param.rc.b_stat_read = 0;

在x264程序里面有很多地方都用这个参数作为判断条件,如:
if( h->param.rc.b_stat_read )
{
。。。。
}    

定义的时候是这样的: 
int    b_stat_read;     //Read stat from psz_stat_in and use it
psz_stat 紧跟着定义的:
char   *psz_stat_in;    

但是整个程序里面好像都是0,我没看明白它后面的那句注释
//Read stat from psz_stat_in and use it,这是什么意思?
谁能帮我指点一下?
收藏分享
Fastreaming

中级会员

2#
 发表于 2010-3-31 11:56 AM | 只看该作者
>> h->param.rc.b_stat_read 参数是什么含义
Indicate the PASS status

>>//Read stat from psz_stat_in and use it,这是什么意思?
in pass 1 mode, x264 will generate the stats information and write them into psz_stat_out

in pass 2 mode, x264 will read the stats information from (psz_stat_in) pass 1, or pass 3 for best ratecontrol decision

in pass 3 mode, x264 will read the stats information from pass 1 (psz_stat_in, psz_stat_out) for better ratecontrol decision, x264 also write the newer stats information into psz_stat_out

First Pass:
rc.b_stat_read == 0, rc.b_stat_write = 1

Third Paas:
rc.b_stat_read = 1, rc.b_stat_write = 1

Second Pass:
rc.b_stat_read = 1, rc.b_stat_write = 0
阅读(2206) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~