| | |
| | | func (h *GoFFMPEG) GetPicDecoder() ([]byte, int, int, int64) { |
| | | var width C.int |
| | | var height C.int |
| | | var fid C.longlong |
| | | var fid C.long |
| | | |
| | | p := C.wrap_fn_decoder_pic(h.ffmpeg, &width, &height, &fid) |
| | | if width == 0 && height == 0 { |
| | |
| | | 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){ |
| | |
| | | typedef char*(*lib_cffmpeg_info_recorder)(const cffmpeg, int*, int*); |
| | | typedef char*(*lib_cffmpeg_rec_id)(const cffmpeg, const char*, int*); |
| | | typedef void (*lib_cffmpeg_decoder)(const cffmpeg); |
| | | typedef void*(*lib_cffmpeg_pic)(const cffmpeg, int*, int*); |
| | | typedef void*(*lib_cffmpeg_pic)(const cffmpeg, int*, int*, int64_t*); |
| | | typedef void*(*lib_cffmpeg_avpacket)(const cffmpeg, int*, int*); |
| | | typedef void*(*lib_cffmpeg_decode_jpeg)(const cffmpeg, const char*, int*, int*); |
| | | |
| | |
| | | char* wrap_fn_info_recorder(const cffmpeg, int* index, int* length); |
| | | char* wrap_fn_rec_id(const cffmpeg h, const char* path, int*length); |
| | | void wrap_fn_decoder(const cffmpeg h); |
| | | void* wrap_fn_decoder_pic(const cffmpeg h, int* wid, int* hei); |
| | | void* wrap_fn_decoder_pic(const cffmpeg h, int* wid, int* hei, int64_t *id); |
| | | void* wrap_fn_get_avpacket(const cffmpeg h, int* size, int* key); |
| | | void* wrap_fn_decode_jpeg(const cffmpeg h, const char* file, int* wid, int* hei); |
| | | |