From 0e021985f483e593c6ef872b8bcbe299566c7dd2 Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期二, 03 十二月 2019 15:32:18 +0800 Subject: [PATCH] 增加获取国标图片接口 --- libcffmpeg.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libcffmpeg.h b/libcffmpeg.h index 7bc4998..59e6572 100644 --- a/libcffmpeg.h +++ b/libcffmpeg.h @@ -16,6 +16,7 @@ typedef void (*lib_cffmpeg_run)(const cffmpeg, const char*); typedef int (*lib_cffmpeg_fps)(const cffmpeg); typedef void (*lib_cffmpeg_gb28181)(const cffmpeg); +typedef char * (*lib_cffmpeg_get_gb28181_pic)(const char *rtspUrl, int *retDataLen); typedef void (*lib_cffmpeg_cpu)(const cffmpeg); typedef void (*lib_cffmpeg_rec_duration)(const cffmpeg, const int, const int); typedef void (*lib_cffmpeg_recorder)(const cffmpeg, const char*, const char*, const int64_t, int, int, int); @@ -32,6 +33,7 @@ static lib_cffmpeg_run fn_run = NULL; static lib_cffmpeg_fps fn_fps = NULL; static lib_cffmpeg_gb28181 fn_gb28181 = NULL; +static lib_cffmpeg_get_gb28181_pic fn_get_gb28181_pic = NULL; static lib_cffmpeg_cpu fn_cpu = NULL; static lib_cffmpeg_rec_duration fn_rec_duration = NULL; static lib_cffmpeg_recorder fn_recorder = NULL; @@ -52,6 +54,7 @@ void wrap_fn_run(void *lib, const cffmpeg h, const char* input); int wrap_fn_fps(void *lib, const cffmpeg h); void wrap_fn_run_gb28181(void *lib, const cffmpeg h); +char * wrap_fn_get_gb28181_pic(void *lib, const char *rtspUrl, int *retDataLen); void wrap_fn_use_cpu(void *lib, const cffmpeg h); void wrap_fn_rec_duration(void *lib, const cffmpeg h, const int min, const int max); void wrap_fn_recorder(void *lib, const cffmpeg h, const char* id, const char* dir, const int64_t fid, int mind, int maxd, int audio); -- Gitblit v1.8.0