下载
安装svn
brew install svn
使用svn下载HM工程
svn checkout https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/tags/HM-16.9/
备注:关于需要的HM版本可查阅https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/tags/
执行上述命令之后,在当前所在目录下会出现HM的目录文件夹
编译和运行
在VsCode中点击运行按钮,配置launch.json和tasks.json
launch.json
{ // Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "test hm",
"type": "cppdbg",
"request": "launch",
"program": "/Users/admin/desktop/HM/HM-16.9/bin/TAppEncoderStatic",
"args": [
"-c", "cfg/per-sequence/BasketballDrill.cfg",
"-c", "cfg/encoder_intra_main.cfg",
],
"stopAtEntry": false,
"cwd": "/Users/admin/desktop/HM/HM-16.9",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "hm build",
},
]
}
tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "hm build",
"type": "shell",
"command": "make",
"args": ["-j"],
"options": {
"cwd": "/Users/admin/desktop/HM/HM-16.9/build/linux" //current working directory
},
"group": {
"kind":"build",
"isDefault": true,
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$gcc",
"detail": "Task generated by Debugger."
}
]
}