You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidcv::cvtColorTwoPlane( InputArray _ysrc, InputArray _uvsrc, OutputArray _dst, int code )
11055
+
{
11056
+
// only YUV420 is currently supported
11057
+
switch (code) {
11058
+
case COLOR_YUV2BGR_NV21: case COLOR_YUV2RGB_NV21: case COLOR_YUV2BGR_NV12: case COLOR_YUV2RGB_NV12:
11059
+
case COLOR_YUV2BGRA_NV21: case COLOR_YUV2RGBA_NV21: case COLOR_YUV2BGRA_NV12: case COLOR_YUV2RGBA_NV12:
11060
+
break;
11061
+
default:
11062
+
CV_Error( CV_StsBadFlag, "Unknown/unsupported color conversion code" );
11063
+
return;
11064
+
}
11065
+
11066
+
int stype = _ysrc.type();
11067
+
int depth = CV_MAT_DEPTH(stype), uidx, dcn;
11068
+
11069
+
Mat ysrc, uvsrc, dst;
11070
+
ysrc = _ysrc.getMat();
11071
+
uvsrc = _uvsrc.getMat();
11072
+
Size ysz = _ysrc.size();
11073
+
Size uvs = _uvsrc.size();
11074
+
11075
+
// http://www.fourcc.org/yuv.php#NV21 == yuv420sp -> a plane of 8 bit Y samples followed by an interleaved V/U plane containing 8 bit 2x2 subsampled chroma samples
11076
+
// http://www.fourcc.org/yuv.php#NV12 -> a plane of 8 bit Y samples followed by an interleaved U/V plane containing 8 bit 2x2 subsampled colour difference samples
0 commit comments