Commit 23619718 authored by Andrey Pavlenko's avatar Andrey Pavlenko

fixing copy/paste typo

parent ce8c2892
...@@ -491,7 +491,7 @@ bool CvCapture_Android::convertYUV2BGR(int width, int height, const unsigned cha ...@@ -491,7 +491,7 @@ bool CvCapture_Android::convertYUV2BGR(int width, int height, const unsigned cha
if (m_frameFormat == yuv420sp) if (m_frameFormat == yuv420sp)
cv::cvtColor(src, resmat, inRGBorder ? CV_YUV420sp2RGB : CV_YUV420sp2BGR, withAlpha ? 4 : 3); cv::cvtColor(src, resmat, inRGBorder ? CV_YUV420sp2RGB : CV_YUV420sp2BGR, withAlpha ? 4 : 3);
else if (m_frameFormat == yvu420sp) else if (m_frameFormat == yvu420sp)
cv::cvtColor(src, resmat, inRGBorder ? CV_YUV2RGB_NV12 : CV_YUV2BGR_NV12, withAlpha ? 4 : 3); cv::cvtColor(src, resmat, inRGBorder ? CV_YUV2RGB_NV21 : CV_YUV2BGR_NV12, withAlpha ? 4 : 3);
return !resmat.empty(); return !resmat.empty();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment