x265 编码参数 maxNumReferences 详细解析与实验
maxNumReferences介绍
-
maxNumReferences 参数用来限制 P 帧或 B 帧可以使用的 L0 参考帧的最大数量。
-
影响解码图像缓冲区(DPB)大小 :参考帧越多,DPB需要存储的帧就越多。
-
编码效率与性能的权衡 :
- 增加参考帧数量可以提升压缩效率(更多参考帧可用于运动搜索)。
- 但同时会增加内存占用和计算复杂度,降低编码性能。
-
取值范围 :1到16之间,默认值为3,在 x265.h 文件中x265_param 结构体声明该变量。
/* The maximum number of L0 references a P or B slice may use. This * influences the size of the decoded picture buffer. The higher this * number, the more reference frames there will be available for motion * search, improving compression efficiency of most video at a cost of * p