video analysis2.0拆分,ffmpeg封装go接口库
chenshijun
2019-07-17 803388b511d31b9e25f6829298bb12e06323474c
cffmpeg.h
@@ -32,6 +32,11 @@
//////test
void* c_ffmpeg_decode_jpeg(const cffmpeg h, const char *file, int *wid, int *hei);
// pic encoder
void *c_ffmpeg_create_encoder(const int w, const int h, const int fps, const int br, const int scale_flag, const int gi);
void c_ffmpeg_destroy_encoder(void *h);
int c_ffmpeg_encode(void *hdl, uint8_t *in, const int w, const int h, uint8_t **out, int *size, int *key);
#ifdef __cplusplus
}
#endif