Skip to content

Commit

Permalink
[what] 添加 test_decoder 使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
HR1025 committed Sep 19, 2024
1 parent 4b1e107 commit fa1143b
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 3 deletions.
38 changes: 36 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,34 @@
}
]
},
{
"name": "test_decoder(debian)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/test_decoder",
"args": [
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "test_gl_compositor(msvc)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/build/Debug/test_gl_compositor.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${workspaceFolder}",
"environment": [],
"console":"integratedTerminal"
},
Expand All @@ -59,7 +79,21 @@
"program": "${workspaceFolder}/build/Debug/test_gl_transition.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"cwd": "${workspaceFolder}",
"environment": [],
"console":"integratedTerminal"
},
{
"name": "test_decoder(msvc)",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/build/Debug/test_decoder.exe",
"args": [
// "/codec_name=D3D11H264Decoder",
// "/input=./1.h264"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console":"integratedTerminal"
}
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ cmake --build build --config Release -j 16

![transition_75](./images/transition_75.png)

### test_decoder

`test_decoder` 展示了如何使用不同平台的解码器,解码不同的编码类型.

`test_decoder` 支持一些配置项, 如下:

- codec_name : 解码器名称 (可以通过 `-h` 查看具体支持的解码器)
- input : 输入文件
- display : 是否输出至屏幕
- fps : 刷新帧率

## 其他

在不同的平台上, 或者不同的驱动上, 相同的测试用例可能出现不同的效果, 或者更严重点甚至无法运行或者崩溃.
Expand Down
11 changes: 11 additions & 0 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ Below is an illustration of the SwapTransition at different stages (`progress` a

![transition_75](./images/transition_75.png)

### test_decoder

`test_decoder` demonstrates how to use decoders on different platforms to decode various types of codecs.

`test_decoder` supports several configuration options as follows:

- codec_name: Name of the decoder (you can view the supported decoders using `-h`)
- input: Input file
- display: Whether to output to the screen
- fps: Refresh rate

## Others

On different platforms or drivers, identical test cases may yield different results or even fail or crash due to cross-platform compatibility issues that are hard to detect and address during development or due to logical errors within MMP-Core itself.
Expand Down

0 comments on commit fa1143b

Please sign in to comment.