Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 21 of 21) sorted by relevance

/TwlSDK-5.1.0/build/demos/spi/tp-2/src/
Dmain.c34 static void DrawLine(u16 x1, u16 y1, u16 x2, u16 y2, u16 col);
83 static void DrawLine(u16 x1, u16 y1, u16 x2, u16 y2, u16 col) in DrawLine() argument
89 width = (u16)((x1 >= x2) ? (x1 - x2) : (x2 - x1)); // width = | x1 - x2 | in DrawLine()
96 if (x1 >= x2) in DrawLine()
98 min = x2; in DrawLine()
105 max = x2; in DrawLine()
112 py = (u16)(((px - min) * (y2 - y1)) / (x2 - x1) + base); in DrawLine()
124 base = x2; in DrawLine()
136 px = (u16)((py - min) * (x2 - x1) / (y2 - y1) + base); in DrawLine()
/TwlSDK-5.1.0/include/twl/camera/ARM9/
Dcamera.h156 void CAMERA_SetTrimmingParamsCore(u16 x1, u16 y1, u16 x2, u16 y2);
157 SDK_INLINE void CAMERA_SetTrimmingParams(u16 x1, u16 y1, u16 x2, u16 y2) in CAMERA_SetTrimmingParams() argument
161 CAMERA_SetTrimmingParamsCore(x1, y1, x2, y2); in CAMERA_SetTrimmingParams()
179 void CAMERA_GetTrimmingParamsCore(u16* x1, u16* y1, u16* x2, u16* y2);
180 SDK_INLINE void CAMERA_GetTrimmingParams(u16* x1, u16* y1, u16* x2, u16* y2) in CAMERA_GetTrimmingParams() argument
184 CAMERA_GetTrimmingParamsCore(x1, y1, x2, y2); in CAMERA_GetTrimmingParams()
/TwlSDK-5.1.0/build/libraries/camera/ARM9.TWL/src/
Dcamera.c152 void CAMERA_SetTrimmingParamsCore(u16 x1, u16 y1, u16 x2, u16 y2) in CAMERA_SetTrimmingParamsCore() argument
154 …if( (x1 > x2)||(y1 > y2) ) // The ending position offset is smaller than the starting position off… in CAMERA_SetTrimmingParamsCore()
162 reg_CAM_EOFS = REG_CAM_EOFS_FIELD( y2 - 1, x2 -2 ); in CAMERA_SetTrimmingParamsCore()
179 void CAMERA_GetTrimmingParamsCore(u16* x1, u16* y1, u16* x2, u16* y2) in CAMERA_GetTrimmingParamsCore() argument
183 *x2 = (u16)(((reg_CAM_EOFS & REG_CAM_EOFS_HOFS_MASK) >> REG_CAM_EOFS_HOFS_SHIFT) + 2); in CAMERA_GetTrimmingParamsCore()
/TwlSDK-5.1.0/include/nitro/gx/
Dg2.h112 static void G2_SetWnd0Position(int x1, int y1, int x2, int y2);
113 static void G2_SetWnd1Position(int x1, int y1, int x2, int y2);
149 static void G2S_SetWnd0Position(int x1, int y1, int x2, int y2);
150 static void G2S_SetWnd1Position(int x1, int y1, int x2, int y2);
454 static inline void G2_SetWnd0Position(int x1, int y1, int x2, int y2) in G2_SetWnd0Position() argument
461 ((x2 << REG_G2_WIN0H_RIGHTX_SHIFT) & REG_G2_WIN0H_RIGHTX_MASK)); in G2_SetWnd0Position()
480 static inline void G2_SetWnd1Position(int x1, int y1, int x2, int y2) in G2_SetWnd1Position() argument
487 ((x2 << REG_G2_WIN1H_RIGHTX_SHIFT) & REG_G2_WIN1H_RIGHTX_MASK)); in G2_SetWnd1Position()
955 static inline void G2S_SetWnd0Position(int x1, int y1, int x2, int y2) in G2S_SetWnd0Position() argument
962 ((x2 << REG_G2S_DB_WIN0H_RIGHTX_SHIFT) & in G2S_SetWnd0Position()
[all …]
Dg3.h207 #define GX_VIEWPORT_ASSERT(x1, y1, x2, y2) \ argument
208 SDK_ASSERT( (x1) < (x2) && (y1) < (y2) && \
209 (x1) >= 0 && (x2) < 256 && \
572 #define GX_PACK_VIEWPORT_PARAM(x1, y1, x2, y2) \ argument
573 ((u32)((x1) | ((y1) << 8) | ((x2) << 16) | ((y2) << 24)))
Dg3imm.h86 static void G3_ViewPort(int x1, int y1, int x2, int y2);
697 static inline void G3_ViewPort(int x1, int y1, int x2, int y2) in G3_ViewPort() argument
699 GX_VIEWPORT_ASSERT(x1, y1, x2, y2); in G3_ViewPort()
701 reg_G3_VIEWPORT = GX_PACK_VIEWPORT_PARAM(x1, y1, x2, y2); in G3_ViewPort()
Dg3c.h97 static void G3CS_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2);
151 void G3C_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2);
769 static inline void G3CS_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2) in G3CS_ViewPort() argument
771 GX_VIEWPORT_ASSERT(x1, y1, x2, y2); in G3CS_ViewPort()
773 G3CS_Direct1(info, G3OP_VIEWPORT, GX_PACK_VIEWPORT_PARAM(x1, y1, x2, y2)); in G3CS_ViewPort()
Dg3b.h104 static void G3BS_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2);
159 void G3B_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2);
871 static inline void G3BS_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2) in G3BS_ViewPort() argument
873 GX_VIEWPORT_ASSERT(x1, y1, x2, y2); in G3BS_ViewPort()
875 G3BS_Direct1(info, G3OP_VIEWPORT, GX_PACK_VIEWPORT_PARAM(x1, y1, x2, y2)); in G3BS_ViewPort()
/TwlSDK-5.1.0/build/libraries/gx/ARM9/src/
Dg2.c33 fx32 x2, y2; in G2x_SetBGyAffine_() local
52 x2 = mtx->_00 * dx + mtx->_01 * dy + (centerX << FX32_SHIFT); in G2x_SetBGyAffine_()
56 *((vu32 *)addr + 2) = (u32)(x2 >> 4); // BGxX in G2x_SetBGyAffine_()
Dg3b.c1130 void G3B_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2) in G3B_ViewPort() argument
1132 G3BS_ViewPort(info, x1, y1, x2, y2); in G3B_ViewPort()
Dg3c.c1289 void G3C_ViewPort(GXDLInfo *info, int x1, int y1, int x2, int y2) in G3C_ViewPort() argument
1291 G3CS_ViewPort(info, x1, y1, x2, y2); in G3C_ViewPort()
/TwlSDK-5.1.0/build/libraries/prc/common/src/
Dprc_algo_common.c262 #define FMT_BB(bb) (bb).x1,(bb).y1,(bb).x2,(bb).y2
589 boundingBox.x2 = PRC_SMALL_ENOUGH_X; in PRCi_ExtractInputPattern_Common()
601 if (point->x > boundingBox.x2) in PRCi_ExtractInputPattern_Common()
602 boundingBox.x2 = point->x; in PRCi_ExtractInputPattern_Common()
609 wx = boundingBox.x2 - boundingBox.x1; in PRCi_ExtractInputPattern_Common()
612 dx = (boundingBox.x1 + boundingBox.x2) / 2 - w / 2; in PRCi_ExtractInputPattern_Common()
855 pattern->normalizeSize = (box->x2 - box->x1); in PRCi_ExtractInputPattern_Common()
879 data->wholeBoundingBox.x2 = PRC_SMALL_ENOUGH_X; in PRCi_CalcExtraValues_Common()
918 boundingBox.x2 = point->x; in PRCi_CalcExtraValues_Common()
929 if (point->x > boundingBox.x2) in PRCi_CalcExtraValues_Common()
[all …]
Dprc_resample.c542 int x1, y1, x2, y2, xDir, yDir, offs; in PRC_ResampleStrokes_Recursive() local
562 x2 = inputPoints[p2].x; // End point in PRC_ResampleStrokes_Recursive()
564 xDir = x2 - x1; // Direction vector in PRC_ResampleStrokes_Recursive()
566 …offs = -(x1 * y2 - x2 * y1); // Items bundled together in order to reduce the amount of cal… in PRC_ResampleStrokes_Recursive()
Dprc_algo_fine.c287 width = inputData->wholeBoundingBox.x2 - inputData->wholeBoundingBox.x1; in PRCi_CalcStrokeDistance_Fine()
291 tmp = protoData->wholeBoundingBox.x2 - protoData->wholeBoundingBox.x1; in PRCi_CalcStrokeDistance_Fine()
Dprc_algo_superfine.c324 width = inputData->wholeBoundingBox.x2 - inputData->wholeBoundingBox.x1; in PRCi_CalcStrokeDistance_Superfine()
328 tmp = protoData->wholeBoundingBox.x2 - protoData->wholeBoundingBox.x1; in PRCi_CalcStrokeDistance_Superfine()
/TwlSDK-5.1.0/build/demos/prc/characterRecognition-1/src/
Dmain.c47 static void DrawLine(int x1, int y1, int x2, int y2, u16 col);
365 void DrawLine(int x1, int y1, int x2, int y2, u16 col) in DrawLine() argument
372 SDK_ASSERT(x1 >= 0 && y1 >= 0 && x2 >= 0 && y2 >= 0); in DrawLine()
375 if (x1 <= x2) in DrawLine()
380 wx = (u16)(x2 - x1); // Width in DrawLine()
384 sx = (u16)x2; in DrawLine()
387 wx = (u16)(x1 - x2); // Width in DrawLine()
/TwlSDK-5.1.0/include/nitro/prc/
Dtypes.h72 s16 x2, y2; // Lower-right coordinate of bounding box member
/TwlSDK-5.1.0/build/demos/prc/characterRecognition-2/src/
Dmain.c49 static void DrawLine(int x1, int y1, int x2, int y2, u16 col);
631 void DrawLine(int x1, int y1, int x2, int y2, u16 col) in DrawLine() argument
638 SDK_ASSERT(x1 >= 0 && y1 >= 0 && x2 >= 0 && y2 >= 0); in DrawLine()
641 if (x1 <= x2) in DrawLine()
646 wx = (u16)(x2 - x1); // Width in DrawLine()
650 sx = (u16)x2; in DrawLine()
653 wx = (u16)(x1 - x2); // Width in DrawLine()
/TwlSDK-5.1.0/build/libraries/spi/ARM9/src/
Dtp.c419 u16 x1, y1, x2, y2, dx1, dy1, dx2, dy2; in TP_GetUserInfo() local
427 x2 = info->ncd.tp.raw_x2; in TP_GetUserInfo()
433 if ((x1 == 0 && x2 == 0 && y1 == 0 && y2 == 0) || in TP_GetUserInfo()
434 (TP_CalcCalibrateParam(calibrate, x1, y1, dx1, dy1, x2, y2, dx2, dy2) != 0)) in TP_GetUserInfo()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/2D_CharBg_Direct/pictures/
Dpicture_256_256.ppm61 t0x25�6|4o.a(
95 …8.��ڥ������������������������������������������������������ͽc9!h$k,q/u0x2z3z2z2y2z3r/k,…
101 …Ц������������������������������������������������������cD-f!i,r/y2{3w1x2�65}4z3p/o.d)
130 v1x2z3t0j,e*S# K
226 L �8�8|3x2z3s/m-q/b(
234 ���_<�ĂدrkO1" )n-�7�6{4t0x1x2t0w2q/p.j,\'
247 …|�؊�ԇ�Ѕ�х��ָuΰp��h��Y��Q�nIcS;�mJ^E- �&�[;��}�À�}R0 $O �6�5v1x2|3w1l-g+q/p.n.…
265 p/x2�6{3q/t0d)
291 m-o.z3u1r/o.x2w1s0r/l,a(
305 x2~4�8�6w3s1r0n.m-b)\& ]&
/TwlSDK-5.1.0/build/demos/gx/UnitTours/2D_BmpBg_MainRam/pictures/
Dpicture_256_192_c.ppm327 …}oZQ>���������������e[S a]L���tmcl\K��zc_P?;/RPDG</��������ت��tgXZV?aZF��x2/)SL=p]O2'!<6&XQ=ZRBi…