From 5e05bbbbcbd45298c48af2b56a33da93d15b8f44 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Mar 2024 15:28:17 +0100 Subject: Refactor xcomposite Move common code between cuda/vaapi implementations into xcomposite file. This also fixes limited/full range colors on nvidia. --- include/capture/capture.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/capture/capture.h') diff --git a/include/capture/capture.h b/include/capture/capture.h index 43b5de5..f1d0467 100644 --- a/include/capture/capture.h +++ b/include/capture/capture.h @@ -12,6 +12,8 @@ typedef struct gsr_cuda gsr_cuda; typedef struct AVFrame AVFrame; typedef struct CUgraphicsResource_st *CUgraphicsResource; typedef struct CUarray_st *CUarray; +typedef struct CUctx_st *CUcontext; +typedef struct CUstream_st *CUstream; typedef struct gsr_capture gsr_capture; @@ -58,4 +60,7 @@ bool gsr_capture_base_setup_vaapi_textures(gsr_capture_base *self, AVFrame *fram 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); void gsr_capture_base_stop(gsr_capture_base *self, gsr_egl *egl); +bool drm_create_codec_context(const char *card_path, AVCodecContext *video_codec_context, bool hdr, VADisplay *va_dpy); +bool cuda_create_codec_context(CUcontext cu_ctx, AVCodecContext *video_codec_context, CUstream *cuda_stream); + #endif /* GSR_CAPTURE_CAPTURE_H */ -- cgit v1.2.3