From 602b3b2a792d65e49dba07920b100b5feb39d36f Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期一, 16 九月 2019 13:43:40 +0800 Subject: [PATCH] remove log --- libcffmpeg.c | 32 ++++++++++---------------------- 1 files changed, 10 insertions(+), 22 deletions(-) diff --git a/libcffmpeg.c b/libcffmpeg.c index e33a376..fda4217 100644 --- a/libcffmpeg.c +++ b/libcffmpeg.c @@ -41,10 +41,6 @@ release_if_err(fn_decoder_pic, lib); fn_get_avpacket = (lib_cffmpeg_avpacket)dlsym(lib, "c_ffmpeg_get_avpacket"); release_if_err(fn_get_avpacket, lib); - fn_active_recorder = (lib_cffmpeg_active_recorder)dlsym(lib, "c_ffmpeg_active_recorder"); - release_if_err(fn_active_recorder, lib); - fn_active_decoder = (lib_cffmpeg_active_decoder)dlsym(lib, "c_ffmpeg_active_decoder"); - release_if_err(fn_active_decoder, lib); fn_dec_jpeg = (lib_cffmpeg_decode_jpeg)dlsym(lib, "c_ffmpeg_decode_jpeg"); release_if_err(fn_dec_jpeg, lib); @@ -91,40 +87,32 @@ fn_cpu(h); } -void wrap_fn_recorder(const cffmpeg h, const char* dir, int mind, int maxd){ - fn_recorder(h, dir, mind, maxd); +void wrap_fn_recorder(const cffmpeg h, const char* id, const char* dir, int mind, int maxd){ + fn_recorder(h, id, dir, mind, maxd); } -void wrap_fn_fire_recorder(const cffmpeg h, const int64_t id){ - fn_fire_recorder(h, id); +void wrap_fn_fire_recorder(const cffmpeg h, const char* sid, const int64_t id){ + fn_fire_recorder(h, sid, id); } -char* wrap_fn_info_recorder(const cffmpeg h, int* index, int* length){ - return fn_info_recorder(h, index, length); +void wrap_fn_info_recorder(const cffmpeg h, int* index, char** recid, int* recidLen, char** fpath, int* pathLen){ + return fn_info_recorder(h, index, recid, recidLen, fpath, pathLen); } void wrap_fn_decoder(const cffmpeg h){ fn_decoder(h); } -void* wrap_fn_decoder_pic(const cffmpeg h, int* wid, int* hei){ - return fn_decoder_pic(h, wid, hei); +void* wrap_fn_decoder_pic(const cffmpeg h, int* wid, int* hei, int64_t *id){ + return fn_decoder_pic(h, wid, hei, id); } void* wrap_fn_get_avpacket(const cffmpeg h, int* size, int* key){ return fn_get_avpacket(h, size, key); } -void wrap_fn_active_recorder(const cffmpeg h, const char* dir, int mind, int maxd, rec_func fn){ - fn_active_recorder(h, dir, mind, maxd, fn); -} - -void wrap_fn_active_decoder(const cffmpeg h, dec_func fn){ - fn_active_decoder(h, fn); -} - -void* wrap_fn_decode_jpeg(const cffmpeg h, const char* file, int* wid, int* hei){ - return fn_dec_jpeg(h, file, wid, hei); +void* wrap_fn_decode_jpeg(const char* file, int* wid, int* hei){ + return fn_dec_jpeg(file, wid, hei); } // for encoder -- Gitblit v1.8.0