resize: fixed missing NEAREST_EXACT in U20.04

This commit is contained in:
Martin Pulec
2024-01-11 16:43:36 +01:00
parent 3423636c41
commit 6ff7d1e347
2 changed files with 3 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ parse_fmt(char *cfg, struct resize_param *param)
char *item = NULL;
while ((item = strtok_r(cfg, ":", &save_ptr))) {
cfg = NULL;
if (IS_KEY_PREFIX(item, "algo")) {
if (IS_KEY_PREFIX(item, "algorithm")) {
param->algo = resize_algo_from_string(strchr(item, '=') + 1);
if (param->algo < 0) {
return param->algo == RESIZE_ALGO_HELP_SHOWN ? 1 : -1;

View File

@@ -71,7 +71,7 @@ using cv::INTER_LANCZOS4;
using cv::INTER_LINEAR;
using cv::INTER_LINEAR_EXACT;
using cv::INTER_NEAREST;
using cv::INTER_NEAREST_EXACT;
// using cv::INTER_NEAREST_EXACT;
using cv::Mat;
using cv::Rect;
using cv::Size;
@@ -213,7 +213,7 @@ static const struct {
{ INTER_AREA, "area" },
{ INTER_LANCZOS4, "lanczos4" },
{ INTER_LINEAR_EXACT, "linear_exact" },
{ INTER_NEAREST_EXACT, "nearest_exact"},
// { INTER_NEAREST_EXACT, "nearest_exact"},
};
int