DevYK 3 년 전
부모
커밋
de13048b01
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/opencv/image_fingerprint.cpp

+ 1 - 0
src/opencv/image_fingerprint.cpp

@@ -67,6 +67,7 @@ AVFrame *cvmatToAvframe(cv::Mat *image, AVFrame *frame) {
         frame = av_frame_alloc();
         av_image_alloc(frame->data, frame->linesize, width, height, AVPixelFormat::AV_PIX_FMT_YUV420P, 1);
     }
+    printf("cvmatToAvframe width=%d height=%d linesize[0]=%d  linesize[1]=%d  linesize[2]=%d \n",width,height,frame->linesize[0],frame->linesize[1],frame->linesize[2]);
     SwsContext *conversion = sws_getContext(width, height, AVPixelFormat::AV_PIX_FMT_BGR24, width, height,
                                             (AVPixelFormat) frame->format, SWS_FAST_BILINEAR, NULL, NULL, NULL);
     sws_scale(conversion, &image->data, cvLinesizes, 0, height, frame->data, frame->linesize);