From 3054f2d8c4fbd71934864c4d3a70bcf74367df57 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 16 Apr 2024 15:17:50 +0200 Subject: mg2d: add MG2DContext.adaptive_step Unused, for API compatibility with the adaptive step branch. --- mg2d.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mg2d.c') diff --git a/mg2d.c b/mg2d.c index 58886cd..dec0c18 100644 --- a/mg2d.c +++ b/mg2d.c @@ -1495,6 +1495,12 @@ static int mg_levels_alloc(MG2DContext *ctx) int ret = 0; + if (ctx->adaptive_step) { + mg2di_log(&priv->logger, MG2D_LOG_ERROR, + "Adaptive stepping not supported.\n"); + return -EINVAL; + } + /* compute the levels geometries/partitioning */ ret = mg_dh_init(&priv->dh, priv->dg, ctx->step, ctx->max_levels); if (ret < 0) { -- cgit v1.2.3