mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 16:40:18 +00:00
resize: fixed missing NEAREST_EXACT in U20.04
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user