BitstreamFile:输出码流文件,上面示例encoder_intra_main.cfg文件使用的就是默认值str.bin。
InputFile:输入文件,上面示例是另建文件配置。
SourceWidth、SourceHeight:输入源文件的宽、高
InputBitDepth:输入位深,常见YUV一般为8位。
InternalBitDepth:编码器使用的位深。等同于输出位深OutputBitDepth。
FrameRate:帧率
FramesToBeEncoded:编码帧数,注意,当profile为main-still-pictur,必须为1
Profile:指定码流的profile。取值有:main main10 main-still-picture main-RExt, high-throughput-RExt, main-SCC,等等。
Level:指定码流的level。取值:none、1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2, 8.5。
Tier:指定码流的tier,只有main或high。
IntraPeriod:I帧间隔
GOPSize:GOP大小
注意:IntraPeriod和GOPSize这两个参数有点复杂,一些都选1,即都是I帧,如果不是,还要设置一些参数,例子见encoder_lowdelay_main_rext.cfg。
QP:指定量化参数。默认为30,HEVC范围为0~51。值越大,压缩越好,文件体积越小,但质量越差。
SAD(Sum of Absolute Difference)=SAE(Sum of Absolute Error)即绝对误差和
SATD(Sum of Absolute Transformed Difference)即hadamard变换后再绝对值求和
SSD(Sum of Squared Difference)=SSE(Sum of Squared Error)即差值的平方和
MAD(Mean Absolute Difference)=MAE(Mean Absolute Error)即平均绝对差值
MSD(Mean Squared Difference)=MSE(Mean Squared Error)即平均平方误差
SAD和SATD的区别与几个名词解释_coloriy的博客-优快云博客
代码中一些常见缩写:
Dblk :deblock
ctx: context
ColBd: column boundaries
Lut: lookup table