video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-11-13 64fed650d429fdbdfa4011956a2c057dd0348914
csrc/cffmpeg.cpp
@@ -33,6 +33,11 @@
    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();
@@ -110,8 +115,8 @@
}
// 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){