diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml new file mode 100644 index 00000000000..f2510fd0f34 --- /dev/null +++ b/.github/workflows/windows_build.yml @@ -0,0 +1,40 @@ +name: Windows Build + +on: + push: + branches: [ master, fix/amf-h264-profile-coder ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + + - name: Setup MSVC + uses: ilammy/msvc-dev-cmd@v1 + + - name: Install Ninja + run: choco install ninja + + - name: Configure CMake + run: | + cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release + + - name: Build + run: | + cmake --build build --config Release + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: Sunshine-PSP-Compatible + path: | + build/sunshine.exe + build/sunshine.pdb diff --git a/src/video.cpp b/src/video.cpp index 6b2b635277c..7ee8112a24c 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -812,9 +812,17 @@ namespace video { {"rc"s, &config::video.amd.amd_rc_h264}, {"usage"s, &config::video.amd.amd_usage_h264}, {"vbaq"s, &config::video.amd.amd_vbaq}, + {"coder"s, &config::video.amd.amd_coder}, {"enforce_hrd"s, &config::video.amd.amd_enforce_hrd}, }, - {}, // SDR-specific options + { + // SDR-specific options + {"profile"s, [](const config_t &cfg) { + if (cfg.profile == 66) return "baseline"s; + if (cfg.profile == 77) return "main"s; + return "high"s; + }}, + }, {}, // HDR-specific options {}, // YUV444 SDR-specific options {}, // YUV444 HDR-specific options