diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-04-16 15:17:50 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-04-16 15:19:46 +0200 |
commit | 3054f2d8c4fbd71934864c4d3a70bcf74367df57 (patch) | |
tree | 21aa19203e48707b5e5520eebecdbc92ad72bae2 /mg2d.c | |
parent | 52581fdefd8257249768deb837548e9c71eac57e (diff) |
mg2d: add MG2DContext.adaptive_step
Unused, for API compatibility with the adaptive step branch.
Diffstat (limited to 'mg2d.c')
-rw-r--r-- | mg2d.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |