67
67
size_t src2_step;
68
68
69
69
#define DST_ARG1 DT * dst1_data_, size_t dst1_step_,
70
- #define DST_STORE1 dst1_data (dst1_data_), dst1_step(dst1_step_),
70
+ #define DST_STORE1 dst1_data (dst1_data_), dst1_step(dst1_step_),
71
71
#define DST_VAR1 DT * dst1_data; \
72
72
size_t dst1_step;
73
73
@@ -1073,7 +1073,7 @@ struct FilterCtx
1073
1073
inline int TEGRA_FILTERINIT (cvhalFilter2D **context, uchar *kernel_data, size_t kernel_step, int kernel_type, int kernel_width, int kernel_height,
1074
1074
int max_width, int max_height, int src_type, int dst_type, int borderType, double delta, int anchor_x, int anchor_y, bool allowSubmatrix, bool allowInplace)
1075
1075
{
1076
- if (!context || !kernel_data || allowSubmatrix || allowInplace ||
1076
+ if (!context || !kernel_data || allowSubmatrix || allowInplace ||
1077
1077
src_type != CV_8UC1 || dst_type != CV_8UC1 ||
1078
1078
delta != 0 || anchor_x != kernel_width / 2 || anchor_y != kernel_height / 2 )
1079
1079
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -1105,7 +1105,7 @@ inline int TEGRA_FILTERINIT(cvhalFilter2D **context, uchar *kernel_data, size_t
1105
1105
return CV_HAL_ERROR_NOT_IMPLEMENTED;
1106
1106
}
1107
1107
1108
- if (!CAROTENE_NS::isConvolutionSupported (CAROTENE_NS::Size2D (max_width, max_height), ctx->ksize , ctx->border ))
1108
+ if (!CAROTENE_NS::isConvolutionSupported (CAROTENE_NS::Size2D (max_width, max_height), ctx->ksize , ctx->border ))
1109
1109
{
1110
1110
delete ctx;
1111
1111
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -1212,7 +1212,7 @@ inline int TEGRA_SEPFILTERINIT(cvhalFilter2D **context, int src_type, int dst_ty
1212
1212
return CV_HAL_ERROR_NOT_IMPLEMENTED;
1213
1213
}
1214
1214
1215
- if (!CAROTENE_NS::isSeparableFilter3x3Supported (CAROTENE_NS::Size2D (16 , 16 ), ctx->border , 3 , 3 ))
1215
+ if (!CAROTENE_NS::isSeparableFilter3x3Supported (CAROTENE_NS::Size2D (16 , 16 ), ctx->border , 3 , 3 ))
1216
1216
{
1217
1217
delete ctx;
1218
1218
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -1341,8 +1341,8 @@ inline int TEGRA_MORPHINIT(cvhalFilter2D **context, int operation, int src_type,
1341
1341
ctx->anchor_y = anchor_y;
1342
1342
switch (operation)
1343
1343
{
1344
- case MORPH_ERODE :
1345
- case MORPH_DILATE :
1344
+ case CV_HAL_MORPH_ERODE :
1345
+ case CV_HAL_MORPH_DILATE :
1346
1346
ctx->operation = operation;
1347
1347
break ;
1348
1348
default :
@@ -1355,7 +1355,7 @@ inline int TEGRA_MORPHINIT(cvhalFilter2D **context, int operation, int src_type,
1355
1355
ctx->border = CAROTENE_NS::BORDER_MODE_CONSTANT;
1356
1356
if ( borderValue[0 ] == DBL_MAX && borderValue[1 ] == DBL_MAX && borderValue[2 ] == DBL_MAX && borderValue[3 ] == DBL_MAX )
1357
1357
{
1358
- if ( operation == MORPH_ERODE )
1358
+ if ( operation == CV_HAL_MORPH_ERODE )
1359
1359
for (int i = 0 ; i < ctx->channels ; ++i)
1360
1360
ctx->borderValues [i] = (CAROTENE_NS::u8 )UCHAR_MAX;
1361
1361
else
@@ -1404,14 +1404,14 @@ inline int TEGRA_MORPHFREE(cvhalFilter2D *context)
1404
1404
( \
1405
1405
(void )dst_full_width, (void )dst_full_height, (void )dst_roi_x, (void )dst_roi_y, \
1406
1406
context && CAROTENE_NS::isSupportedConfiguration() ? \
1407
- ((MorphCtx*)context)->operation == MORPH_ERODE ? \
1407
+ ((MorphCtx*)context)->operation == CV_HAL_MORPH_ERODE ? \
1408
1408
CAROTENE_NS::erode (CAROTENE_NS::Size2D(width, height), ((MorphCtx*)context)->channels, \
1409
1409
src_data, src_step, dst_data, dst_step, \
1410
1410
((MorphCtx*)context)->ksize, ((MorphCtx*)context)->anchor_x, ((MorphCtx*)context)->anchor_y, \
1411
1411
((MorphCtx*)context)->border, ((MorphCtx*)context)->border, ((MorphCtx*)context)->borderValues, \
1412
1412
CAROTENE_NS::Margin(src_roi_x, src_full_width - width - src_roi_x, src_roi_y, src_full_height - height - src_roi_y)), \
1413
1413
CV_HAL_ERROR_OK : \
1414
- ((MorphCtx*)context)->operation == MORPH_DILATE ? \
1414
+ ((MorphCtx*)context)->operation == CV_HAL_MORPH_DILATE ? \
1415
1415
CAROTENE_NS::dilate(CAROTENE_NS::Size2D(width, height), ((MorphCtx*)context)->channels, \
1416
1416
src_data, src_step, dst_data, dst_step, \
1417
1417
((MorphCtx*)context)->ksize, ((MorphCtx*)context)->anchor_x, ((MorphCtx*)context)->anchor_y, \
0 commit comments