File size: 723 Bytes
e3513f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _AX_SR_H_
#define _AX_SR_H_

#if defined(__cplusplus)
extern "C"
{
#endif
#include "ax_devices.h"

    typedef struct
    {
        ax_devive_e dev_type; // Device type
        char devid;           // axcl device ID
        char model_path[256];
    } ax_sr_init_param_t;

    typedef struct
    {
        int width;
        int height;

        void *pVirAddr;
    } ax_sr_image_t;

    typedef void *ax_sr_handle_t;

    int ax_sr_init(ax_sr_init_param_t *param, ax_sr_handle_t *handle);
    int ax_sr_deinit(ax_sr_handle_t handle);

    int ax_sr_get_scale(ax_sr_handle_t handle);

    int ax_sr_run(ax_sr_handle_t handle, ax_sr_image_t *input, ax_sr_image_t *output);

#if defined(__cplusplus)
}
#endif

#endif