diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-03-20 17:43:11 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-03-26 19:04:51 +0200 |
commit | 716cb5b4488f99bac2a8f7f89e0077a079e63ac1 (patch) | |
tree | 6d09745730d292f44fc92a51e791b4d6c54648ce /src/capture/xcomposite_drm.c | |
parent | f3c24b3c8bb676c089efe46259f2a31fca0a0bcd (diff) |
Add pixfmt yuv420p/yuv444p option to set lossless color
Diffstat (limited to 'src/capture/xcomposite_drm.c')
-rw-r--r-- | src/capture/xcomposite_drm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/capture/xcomposite_drm.c b/src/capture/xcomposite_drm.c index 0f8115f..a4810a8 100644 --- a/src/capture/xcomposite_drm.c +++ b/src/capture/xcomposite_drm.c @@ -372,7 +372,10 @@ static void gsr_capture_xcomposite_drm_tick(gsr_capture *cap, AVCodecContext *vi (*frame)->format = video_codec_context->pix_fmt; (*frame)->width = video_codec_context->width; (*frame)->height = video_codec_context->height; - (*frame)->color_range = AVCOL_RANGE_JPEG; + (*frame)->color_range = video_codec_context->color_range; + (*frame)->color_primaries = video_codec_context->color_primaries; + (*frame)->color_trc = video_codec_context->color_trc; + (*frame)->colorspace = video_codec_context->colorspace; int res = av_hwframe_get_buffer(video_codec_context->hw_frames_ctx, *frame, 0); if(res < 0) { |