video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-24 d443dc1bd40885a74e7cb4a7d144986086b5c6e5
csrc/cffmpeg.cpp
@@ -103,12 +103,8 @@
}
/////////////////////test
void* c_ffmpeg_decode_jpeg(const char *file, int *wid, int *hei){
    uint8_t *p = DecodeJPEG(file, wid, hei);
    if(!p){
        *wid = *hei = 0;
    }
    return p;
void* c_ffmpeg_decode(const char *file, const int gb, int *wid, int *hei){
    return Decode(file, gb, wid, hei);
}
// pic encoder