Home
last modified time | relevance | path

Searched refs:sy (Results 1 – 25 of 26) sorted by relevance

12

/TwlSDK-5.4/build/demos/wm/wep-1/src/
Dgraphics.c75 void drawPseudo2DTexQuad(int sx, int sy, int width, int height, int texw, int texh) in drawPseudo2DTexQuad() argument
78 sy -= 96; in drawPseudo2DTexQuad()
84 G3_Vtx((fx16)(sx * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
88 G3_Vtx((fx16)((sx + width) * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
92 G3_Vtx((fx16)((sx + width) * PSEUDO2D_ONE), (fx16)((sy + height) * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
96 G3_Vtx((fx16)(sx * PSEUDO2D_ONE), (fx16)((sy + height) * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
100 void drawPseudo2DColorQuad(int sx, int sy, int width, int height, GXRgb color) in drawPseudo2DColorQuad() argument
103 sy -= 96; in drawPseudo2DColorQuad()
107 G3_Vtx((fx16)(sx * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DColorQuad()
108 G3_Vtx((fx16)((sx + width) * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DColorQuad()
[all …]
/TwlSDK-5.4/build/demos/wm/dataShare-Model/src/
Dgraphics.c76 void drawPseudo2DTexQuad(int sx, int sy, int width, int height, int texw, int texh) in drawPseudo2DTexQuad() argument
79 sy -= 96; in drawPseudo2DTexQuad()
85 G3_Vtx((fx16)(sx * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
89 G3_Vtx((fx16)((sx + width) * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
93 G3_Vtx((fx16)((sx + width) * PSEUDO2D_ONE), (fx16)((sy + height) * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
97 G3_Vtx((fx16)(sx * PSEUDO2D_ONE), (fx16)((sy + height) * PSEUDO2D_ONE), 0); in drawPseudo2DTexQuad()
101 void drawPseudo2DColorQuad(int sx, int sy, int width, int height, GXRgb color) in drawPseudo2DColorQuad() argument
104 sy -= 96; in drawPseudo2DColorQuad()
108 G3_Vtx((fx16)(sx * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DColorQuad()
109 G3_Vtx((fx16)((sx + width) * PSEUDO2D_ONE), (fx16)(sy * PSEUDO2D_ONE), 0); in drawPseudo2DColorQuad()
[all …]
/TwlSDK-5.4/build/demos/gx/UnitTours/DEMOLib/src/
DDEMOBitmap.c486 void DEMOiDrawLine(int sx, int sy, int tx, int ty, GXRgb color) in DEMOiDrawLine() argument
494 tmp = sy, sy = ty, ty = tmp; in DEMOiDrawLine()
499 int wy = ty - sy; in DEMOiDrawLine()
506 tmp = sy + 1, sy = ty + 1, ty = tmp; in DEMOiDrawLine()
508 if ((sx >= 0) && (sx < GX_LCD_SIZE_X) && (sy < GX_LCD_SIZE_Y)) in DEMOiDrawLine()
510 if (sy < 0) in DEMOiDrawLine()
512 wy += sy, sy = 0; in DEMOiDrawLine()
514 if (wy > GX_LCD_SIZE_Y - sy) in DEMOiDrawLine()
516 wy = GX_LCD_SIZE_Y - sy; in DEMOiDrawLine()
518 dst = &context->bitmap_frame[sx + sy * GX_LCD_SIZE_X]; in DEMOiDrawLine()
[all …]
/TwlSDK-5.4/build/demos/wm/dataShare-Model/include/
Dgraphics.h25 extern void drawPseudo2DTexQuad(int sx, int sy, int width, int height, int texw, int texh);
26 extern void drawPseudo2DColorQuad(int sx, int sy, int width, int height, GXRgb color);
/TwlSDK-5.4/build/demos/wm/wep-1/include/
Dgraphics.h25 extern void drawPseudo2DTexQuad(int sx, int sy, int width, int height, int texw, int texh);
26 extern void drawPseudo2DColorQuad(int sx, int sy, int width, int height, GXRgb color);
/TwlSDK-5.4/build/demos/ctrdg/backup-1/src/
Ddraw.c290 void DrawLine(int sx, int sy, int tx, int ty, RGB555 col) in DrawLine() argument
300 tmp = sy, sy = ty, ty = tmp; in DrawLine()
302 wx = tx - sx, wy = ty - sy; in DrawLine()
309 tmp = sy + 1, sy = ty + 1, ty = tmp; in DrawLine()
311 if (!IsBoundX(pc, sx) || (sy >= pc->clip.t.y)) in DrawLine()
315 if (sy < pc->clip.o.y) in DrawLine()
316 wy += sy, sy = pc->clip.o.y; in DrawLine()
317 if (wy > pc->clip.t.y - sy) in DrawLine()
318 wy = pc->clip.t.y - sy; in DrawLine()
319 p = GetSurface(sx, sy); in DrawLine()
[all …]
/TwlSDK-5.4/build/demos/gx/UnitTours/DEMOLib/include/
DDEMOBitmap.h41 #define DEMODrawLine(sx, sy, tx, ty, color) DEMOiDrawLine(sx, sy, tx, ty, DEMOVerifyGXRgb(color)) argument
171 void DEMOiDrawLine(int sx, int sy, int tx, int ty, GXRgb color);
/TwlSDK-5.4/build/demos/prc/characterRecognition-1/src/
Dmain.c50 void DrawStrokes(const PRCStrokes *strokes, int sx, int sy);
367 u16 sx, sy, ey, wx, wy; in DrawLine() local
378 sy = (u16)y1; in DrawLine()
385 sy = (u16)y2; in DrawLine()
390 point += sy * VRAM_LINE_SIZE + sx; in DrawLine()
391 if (sy <= ey) in DrawLine()
394 wy = (u16)(ey - sy); // Height in DrawLine()
436 wy = (u16)(sy - ey); // Height in DrawLine()
487 void DrawStrokes(const PRCStrokes *strokes, int sx, int sy) in DrawStrokes() argument
502 PutDot(sx + point->x, sy + point->y, 1); in DrawStrokes()
[all …]
/TwlSDK-5.4/include/nitro/hw/ARM9/
Dioreg_G3.h534 #define REG_G3_NORMAL_FIELD( sz, nz, sy, ny, sx, nx ) \ argument
538 ((u32)(sy) << REG_G3_NORMAL_SY_SHIFT) | \
610 #define REG_G3_VTX_16_FIELD( sy, int_y, decimal_y, sx, int_x, decimal_x ) \ argument
612 ((u32)(sy) << REG_G3_VTX_16_SY_SHIFT) | \
660 #define REG_G3_VTX_10_FIELD( sz, int_z, decimal_z, sy, int_y, decimal_y, sx, int_x, decimal_x ) \ argument
665 ((u32)(sy) << REG_G3_VTX_10_SY_SHIFT) | \
701 #define REG_G3_VTX_XY_FIELD( sy, int_y, decimal_y, sx, int_x, decimal_x ) \ argument
703 ((u32)(sy) << REG_G3_VTX_XY_SY_SHIFT) | \
777 #define REG_G3_VTX_YZ_FIELD( sz, int_z, decimal_z, sy, int_y, decimal_y ) \ argument
782 ((u32)(sy) << REG_G3_VTX_YZ_SY_SHIFT) | \
[all …]
Dioreg_G3X.h3362 #define REG_G3X_POS_RESULT_Y_FIELD( sy, integer_y, decimal_y ) \ argument
3364 ((u32)(sy) << REG_G3X_POS_RESULT_Y_SY_SHIFT) | \
3454 #define REG_G3X_VEC_RESULT_Y_FIELD( sy, integer_y, decimal_y ) \ argument
3456 ((u32)(sy) << REG_G3X_VEC_RESULT_Y_SY_SHIFT) | \
/TwlSDK-5.4/include/twl/hw/ARM9/
Dioreg_G3.h534 #define REG_G3_NORMAL_FIELD( sz, nz, sy, ny, sx, nx ) \ argument
538 ((u32)(sy) << REG_G3_NORMAL_SY_SHIFT) | \
610 #define REG_G3_VTX_16_FIELD( sy, int_y, decimal_y, sx, int_x, decimal_x ) \ argument
612 ((u32)(sy) << REG_G3_VTX_16_SY_SHIFT) | \
660 #define REG_G3_VTX_10_FIELD( sz, int_z, decimal_z, sy, int_y, decimal_y, sx, int_x, decimal_x ) \ argument
665 ((u32)(sy) << REG_G3_VTX_10_SY_SHIFT) | \
701 #define REG_G3_VTX_XY_FIELD( sy, int_y, decimal_y, sx, int_x, decimal_x ) \ argument
703 ((u32)(sy) << REG_G3_VTX_XY_SY_SHIFT) | \
777 #define REG_G3_VTX_YZ_FIELD( sz, int_z, decimal_z, sy, int_y, decimal_y ) \ argument
782 ((u32)(sy) << REG_G3_VTX_YZ_SY_SHIFT) | \
[all …]
Dioreg_G3X.h3362 #define REG_G3X_POS_RESULT_Y_FIELD( sy, integer_y, decimal_y ) \ argument
3364 ((u32)(sy) << REG_G3X_POS_RESULT_Y_SY_SHIFT) | \
3454 #define REG_G3X_VEC_RESULT_Y_FIELD( sy, integer_y, decimal_y ) \ argument
3456 ((u32)(sy) << REG_G3X_VEC_RESULT_Y_SY_SHIFT) | \
/TwlSDK-5.4/build/demos/prc/characterRecognition-2/src/
Dmain.c52 void DrawStrokes(const PRCStrokes *strokes, int sx, int sy);
633 u16 sx, sy, ey, wx, wy; in DrawLine() local
644 sy = (u16)y1; in DrawLine()
651 sy = (u16)y2; in DrawLine()
656 point += sy * VRAM_LINE_SIZE + sx; in DrawLine()
657 if (sy <= ey) in DrawLine()
660 wy = (u16)(ey - sy); // Height in DrawLine()
702 wy = (u16)(sy - ey); // Height in DrawLine()
753 void DrawStrokes(const PRCStrokes *strokes, int sx, int sy) in DrawStrokes() argument
768 PutDot(sx + point->x, sy + point->y, 1); in DrawStrokes()
[all …]
/TwlSDK-5.4/build/demos/math/fft-2/src/
Dmain.c114 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
115 static void DrawBar(s16 sx, s16 sy, s16 ex, s16 ey);
116 static void DrawBarWithColor(s16 sx, s16 sy, s16 ex, s16 ey, u32 c);
552 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
555 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
583 static void DrawBar(s16 sx, s16 sy, s16 ex, s16 ey) in DrawBar() argument
586 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawBar()
617 static void DrawBarWithColor(s16 sx, s16 sy, s16 ex, s16 ey, u32 c) in DrawBarWithColor() argument
620 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawBarWithColor()
/TwlSDK-5.4/build/demos/spi/spiMonkey/src/
Dmain.c49 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey, GXRgb color);
246 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey, GXRgb color) in DrawLine() argument
254 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos/spi/pmAmpGain/src/
Dmain.c58 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
544 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
547 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos/spi/mic-1/src/
Dmain.c67 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
342 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
345 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos/spi/spiMonkey2/src/
Dmain.c61 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey, GXRgb color);
398 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey, GXRgb color) in DrawLine() argument
406 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos.TWL/spi/pmAmpGainLevel/src/
Dmain.c57 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
652 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
655 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos/spi/mic-2/src/
Dmain.c77 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
541 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
546 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos.TWL/spi/mic-3/src/
Dmain.c61 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
836 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
839 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos/ctrdg/backup-1/include/
Ddraw.h138 void DrawLine(int sx, int sy, int tx, int ty, RGB555 col);
/TwlSDK-5.4/build/demos.TWL/spi/mic-4/src/
Dmain.c72 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
942 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
945 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos.TWL/snd/IIRFilterdemo-mic/src/
Dmain.c73 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey);
983 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey) in DrawLine() argument
986 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()
/TwlSDK-5.4/build/demos.TWL/spi/spiMonkey3/src/
Dmain.c88 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey, GXRgb color);
892 static void DrawLine(s16 sx, s16 sy, s16 ex, s16 ey, GXRgb color) in DrawLine() argument
895 fx16 fsy = (fx16)(((96 - sy) * 0x1000) / 96); in DrawLine()

12