Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 9 additions & 1 deletion src/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down