diff --git a/source/lib/PlaYUVerFrame.cpp b/source/lib/PlaYUVerFrame.cpp index 3dd587b..f383e62 100755 --- a/source/lib/PlaYUVerFrame.cpp +++ b/source/lib/PlaYUVerFrame.cpp @@ -453,4 +453,13 @@ Pixel PlaYUVerFrame::getPixelValue(const QPoint &pos, ColorSpace space) return pixel_value; } + +// Format conversion + +#ifdef USE_OPENCV +cv::Mat PlaYUVerFrame::getCvMat() +{ + return cv::Mat(); +} +#endif } // NAMESPACE diff --git a/source/lib/PlaYUVerFrame.h b/source/lib/PlaYUVerFrame.h index 62c734d..8e78542 100755 --- a/source/lib/PlaYUVerFrame.h +++ b/source/lib/PlaYUVerFrame.h @@ -29,7 +29,7 @@ #include #include - +#include #include #include "TypeDef.h" @@ -70,10 +70,15 @@ public: static QStringList supportedPixelFormatList() { QStringList formats; - for( Int i = 0; i < NUMBER_FORMATS; i++ ) - { - formats.append( gInputStreamFormatsNames[i] ); - } + formats << "YUV420p" + << "YUV444p" + << "YUV411p" + << "YUV411p" + << "YUV410p" + << "GRAY" + << "RGB8" // RGB 3*8 bits per pixel + ; + assert( formats.size() == NUMBER_FORMATS ); return formats; } @@ -101,6 +106,10 @@ public: return m_pcRGBPelInterlaced; } +#ifdef USE_OPENCV + cv::Mat getCvMat(); +#endif + UInt getWidth() { return m_uiWidth;