Lines Matching refs:cs
966 /* cs - number of the image channels */
967 #define CV_MOVE_TO( pos, _x, _y, cs ) \
969 (pos).x = (_x) >= 0 && (_x) < (pos).width ? (_x) : 0, (pos).currline + (_x) * (cs) )
974 /* cs - number of the image channels */
975 #define CV_GET_CURRENT( pos, cs ) ((pos).currline + (pos).x * (cs))
979 /* cs - number of the image channels */
982 #define CV_MOVE_LEFT( pos, cs ) \
983 ( --(pos).x >= 0 ? (pos).currline + (pos).x*(cs) : 0 )
986 #define CV_MOVE_RIGHT( pos, cs ) \
987 ( ++(pos).x < (pos).width ? (pos).currline + (pos).x*(cs) : 0 )
990 #define CV_MOVE_UP( pos, cs ) \
991 (((pos).currline -= (pos).step) != (pos).topline ? (pos).currline + (pos).x*(cs) : 0 )
994 #define CV_MOVE_DOWN( pos, cs ) \
995 (((pos).currline += (pos).step) != (pos).bottomline ? (pos).currline + (pos).x*(cs) : 0 )
998 #define CV_MOVE_LU( pos, cs ) ( CV_MOVE_LEFT(pos, cs), CV_MOVE_UP(pos, cs))
1001 #define CV_MOVE_RU( pos, cs ) ( CV_MOVE_RIGHT(pos, cs), CV_MOVE_UP(pos, cs))
1004 #define CV_MOVE_LD( pos, cs ) ( CV_MOVE_LEFT(pos, cs), CV_MOVE_DOWN(pos, cs))
1007 #define CV_MOVE_RD( pos, cs ) ( CV_MOVE_RIGHT(pos, cs), CV_MOVE_DOWN(pos, cs))
1014 /* cs - number of the image channels */
1017 #define CV_MOVE_LEFT_WRAP( pos, cs ) \
1018 ((pos).currline + ( --(pos).x >= 0 ? (pos).x : ((pos).x = (pos).width-1))*(cs))
1021 #define CV_MOVE_RIGHT_WRAP( pos, cs ) \
1022 ((pos).currline + ( ++(pos).x < (pos).width ? (pos).x : ((pos).x = 0))*(cs) )
1025 #define CV_MOVE_UP_WRAP( pos, cs ) \
1027 (pos).currline : ((pos).currline = (pos).bottomline - (pos).step)) + (pos).x*(cs) )
1030 #define CV_MOVE_DOWN_WRAP( pos, cs ) \
1032 (pos).currline : ((pos).currline = (pos).topline + (pos).step)) + (pos).x*(cs) )
1035 #define CV_MOVE_LU_WRAP( pos, cs ) ( CV_MOVE_LEFT_WRAP(pos, cs), CV_MOVE_UP_WRAP(pos, cs))
1037 #define CV_MOVE_RU_WRAP( pos, cs ) ( CV_MOVE_RIGHT_WRAP(pos, cs), CV_MOVE_UP_WRAP(pos, cs))
1039 #define CV_MOVE_LD_WRAP( pos, cs ) ( CV_MOVE_LEFT_WRAP(pos, cs), CV_MOVE_DOWN_WRAP(pos, cs))
1041 #define CV_MOVE_RD_WRAP( pos, cs ) ( CV_MOVE_RIGHT_WRAP(pos, cs), CV_MOVE_DOWN_WRAP(pos, cs))
1057 /* cs - number of the image channels */
1058 #define CV_MOVE_PARAM( pos, shift, cs ) \
1061 (pos).x >= 0 && (pos).x < (pos).width) ? (pos).currline + (pos).x*(cs) : 0 )
1067 /* cs - number of the image channels */
1068 #define CV_MOVE_PARAM_WRAP( pos, shift, cs ) \
1078 (pos).currline + (pos).x*(cs) )