zheqiushui's picture
Upload 19 files
e3513f8 verified
raw
history blame contribute delete
723 Bytes
#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