|
@@ -61,7 +61,7 @@ int video_similarity_detection_start(long id, int force_keyframe,
|
|
|
AVFrame *video_frame = NULL;
|
|
|
dctx->video_queue->PopFront(video_frame);
|
|
|
if (video_frame == NULL) {
|
|
|
- LOGE("read video frame end.");
|
|
|
+// LOGE("read video frame end.");
|
|
|
break;
|
|
|
}
|
|
|
|
|
@@ -107,14 +107,14 @@ int video_similarity_detection_start(long id, int force_keyframe,
|
|
|
}
|
|
|
|
|
|
if (ctx->log) fprintf(ctx->log, "loop exit \n");
|
|
|
- LOGE("loop exit \n");
|
|
|
+// LOGE("loop exit \n");
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
int video_similarity_detection_close(long id) {
|
|
|
if (id <= 0)return -1;
|
|
|
auto *ctx = (VideoSimilarityContext *) id;
|
|
|
- LOGE("video_similarity_detection_close \n");
|
|
|
+// LOGE("video_similarity_detection_close \n");
|
|
|
if (ctx->video_path) {
|
|
|
// free((void *) ctx->video_path);
|
|
|
ctx->video_path = NULL;
|
|
@@ -126,7 +126,7 @@ int video_similarity_detection_close(long id) {
|
|
|
close_decoder(ctx->decode_obj_id);
|
|
|
free(ctx);
|
|
|
ctx = NULL;
|
|
|
- LOGE("video_similarity_detection_close out\n");
|
|
|
+// LOGE("video_similarity_detection_close out\n");
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -234,7 +234,7 @@ const char *videoSimilarity2json(VideoSimilarity *videoSimilarity) {
|
|
|
*/
|
|
|
const char *get_video_similarity_list(const char *inputjson) {
|
|
|
if (!inputjson)return NULL;
|
|
|
- printf("get_video_similarity_list=%s \n", inputjson);
|
|
|
+// printf("get_video_similarity_list=%s \n", inputjson);
|
|
|
VideoSimilarity *vs = NULL;
|
|
|
long id = video_similarity_detection_init(inputjson, &vs);
|
|
|
const char *ret_json = NULL;
|
|
@@ -242,7 +242,7 @@ const char *get_video_similarity_list(const char *inputjson) {
|
|
|
if (!(((VideoSimilarityContext *) id)->log)) {
|
|
|
int n = strlen(((VideoSimilarityContext *) id)->video_path); //计算字符串的长度(包括'\0')
|
|
|
const char *name = GetFileName(((VideoSimilarityContext *) id)->video_path, n); //把字符串及其长度传给函数
|
|
|
- printf("%s\n", name); //name就是那个名称,可以输出
|
|
|
+// printf("%s\n", name); //name就是那个名称,可以输出
|
|
|
// char args[512];
|
|
|
// sprintf(args, "/Users/devyk/Data/Project/sample/github_code/OpenCVSample/temp/%s.log", name);
|
|
|
// sprintf(args, "/datalog/ffmpeg_opencv/%s.log", name);
|
|
@@ -260,7 +260,7 @@ const char *get_video_similarity_list(const char *inputjson) {
|
|
|
ret_json = videoSimilarity2json(vs);
|
|
|
delete vs;
|
|
|
vs = NULL;
|
|
|
- LOGE("get_video_similarity_list out \n");
|
|
|
+// LOGE("get_video_similarity_list out \n");
|
|
|
}
|
|
|
return ret_json;
|
|
|
}
|