fix chroma keyer

This commit is contained in:
2026-04-12 01:42:27 +08:00
parent eb79be87a4
commit 3b5b0187cb
4 changed files with 40 additions and 18 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ TEST(PluginIntegration, ChromaKeyerCreateAndRender)
dynamic_cast<olive::plugin::OlivePluginInstance *>(instance);
ASSERT_TRUE(olive_instance);
olive::VideoParams params(320, 240, olive::core::PixelFormat::U8, 4);
// Use U16 format as the ChromaKeyer plugin expects 16-bit input
olive::VideoParams params(320, 240, olive::core::PixelFormat::U16, 4);
olive_instance->setVideoParam(params);
olive::TexturePtr input = CreateSolidTexture(params);