From 5e85a7e80764e1a1eae39c8ce9bafed29d8773a9 Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期二, 23 七月 2019 19:57:27 +0800 Subject: [PATCH] 增加支持推流的代码,并替换librtspclient.so --- libcffmpeg.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libcffmpeg.h b/libcffmpeg.h index d083536..1cfbaa5 100644 --- a/libcffmpeg.h +++ b/libcffmpeg.h @@ -24,6 +24,7 @@ typedef char*(*lib_cffmpeg_info_recorder)(const cffmpeg, int*, int*); typedef void (*lib_cffmpeg_decoder)(const cffmpeg); typedef void*(*lib_cffmpeg_pic)(const cffmpeg, int*, int*); +typedef void*(*lib_cffmpeg_avpacket)(const cffmpeg, int*, int*); typedef void (*lib_cffmpeg_active_recorder)(const cffmpeg, const char*, int, int, rec_func); typedef void (*lib_cffmpeg_active_decoder)(const cffmpeg, dec_func); typedef void*(*lib_cffmpeg_decode_jpeg)(const cffmpeg, const char*, int*, int*); @@ -39,6 +40,7 @@ static lib_cffmpeg_info_recorder fn_info_recorder = NULL; static lib_cffmpeg_decoder fn_decoder = NULL; static lib_cffmpeg_pic fn_decoder_pic = NULL; +static lib_cffmpeg_avpacket fn_get_avpacket = NULL; static lib_cffmpeg_active_recorder fn_active_recorder = NULL; static lib_cffmpeg_active_decoder fn_active_decoder = NULL; static lib_cffmpeg_decode_jpeg fn_dec_jpeg = NULL; @@ -58,6 +60,7 @@ char* wrap_fn_info_recorder(const cffmpeg, int*, int*); void wrap_fn_decoder(const cffmpeg h); void* wrap_fn_decoder_pic(const cffmpeg h, int* wid, int* hei); +void* wrap_fn_get_avpacket(const cffmpeg h, int* size, int* key); void wrap_fn_active_recorder(const cffmpeg h, const char* dir, int mind, int maxd, rec_func fn); void wrap_fn_active_decoder(const cffmpeg h, dec_func fn); void* wrap_fn_decode_jpeg(const cffmpeg h, const char* file, int* wid, int* hei); -- Gitblit v1.8.0