diff options
author | Steam Deck User <deck@archlinux.steamdeck> | 2023-04-01 19:01:20 +0200 |
---|---|---|
committer | Steam Deck User <deck@archlinux.steamdeck> | 2023-04-01 19:01:20 +0200 |
commit | 29237c7116671b37344c9813a0c9f5ca63ece48d (patch) | |
tree | 2800c71abe2452763fb0e6ba81a9674dd14ca3d8 /src/main.cpp | |
parent | 2f67083915ccb16727d00d49917a520d0962fb8c (diff) |
Cleanup xcomposite_drm
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 54e59e9..efea666 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -375,7 +375,7 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt, } codec_context->max_b_frames = 0; codec_context->pix_fmt = pix_fmt; - //codec_context->color_range = AVCOL_RANGE_MPEG; + //codec_context->color_range = AVCOL_RANGE_JPEG; //codec_context->color_primaries = AVCOL_PRI_BT709; //codec_context->color_trc = AVCOL_TRC_BT709; //codec_context->colorspace = AVCOL_SPC_BT709; @@ -637,7 +637,7 @@ static void open_video(AVCodecContext *codec_context, VideoQuality video_quality // //av_dict_set(&options, "preset", "llhq", 0); //} - // Fuck nvidia and ffmpeg, I want to use a good preset for the gpu but all gpus prefer different + // I want to use a good preset for the gpu but all gpus prefer different // presets. Nvidia and ffmpeg used to support "hq" preset that chose the best preset for the gpu // with pretty good performance but you now have to choose p1-p7, which are gpu agnostic and on // older gpus p5-p7 slow the gpu down to a crawl... @@ -686,7 +686,7 @@ static void open_video(AVCodecContext *codec_context, VideoQuality video_quality if(codec_context->codec_id == AV_CODEC_ID_H264) { av_dict_set(&options, "profile", "high", 0); - av_dict_set_int(&options, "quality", 4, 0); + av_dict_set_int(&options, "quality", 14, 0); } else { av_dict_set(&options, "profile", "main", 0); } |