X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fscene.cpp;h=8e3dfd21d86587c20ed909a76128b426d6aa8d8e;hb=39bc32ad9993cfa5e46e0680501743dcf8b4bd25;hp=8506c9b20b68a5290ea0a8a258afe2ec23f94118;hpb=4df45e479ddbc8e2247be8aab7f2bab5ddaa1b74;p=nageru diff --git a/nageru/scene.cpp b/nageru/scene.cpp index 8506c9b..8e3dfd2 100644 --- a/nageru/scene.cpp +++ b/nageru/scene.cpp @@ -422,7 +422,7 @@ Effect *Scene::instantiate_effects(const Block *block, size_t chain_idx, Scene:: pixel_format = bmusb::PixelFormat_8BitBGRA; } else if (chosen_type == LIVE_INPUT_YCBCR_PLANAR) { pixel_format = bmusb::PixelFormat_8BitYCbCrPlanar; - } else if (global_flags.ten_bit_input) { + } else if (global_flags.bit_depth > 8) { pixel_format = bmusb::PixelFormat_10BitYCbCr; } else { pixel_format = bmusb::PixelFormat_8BitYCbCr; @@ -475,7 +475,7 @@ int Scene::finalize(lua_State* L) } } const size_t total_cardinality = real_cardinality * (only_one_mode ? 1 : 2); - if (total_cardinality > 200) { + if (total_cardinality > 400) { print_warning(L, "The given Scene will instantiate %zu different versions. This will take a lot of time and RAM to compile; see if you could limit some options by e.g. locking the input type in some cases (by giving a fixed input to add_input()).\n", total_cardinality); }