mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-11-09 17:04:38 -06:00
* [maixcam2] Fix error: (-215:Assertion failed) in function release
This commit is contained in:
@@ -723,10 +723,10 @@ namespace maix::display
|
|||||||
input_img_h = input_img_h / scale;
|
input_img_h = input_img_h / scale;
|
||||||
input_img_w = ((input_img_w + 16) >> 4 )<< 4;
|
input_img_w = ((input_img_w + 16) >> 4 )<< 4;
|
||||||
input_img_h = ((input_img_h + 2) >> 1 )<< 1;
|
input_img_h = ((input_img_h + 2) >> 1 )<< 1;
|
||||||
input_img = img.resize(input_img_w, input_img_h, fit);
|
input_img = img.resize(input_img_w, input_img_h);
|
||||||
// log::info("resize %dx%d to %dx%d", img.width(), img.height(), input_img_w, input_img_h);
|
// log::info("resize %dx%d to %dx%d", img.width(), img.height(), input_img_w, input_img_h);
|
||||||
} else {
|
} else {
|
||||||
input_img = img.resize(input_img_w, input_img_h, fit);
|
input_img = img.resize(input_img_w, input_img_h);
|
||||||
// log::info("resize %dx%d to %dx%d", img.width(), img.height(), input_img_w, input_img_h);
|
// log::info("resize %dx%d to %dx%d", img.width(), img.height(), input_img_w, input_img_h);
|
||||||
}
|
}
|
||||||
if (input_img == nullptr) {
|
if (input_img == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user