修bug
Some checks are pending
CI / host-build (push) Waiting to run
CI / rk3588-cross-build (push) Waiting to run

This commit is contained in:
sladro 2026-01-06 14:45:39 +08:00
parent 2eb3cefd8a
commit 9bcb82e461

View File

@ -431,7 +431,11 @@ private:
auto Check = [&](const rga_buffer_t& s, const rga_buffer_t& d) -> bool {
const im_rect sr{0, 0, s.width, s.height};
const im_rect dr{0, 0, d.width, d.height};
const IM_STATUS chk = imcheck(s, d, sr, dr);
// Do NOT call the imcheck(...) variadic macro with 0 extra args:
// under -Wpedantic/-std=c++11 it expands to a zero-sized array.
rga_buffer_t pat{};
const im_rect pr{0, 0, 0, 0};
const IM_STATUS chk = imcheck_t(s, d, pat, sr, dr, pr, 0);
if (chk != IM_STATUS_NOERROR && chk != IM_STATUS_SUCCESS) {
std::cerr << "[preprocess] RGA imcheck failed: " << imStrError(chk) << "\n";
return false;