x265探索与研究(五):如何用VS调试x265?

最后更新于:2022-04-01 16:05:50

# 如何用VS调试x265? ### 1、设置cli为启动项       用VS打开工程项目,如下图: ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-07-22_5791ccad0ec24.jpg)       右击cli,设置为启动项,如下图: ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-07-22_5791ccad2e271.jpg) ### 2、配置路径和命令行参数       右击cli选择Properties,如下图所示 ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-07-22_5791ccad4fedc.jpg)       进入如下界面: ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-07-22_5791ccad73a32.jpg)       将Command Arguments和Working Directory中的内容填写好即可。       示例如下: **Command Arguments:** ~~~ --preset fast --input hall_cif_352x288_300.yuv --fps 30 --input-res 352x288 --output out.bin --psnr --ssim --bitrate 128 ~~~ **Working Directory:** ~~~ C:\Users\Fred\Desktop\DaHuaTech\x265\x265_1.8\build\vc10-x86\Release ~~~ ### 3、Build与Debug       进行build solution后直接调试即可,如下图: ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-07-22_5791ccad978d0.jpg) ![吐舌头](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-03-22_56f0e98bbe0df.gif)
';