Readd nvfbc cursor capture

This commit is contained in:
dec05eba 2022-03-23 15:11:46 +01:00
parent 3087f3ce12
commit c0a68e2063
2 changed files with 2 additions and 1 deletions

View File

@ -42,3 +42,4 @@ libraries at compile-time.
* Clean up the code! * Clean up the code!
* Fix segfault in debug mode (happens because audio codec becomes NULL?) * Fix segfault in debug mode (happens because audio codec becomes NULL?)
* Dynamically change bitrate/resolution to match desired fps. This would be helpful when streaming for example, where the encode output speed also depends on upload speed to the streaming service. * Dynamically change bitrate/resolution to match desired fps. This would be helpful when streaming for example, where the encode output speed also depends on upload speed to the streaming service.
* Show cursor when recording a single window. Currently the cursor can only be recorded when recording the monitor/screen (nvfbc).

View File

@ -122,7 +122,7 @@ public:
memset(&create_capture_params, 0, sizeof(create_capture_params)); memset(&create_capture_params, 0, sizeof(create_capture_params));
create_capture_params.dwVersion = NVFBC_CREATE_CAPTURE_SESSION_PARAMS_VER; create_capture_params.dwVersion = NVFBC_CREATE_CAPTURE_SESSION_PARAMS_VER;
create_capture_params.eCaptureType = NVFBC_CAPTURE_SHARED_CUDA; create_capture_params.eCaptureType = NVFBC_CAPTURE_SHARED_CUDA;
create_capture_params.bWithCursor = NVFBC_FALSE; create_capture_params.bWithCursor = NVFBC_TRUE;
if(capture_region) { if(capture_region) {
create_capture_params.captureBox = { x, y, width, height }; create_capture_params.captureBox = { x, y, width, height };
*display_width = width; *display_width = width;