Lines Matching refs:swap_rb
55 int swap_rb = _swap_rb ? 2 : 0; in icvCvt_BGR2Gray_8u_C3C1R() local
60 int t = descale( rgb[swap_rb]*cB + rgb[1]*cG + rgb[swap_rb^2]*cR, SCALE ); in icvCvt_BGR2Gray_8u_C3C1R()
74 int swap_rb = _swap_rb ? 2 : 0; in icvCvt_BGRA2Gray_16u_CnC1R() local
79 int t = descale( rgb[swap_rb]*cB + rgb[1]*cG + rgb[swap_rb^2]*cR, SCALE ); in icvCvt_BGRA2Gray_16u_CnC1R()
93 int swap_rb = _swap_rb ? 2 : 0; in icvCvt_BGRA2Gray_8u_C4C1R() local
98 int t = descale( rgba[swap_rb]*cB + rgba[1]*cG + rgba[swap_rb^2]*cR, SCALE ); in icvCvt_BGRA2Gray_8u_C4C1R()
142 int swap_rb = _swap_rb ? 2 : 0; in icvCvt_BGRA2BGR_8u_C4C3R() local
147 uchar t0 = bgra[swap_rb], t1 = bgra[1]; in icvCvt_BGRA2BGR_8u_C4C3R()
149 t0 = bgra[swap_rb^2]; bgr[2] = t0; in icvCvt_BGRA2BGR_8u_C4C3R()
162 int swap_rb = _swap_rb ? 2 : 0; in icvCvt_BGRA2BGR_16u_C4C3R() local
167 ushort t0 = bgra[swap_rb], t1 = bgra[1]; in icvCvt_BGRA2BGR_16u_C4C3R()
169 t0 = bgra[swap_rb^2]; bgr[2] = t0; in icvCvt_BGRA2BGR_16u_C4C3R()
602 int src_cn, dst_cn, swap_rb = flags & CV_CVTIMG_SWAP_RB; in cvConvertImage() local
639 if( src_cn != dst_cn || (src_cn == 3 && swap_rb) ) in cvConvertImage()
659 icvCvt_BGR2Gray_8u_C3C1R( s, s_step, d, d_step, size, swap_rb ); in cvConvertImage()
662 assert( swap_rb ); in cvConvertImage()
666 icvCvt_BGRA2Gray_8u_C4C1R( s, s_step, d, d_step, size, swap_rb ); in cvConvertImage()
669 icvCvt_BGRA2BGR_8u_C4C3R( s, s_step, d, d_step, size, swap_rb ); in cvConvertImage()