From e3c92de1e22bafd5665929a0fedabb8c834a2fd5 Mon Sep 17 00:00:00 2001 From: sladro Date: Mon, 5 Jan 2026 15:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 5c363e2..3fd3b95 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -188,6 +188,12 @@ if(RK3588_ENABLE_FFMPEG) target_compile_definitions(preprocess PRIVATE RK3588_ENABLE_FFMPEG) target_include_directories(preprocess PRIVATE ${FFMPEG_INCLUDE_DIRS}) target_link_libraries(preprocess PRIVATE PkgConfig::FFMPEG) + + # swscale is required when preprocess runs in software mode (use_rga=false) + pkg_check_modules(SWSCALE_PREPROCESS IMPORTED_TARGET libswscale) + if(SWSCALE_PREPROCESS_FOUND) + target_link_libraries(preprocess PRIVATE PkgConfig::SWSCALE_PREPROCESS) + endif() endif() if(RK3588_ENABLE_RGA AND RK_RGA_LIB) target_compile_definitions(preprocess PRIVATE RK3588_ENABLE_RGA)