diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-03-04 20:30:43 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-03-08 11:35:26 +0100 |
commit | 0d89378021b9e8913b521164d1bc436d9bc2630f (patch) | |
tree | c72f8ae7453aa7c6b4f149b1d6292d2292b6411b /src/capture/capture.c | |
parent | d0c221a233e0bc07e22cffb06ec3ae77a5f96010 (diff) |
Use opengl capture for nvfbc (prepare for vulkan capture without cuda)
Diffstat (limited to 'src/capture/capture.c')
-rw-r--r-- | src/capture/capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/capture/capture.c b/src/capture/capture.c index f775d01..0b26e87 100644 --- a/src/capture/capture.c +++ b/src/capture/capture.c @@ -220,7 +220,7 @@ static bool cuda_register_opengl_texture(gsr_cuda *cuda, CUgraphicsResource *cud return true; } -bool gsr_capture_base_setup_cuda_textures(gsr_capture_base *base, AVFrame *frame, gsr_cuda_context *cuda_context, gsr_egl *egl, gsr_color_range color_range, bool hdr) { +bool gsr_capture_base_setup_cuda_textures(gsr_capture_base *base, AVFrame *frame, gsr_cuda_context *cuda_context, gsr_egl *egl, gsr_color_range color_range, gsr_source_color source_color, bool hdr) { // TODO: const int res = av_hwframe_get_buffer(base->video_codec_context->hw_frames_ctx, frame, 0); if(res < 0) { @@ -264,7 +264,7 @@ bool gsr_capture_base_setup_cuda_textures(gsr_capture_base *base, AVFrame *frame gsr_color_conversion_params color_conversion_params = {0}; color_conversion_params.color_range = color_range; color_conversion_params.egl = egl; - color_conversion_params.source_color = GSR_SOURCE_COLOR_RGB; + color_conversion_params.source_color = source_color; if(!hdr) color_conversion_params.destination_color = GSR_DESTINATION_COLOR_NV12; else |