video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-07-26 51e5858dda6fb386024df0dce2bc38270f1bff02
remove log
4个文件已修改
17 ■■■■ 已修改文件
apipassive.go 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
csrc/buz/recorder.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
csrc/cffmpeg.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
csrc/wrapper.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apipassive.go
@@ -33,10 +33,11 @@
    //     return -1, ""
    // }
    path := C.GoString(p)
    fmt.Println("Go get info : ", path, " len: ", l)
    defer C.free(unsafe.Pointer(p))
    C.free(unsafe.Pointer(p))
    return int(i), C.GoString(p)
    fmt.Println("Go get info : ", path, " len: ", l)
    return int(i), path
}
// BuildDecoder build decoder
csrc/buz/recorder.cpp
@@ -96,9 +96,9 @@
            //callback to frame index and path
            if(func_rec_info_){
                func_rec_info_(file_frame_index_, file_path_);
                logIt("recoder index %d, file name %s\n", file_frame_index_, file_path_.c_str());
                // logIt("recoder index %d, file name %s\n", file_frame_index_, file_path_.c_str());
            }else{
                logIt("recorder has no func_rec_info");
                // logIt("recorder has no func_rec_info");
            }
        }
csrc/cffmpeg.cpp
@@ -64,8 +64,8 @@
    std::string p;
    s->GetInfoRecorder(i, p);
    printf("cffmpeg get info : index : %d, file : %s\n", i, p.c_str());
    // printf("cffmpeg get info : index : %d, file : %s\n", i, p.c_str());
    *index = i;
    *length = p.length();
    char *path = (char*)malloc(*length + 1);
csrc/wrapper.cpp
@@ -292,7 +292,7 @@
        index = info.file_frame_index;
        path = info.file_path;
        list_rec_.pop_front();
        logIt("go get info index: %d, file: %s\n", index, path.c_str());
        // logIt("go get info index: %d, file: %s\n", index, path.c_str());
    }
    ////////decoder