Set range/color model for all encoders

This commit is contained in:
Patrick Nicolas
2024-10-29 10:44:49 +01:00
parent 7cbff4b418
commit df5e0869c3
4 changed files with 2 additions and 6 deletions
+2
View File
@@ -110,6 +110,8 @@ std::unique_ptr<VideoEncoder> VideoEncoder::Create(
{
using namespace std::string_literals;
std::unique_ptr<VideoEncoder> res;
settings.range = VK_SAMPLER_YCBCR_RANGE_ITU_FULL;
settings.color_model = VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709;
if (settings.encoder_name == encoder_vulkan)
{
#if WIVRN_USE_VULKAN_ENCODE