| | |
| | | s->RunStream(input); |
| | | } |
| | | |
| | | int c_ffmpeg_get_fps(const cffmpeg h){ |
| | | Wrapper *s = (Wrapper*)h; |
| | | return s->GetFPS(); |
| | | } |
| | | |
| | | void c_ffmpeg_run_gb28181(const cffmpeg h){ |
| | | Wrapper *s = (Wrapper*)h; |
| | | s->GB28181(); |
| | |
| | | } |
| | | |
| | | // 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 scale_flag, const int gi, const int fmt, const char *file){ |
| | | return CreateEncoder(w, h, fps, br, scale_flag, gi, fmt, file); |
| | | } |
| | | |
| | | void c_ffmpeg_destroy_encoder(void *h){ |