From f93ee1a42e8c47e472332287b7350b66a6b0fa11 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 24 七月 2020 18:28:57 +0800 Subject: [PATCH] 保存触发id之后的视频作为触发视频 --- libcffmpeg.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libcffmpeg.h b/libcffmpeg.h index d15ed21..b1d010c 100644 --- a/libcffmpeg.h +++ b/libcffmpeg.h @@ -28,6 +28,7 @@ typedef void (*lib_cffmpeg_close_stream)(const cffmpeg); typedef void*(*lib_cffmpeg_avpacket)(const cffmpeg, int*, int*); typedef int (*lib_cffmpeg_avpacket2)(const cffmpeg, unsigned char**, int*, int*); +typedef void(*lib_cffmpeg_release_buf) (void*); static lib_cffmpeg_create fn_create = NULL; static lib_cffmpeg_create2 fn_create2 = NULL; @@ -47,6 +48,7 @@ static lib_cffmpeg_close_stream fn_close_stream = NULL; static lib_cffmpeg_avpacket fn_get_avpacket = NULL; static lib_cffmpeg_avpacket2 fn_get_avpacket2 = NULL; +static lib_cffmpeg_release_buf fn_release_buf = NULL; typedef void* libcffmpeg; libcffmpeg init_libcffmpeg(const char *so_file); @@ -70,6 +72,8 @@ void wrap_fn_close_stream(void *lib, const cffmpeg h); void* wrap_fn_get_avpacket(void *lib, const cffmpeg h, int* size, int* key); int wrap_fn_get_avpacket2(void *lib, const cffmpeg h, unsigned char **data, int* size, int* key); +void wrap_fn_release_buf(void *lib, void *buf); + // for encoder typedef void* cencoder; typedef cencoder (*lib_cffmpeg_create_encoder)(const int w, const int h, const int fps, const int br, const int pix_fmt, const int scale_flag, const int gi); -- Gitblit v1.8.0