diff --git a/.vscode/launch.json b/.vscode/launch.json index f9a3c81..5f35362 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -41,6 +41,26 @@ } ] }, + { + "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", @@ -48,7 +68,7 @@ "program": "${workspaceFolder}/build/Debug/test_gl_compositor.exe", "args": [], "stopAtEntry": false, - "cwd": "${fileDirname}", + "cwd": "${workspaceFolder}", "environment": [], "console":"integratedTerminal" }, @@ -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" } diff --git a/Core b/Core index f012395..6536289 160000 --- a/Core +++ b/Core @@ -1 +1 @@ -Subproject commit f012395e37b02aa027a23789d60d3c7b9959bd0a +Subproject commit 653628920132978991964be7a846cb27f0c131c4 diff --git a/README.md b/README.md index dd7d914..db9e6cc 100644 --- a/README.md +++ b/README.md @@ -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 : 刷新帧率 + ## 其他 在不同的平台上, 或者不同的驱动上, 相同的测试用例可能出现不同的效果, 或者更严重点甚至无法运行或者崩溃. diff --git a/README_en.md b/README_en.md index 6e9e832..ae36920 100644 --- a/README_en.md +++ b/README_en.md @@ -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.