| | |
| | | } |
| | | return fn_get_avpacket2(h, data, size, key); |
| | | } |
| | | |
| | | int wrap_fn_set_devid(void *lib, const cffmpeg h, const int devid){ |
| | | if (!fn_set_devid){ |
| | | fn_set_devid = (lib_cffmpeg_devid)dlsym(lib, "c_ffmpeg_set_devid"); |
| | | if (!fn_set_devid) return -1; |
| | | } |
| | | return fn_set_devid(h, devid); |
| | | } |
| | | |
| | | void wrap_fn_release_buf(void *lib, void *buf){ |
| | | if (!fn_release_buf){ |
| | | fn_release_buf = (lib_cffmpeg_release_buf)dlsym(lib, "c_ffmpeg_release_buf"); |
| | | } |
| | | if (fn_release_buf) fn_release_buf(buf); |
| | | } |
| | | // for encoder |
| | | cencoder wrap_fn_create_encoder(void *lib, const int w, const int h, const int fps, const int br, const int pix_fmt, const int scale_flag, const int gi){ |
| | | if (!fn_create_encoder){ |