1 /*
2  * Copyright (C) 2021-2023 Alibaba Group Holding Limited
3  */
4 
5 #ifndef _IMAGEENHAN_H_
6 #define _IMAGEENHAN_H_
7 
8 #include "model/internal.h"
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 typedef struct _ErasePersonStruct {
15     char *url;
16     char *image;
17     int imageLen;
18 } ErasePersonStruct;
19 
20 typedef struct _ExtendImageStyleStruct {
21     char *majorUrl;
22     char *majorImage;
23     char *outImageUrl;
24     char *outImage;
25     int majorImageLen;
26     int outImageLen;
27 } ExtendImageStyleStruct;
28 
29 typedef union _ImageEnhanResultStruct {
30     ErasePersonStruct person;
31     ExtendImageStyleStruct style;
32 } ImageEnhanResultStruct;
33 
34 int erasePerson(char *imageUrl, char *userMaskUrl, AIModelCBFunc cb);
35 int extendImageStyle(char *majorUrl, char *styleUrl, AIModelCBFunc cb);
36 #ifdef __cplusplus
37 }
38 #endif
39 #endif
40