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/nvfbc.c | |
parent | f3c24b3c8bb676c089efe46259f2a31fca0a0bcd (diff) |
Add pixfmt yuv420p/yuv444p option to set lossless color
Diffstat (limited to 'src/capture/nvfbc.c')
-rw-r--r-- | src/capture/nvfbc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/capture/nvfbc.c b/src/capture/nvfbc.c index 5371d02..68732f9 100644 --- a/src/capture/nvfbc.c +++ b/src/capture/nvfbc.c @@ -377,6 +377,10 @@ static void gsr_capture_nvfbc_tick(gsr_capture *cap, AVCodecContext *video_codec (*frame)->hw_frames_ctx = video_codec_context->hw_frames_ctx; (*frame)->buf[0] = av_buffer_pool_get(((AVHWFramesContext*)video_codec_context->hw_frames_ctx->data)->pool); (*frame)->extended_data = (*frame)->data; + (*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; } } |