Skip to content

Commit

Permalink
Add standalone NVENC encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ns6089 committed Jul 11, 2023
1 parent 053be3d commit 2f47352
Show file tree
Hide file tree
Showing 33 changed files with 1,870 additions and 624 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,11 @@ ${CMAKE_BINARY_DIR}/generated-src/${filename}.h")
configure_file(sunshine.service.in sunshine.service @ONLY)
endif()

file(GLOB NVENC_SOURCES CONFIGURE_DEPENDS
"src/nvenc/*.cpp"
"src/nvenc/*.h")
list(APPEND PLATFORM_TARGET_FILES ${NVENC_SOURCES})

configure_file(src/version.h.in version.h @ONLY)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

Expand Down Expand Up @@ -519,6 +524,8 @@ set(SUNSHINE_TARGET_FILES
src/stream.h
src/video.cpp
src/video.h
src/video_colorspace.cpp
src/video_colorspace.h
src/input.cpp
src/input.h
src/audio.cpp
Expand Down
1 change: 1 addition & 0 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace mail {
// Local mail
MAIL(touch_port);
MAIL(idr);
MAIL(invalidate_ref_frames);
MAIL(gamepad_feedback);
MAIL(hdr);
#undef MAIL
Expand Down
Loading

0 comments on commit 2f47352

Please sign in to comment.