Skip to content

Commit

Permalink
Fix c-api NCNN_BORDER_* defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Mek101 committed Jul 13, 2023
1 parent 24e7fb1 commit e93b8df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ NCNN_EXPORT int ncnn_extractor_input_index(ncnn_extractor_t ex, int index, const
NCNN_EXPORT int ncnn_extractor_extract_index(ncnn_extractor_t ex, int index, ncnn_mat_t* mat);

/* mat process api */
#define NCNN_BORDER_CONSTANT = 0,
#define NCNN_BORDER_REPLICATE = 1,
#define NCNN_BORDER_REFLECT = 2,
#define NCNN_BORDER_TRANSPARENT = -233,
#define NCNN_BORDER_CONSTANT 0
#define NCNN_BORDER_REPLICATE 1
#define NCNN_BORDER_REFLECT 2
#define NCNN_BORDER_TRANSPARENT -233
NCNN_EXPORT void ncnn_copy_make_border(const ncnn_mat_t src, ncnn_mat_t dst, int top, int bottom, int left, int right, int type, float v, const ncnn_option_t opt);
NCNN_EXPORT void ncnn_copy_make_border_3d(const ncnn_mat_t src, ncnn_mat_t dst, int top, int bottom, int left, int right, int front, int behind, int type, float v, const ncnn_option_t opt);
NCNN_EXPORT void ncnn_copy_cut_border(const ncnn_mat_t src, ncnn_mat_t dst, int top, int bottom, int left, int right, const ncnn_option_t opt);
Expand Down

0 comments on commit e93b8df

Please sign in to comment.