Dynamically set colors during runtime

This commit is contained in:
loki
2021-05-03 22:06:55 +02:00
parent 37a9256587
commit 900d59b3ac
5 changed files with 130 additions and 53 deletions

View File

@@ -647,6 +647,7 @@ std::optional<session_t> make_session(const encoder_t &encoder, const config_t &
sws_color_space = SWS_CS_BT2020;
break;
}
BOOST_LOG(info) << "Color range: ["sv << ((config.encoderCscMode & 0x1) ? "JPEG"sv : "MPEG"sv) << ']';
AVPixelFormat sw_fmt;
if(config.dynamicRange == 0) {