Home
last modified time | relevance | path

Searched refs:x1 (Results 1 – 22 of 22) 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()
99 max = x1; in DrawLine()
104 min = x1; in DrawLine()
112 py = (u16)(((px - min) * (y2 - y1)) / (x2 - x1) + base); in DrawLine()
130 base = x1; in DrawLine()
136 px = (u16)((py - min) * (x2 - x1) / (y2 - y1) + base); in DrawLine()
/TwlSDK-5.1.0/include/nitro/gx/
Dg2.h105 static void G2_SetBG2Affine(const MtxFx22 *mtx, int centerX, int centerY, int x1, int y1);
106 static void G2_SetBG3Affine(const MtxFx22 *mtx, int centerX, int centerY, int x1, int y1);
112 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);
142 static void G2S_SetBG2Affine(const MtxFx22 *mtx, int centerX, int centerY, int x1, int y1);
143 static void G2S_SetBG3Affine(const MtxFx22 *mtx, int centerX, int centerY, int x1, int y1);
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);
174 void G2x_SetBGyAffine_(u32 addr, const MtxFx22 *mtx, int centerX, int centerY, int x1, int y1);
454 static inline void G2_SetWnd0Position(int x1, int y1, int x2, int y2) in G2_SetWnd0Position() argument
[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/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()
161 reg_CAM_SOFS = REG_CAM_SOFS_FIELD( y1, x1 ); in CAMERA_SetTrimmingParamsCore()
179 void CAMERA_GetTrimmingParamsCore(u16* x1, u16* y1, u16* x2, u16* y2) in CAMERA_GetTrimmingParamsCore() argument
181 *x1 = (u16)((reg_CAM_SOFS & REG_CAM_SOFS_HOFS_MASK) >> REG_CAM_SOFS_HOFS_SHIFT); in CAMERA_GetTrimmingParamsCore()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/RamOverFlow/src/
Dmain.c73 int x0, z0, x1, z1; in Circle() local
87 x1 = FX_SinIdx(a); in Circle()
92 x1 = FX_SinIdx(0); in Circle()
111 x1r0 = (x1 * r0) >> 12; in Circle()
/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
587 boundingBox.x1 = PRC_LARGE_ENOUGH_X; in PRCi_ExtractInputPattern_Common()
599 if (point->x < boundingBox.x1) in PRCi_ExtractInputPattern_Common()
600 boundingBox.x1 = 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()
877 data->wholeBoundingBox.x1 = PRC_LARGE_ENOUGH_X; in PRCi_CalcExtraValues_Common()
916 boundingBox.x1 = point->x; in PRCi_CalcExtraValues_Common()
927 if (point->x < boundingBox.x1) in PRCi_CalcExtraValues_Common()
[all …]
Dprc_resample.c542 int x1, y1, x2, y2, xDir, yDir, offs; in PRC_ResampleStrokes_Recursive() local
560 x1 = inputPoints[p1].x; // Starting 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()
377 sx = (u16)x1; in DrawLine()
380 wx = (u16)(x2 - x1); // Width in DrawLine()
387 wx = (u16)(x1 - x2); // Width in DrawLine()
/TwlSDK-5.1.0/build/libraries/gx/ARM9/src/
Dg2.c30 void G2x_SetBGyAffine_(u32 addr, const MtxFx22 *mtx, int centerX, int centerY, int x1, int y1) in G2x_SetBGyAffine_() argument
47 dx = x1 - centerX; 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/include/nitro/prc/
Dtypes.h71 s16 x1, y1; // Upper-left 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()
643 sx = (u16)x1; in DrawLine()
646 wx = (u16)(x2 - x1); // Width 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
423 x1 = info->ncd.tp.raw_x1; 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.ppm106 …����������������������������������������������������qs_fm* i& l* u0s/t0}4}4x1}4u0m-o.b)
122 …��ɦ������������������������������������������������y�o]�c4լq�Έ�z��Q|=u. x1p/o.v1p.h+d*S"…
234 ���_<�ĂدrkO1" )n-�7�6{4t0x1x2t0w2q/p.j,\'
276 o.d*o.w1v1x1r/w1p.v1}4o.d)\& P! O!
/TwlSDK-5.1.0/build/demos/gx/UnitTours/2D_BmpBg_MainRam/pictures/
Dpicture_256_192_a.ppm5 …$g:#bC+hkJ��q�qd�R@�G3rI:qRCy^FYA�[>yeI�v`�pY������꣤㩡�������������������:/x1"X=3u}�ˏ��G:�<(_9(c9$…