hal(fastcv): decline transpose when the row step is not a whole number of elements

This commit is contained in:
pctablet505
2026-11-02 19:17:25 +05:30
parent d195a5ad7e
commit 6f461fc85a

View File

@@ -164,6 +164,9 @@ int fastcv_hal_transpose2d(
if (src_data == dst_data) if (src_data == dst_data)
CV_HAL_RETURN_NOT_IMPLEMENTED("In-place not supported"); CV_HAL_RETURN_NOT_IMPLEMENTED("In-place not supported");
if (src_step % element_size != 0 || dst_step % element_size != 0)
CV_HAL_RETURN_NOT_IMPLEMENTED("Row step not divisible by the element size is not supported");
fcvStatus status = FASTCV_SUCCESS; fcvStatus status = FASTCV_SUCCESS;
switch (element_size) switch (element_size)