video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-25 faff95860fec680d5fd0a518e4cd240a99381257
libcffmpeg.h
@@ -10,7 +10,7 @@
typedef void* cffmpeg;
typedef cffmpeg(*lib_cffmpeg_create)();
typedef cffmpeg(*lib_cffmpeg_create)(const int, const char*);
typedef void (*lib_cffmpeg_destroy)(const cffmpeg);
typedef void (*lib_cffmpeg_run)(const cffmpeg, const char*);
typedef void (*lib_cffmpeg_scale)(const cffmpeg, const int, const int, const int);
@@ -42,7 +42,7 @@
libcffmpeg init_libcffmpeg(const char *so_file);
void release_libcffmpeg(libcffmpeg lib);
cffmpeg wrap_fn_create();
cffmpeg wrap_fn_create(const int log, const char *logfile);
void wrap_fn_destroy(const cffmpeg h);
void wrap_fn_run(const cffmpeg h, const char* input);
void wrap_fn_scale(const cffmpeg h, const int wid, const int hei, const int flags);