return v;
}
-void avfilter_transform(const uint8_t *src, uint8_t *dst,
+int avfilter_transform(const uint8_t *src, uint8_t *dst,
int src_stride, int dst_stride,
int width, int height, const float *matrix,
enum InterpolateMethod interpolate,
case INTERPOLATE_BIQUADRATIC:
func = interpolate_biquadratic;
break;
+ default:
+ return AVERROR(EINVAL);
}
for (y = 0; y < height; y++) {
dst[y * dst_stride + x] = func(x_s, y_s, src, width, height, src_stride, def);
}
}
+ return 0;
}