| | |
| | | release_if_err(fn_fire_recorder, lib); |
| | | fn_info_recorder = (lib_cffmpeg_info_recorder)dlsym(lib, "c_ffmpeg_get_info_recorder"); |
| | | release_if_err(fn_info_recorder, lib); |
| | | fn_rec_id = (lib_cffmpeg_rec_id)dlsym(lib, "c_ffmpeg_get_rec_id"); |
| | | release_if_err(fn_rec_id, lib); |
| | | fn_decoder = (lib_cffmpeg_decoder)dlsym(lib, "c_ffmpeg_build_decoder"); |
| | | release_if_err(fn_decoder, lib); |
| | | fn_decoder_pic = (lib_cffmpeg_pic)dlsym(lib, "c_ffmpeg_get_pic_decoder"); |
| | |
| | | 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); |
| | | } |
| | | |
| | | char* wrap_fn_rec_id(const cffmpeg h, const char* path, int*length){ |
| | | return fn_rec_id(h, path, 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_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 |