Blame view

Convert.h 359 Bytes
3f2992b2c   bostx   V1.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  #ifndef CONVERT_H
  #define CONVERT_H
  
  #include <QImage>
  #include <QVideoFrame>
  
  #include <opencv2/core/core.hpp>
  
  class Convert
  {
   public:
    static QImage fromYuvToRgb(QVideoFrame frame);
    static QImage fromYuvToGray(QVideoFrame frame);
    static cv::Mat fromYuvToBgrMat(QVideoFrame frame);
    static QImage fromBGRMatToQImage(const cv::Mat &frame);
  };
  
  #endif