1.x265下载:http://ftp.videolan.org/pub/videolan/x265/
2.cmake步骤:
第一栏where is the code: E:/myvs/x265_3.2.1/source
第二栏where to build the binaries: E:/myvs/x265_3.2.1/build/vc15-x86_64
如果要开启汇编,勾选ENABLE_ASSEMBLY,需要下载nasm,尽量下载高版本。实测2.11.02在VS编译阶段会报错:无法打开文件“Debug\x265-static.lib”
下载地址:https://www.nasm.us/pub/nasm/releasebuilds/2.13.01/win64/nasm-2.13.01-installer-x64.exe,安装之后添加环境变量:C:\Users\root\AppData\Local\nasm然后configure, generate.
然后configure, generate.
3.cli目录配置:
命令参数:--preset fast --input D:\myvs\yuv\BasketballPass_416x240_50.yuv --input-res 416x240 --output str.bin --input-depth=8 --fps 30 -f 10 --bitrate=128 --qp=22 --psnr --ssim (qp放到bitrate后面才有效)
工作目录:D:\myvs\x265_3.2.1\build\vc15-x86_64\Release
现在可以开始你的表演了~
但有个疑问:common下的x86 native汇编在x265中哪个地方调用的?
就目前看来,没有找到x265的native汇编调用,x265中函数指针调用的是intrisic形式的汇编。