| | |
| | | return data; |
| | | } |
| | | |
| | | void c_ffmpeg_close_stream(const cffmpeg h){ |
| | | Wrapper *s = (Wrapper*)h; |
| | | s->CloseStream(); |
| | | } |
| | | |
| | | void* c_ffmpeg_get_avpacket(const cffmpeg h, int *size, int *key){ |
| | | Wrapper *s = (Wrapper*)h; |
| | | unsigned char *data = NULL; |
| | |
| | | } |
| | | |
| | | // pic encoder |
| | | void *c_ffmpeg_create_encoder(const int w, const int h, const int fps, const int br, const int scale_flag, const int gi){ |
| | | return CreateEncoder(w, h, fps, br, scale_flag, gi); |
| | | void *c_ffmpeg_create_encoder(const int w, const int h, const int fps, const int br, const int pix_fmt, const int scale_flag, const int gi){ |
| | | return CreateEncoder(w, h, fps, br, pix_fmt, scale_flag, gi); |
| | | } |
| | | |
| | | void c_ffmpeg_destroy_encoder(void *h){ |