| /RvlSDK-3.2.2/build/libraries/mtx/src/ |
| D | quat.c | 80 void C_QUATAdd( const Quaternion *p, const Quaternion *q, Quaternion *r ) in C_QUATAdd() argument 84 ASSERTMSG( ( r != 0 ), QUAT_ADD_3 ); in C_QUATAdd() 86 r->x = p->x + q->x; in C_QUATAdd() 87 r->y = p->y + q->y; in C_QUATAdd() 88 r->z = p->z + q->z; in C_QUATAdd() 89 r->w = p->w + q->w; in C_QUATAdd() 102 register Quaternion * r in PSQUATAdd() argument 112 psq_st rxy, 0(r), 0, 0 in PSQUATAdd() 117 psq_st rzw, 8(r), 0, 0 in PSQUATAdd() 136 void C_QUATSubtract( const Quaternion *p, const Quaternion *q, Quaternion *r ) in C_QUATSubtract() argument [all …]
|
| /RvlSDK-3.2.2/build/demos/gxdemo/src/Indirect/ |
| D | ind-pseudo-3d.c | 66 void adjustPoint(coord height[HFH][HFW], u16 r, u16 c, f32 h); 113 void adjustPoint(coord height[HFH][HFW], u16 r, u16 c, f32 h) in adjustPoint() argument 123 height[r][c].z = h; in adjustPoint() 130 u16 r, c; in createHeightField() local 139 for(r=0; r<HFH; r++) in createHeightField() 143 height[r][c].x = (f32) c - HFW/2.0f; in createHeightField() 144 height[r][c].y = (f32) r - HFH/2.0f; in createHeightField() 145 height[r][c].z = (f32) 0; in createHeightField() 146 height[r][c].nx = (f32) 0; in createHeightField() 147 height[r][c].ny = (f32) 0; in createHeightField() [all …]
|
| /RvlSDK-3.2.2/include/revolution/os/ |
| D | OSFastCast.h | 234 register f32 r; in __OSu8tof32() local 237 psq_l r, 0(in), 1, OS_FASTCAST_U8 in __OSu8tof32() 239 return r; in __OSu8tof32() 250 register f32 r; in __OSu16tof32() local 253 psq_l r, 0(in), 1, OS_FASTCAST_U16 in __OSu16tof32() 255 return r; in __OSu16tof32() 266 register f32 r; in __OSs8tof32() local 269 psq_l r, 0(in), 1, OS_FASTCAST_S8 in __OSs8tof32() 271 return r; in __OSs8tof32() 282 register f32 r; in __OSs16tof32() local [all …]
|
| /RvlSDK-3.2.2/build/tools/TexConv/src/ |
| D | tga.cpp | 315 u16 r, u16Tmp; in CreateTgaColorLayer() local 366 case 1: r = (u16)(*pixelPtr); break; in CreateTgaColorLayer() 368 case 2: r = (u16)( *(u16*)pixelPtr ); break; in CreateTgaColorLayer() 385 r = (u16)( ((u16Tmp & 0x7C00) >> 7) | ((u16Tmp & 0x7000) >> 12) ); in CreateTgaColorLayer() 393 r = (u16)( *(pixelPtr + 2) ); in CreateTgaColorLayer() 413 r = (u16)(*pixelPtr); in CreateTgaColorLayer() 414 g = (u8)r; in CreateTgaColorLayer() 415 b = (u8)r; in CreateTgaColorLayer() 422 r = (u16)( ((u16Tmp & 0x7C00) >> 7) | ((u16Tmp & 0x7000) >> 12) ); in CreateTgaColorLayer() 423 r += (u16)( ((u16Tmp & 0x03E0) >> 2) | ((u16Tmp & 0x0380) >> 7) ); in CreateTgaColorLayer() [all …]
|
| /RvlSDK-3.2.2/include/revolution/ |
| D | mtx.h | 209 #define MTXRowCol(m,r,c) ((m)[(r)][(c)]) argument 374 void C_MTXFrustum ( Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f ); 376 void C_MTXOrtho ( Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f ); 388 void C_MTXLightFrustum ( Mtx m, f32 t, f32 b, f32 l, f32 r, f32 n, 395 void C_MTXLightOrtho ( Mtx m, f32 t, f32 b, f32 l, f32 r, f32 scaleS, 468 void C_QUATAdd ( const Quaternion *p, const Quaternion *q, Quaternion *r ); 469 void C_QUATSubtract ( const Quaternion *p, const Quaternion *q, Quaternion *r ); 471 void C_QUATDivide ( const Quaternion *p, const Quaternion *q, Quaternion *r ); 472 void C_QUATScale ( const Quaternion *q, Quaternion *r, f32 scale ); 476 void C_QUATExp ( const Quaternion *q, Quaternion *r ); [all …]
|
| /RvlSDK-3.2.2/build/demos/videmo/src/ |
| D | cross-color.c | 115 static void YuvCircle(s32 posX, s32 posY, s32 width, s32 r, u32 *xfb, u8 luma, u8 u, u8 v) in YuvCircle() argument 119 x = r; in YuvCircle() 121 f = -2 * r + 3; in YuvCircle() 158 s32 r; in DrawCircles() local 168 for(r=2; r<yoffset-3; r+=3) in DrawCircles() 170 YuvCircle(xoffset, yoffset, width, r, (u32 *)xfb, luma, u, v); in DrawCircles()
|
| D | bmp.c | 94 u8 r, g, b; in bmpToYCbCr() local 132 r = palette[paletteNum].red; in bmpToYCbCr() 139 r = palette[paletteNum].red; in bmpToYCbCr() 146 r = palette[paletteNum].red; in bmpToYCbCr() 155 r = *(imageData + 2); in bmpToYCbCr() 164 Y = 0.257 * r + 0.504 * g + 0.098 * b + 16.0 + 0.5; in bmpToYCbCr() 165 Cb = -0.148 * r - 0.291 * g + 0.439 * b + 128.0 + 0.5; in bmpToYCbCr() 166 Cr = 0.439 * r - 0.368 * g - 0.071 * b + 128.0 + 0.5; in bmpToYCbCr()
|
| /RvlSDK-3.2.2/include/revolution/gd/ |
| D | GDVert.h | 187 #define GDPackedRGB565(r,g,b) \ argument 188 ((u16)((((r)&0xf8)<<8)|(((g)&0xfc)<<3)|(((b)&0xf8)>>3))) 189 #define GDPackedRGBA4(r,g,b,a) \ argument 190 ((u16)((((r)&0xf0)<<8)|(((g)&0xf0)<<4)|(((b)&0xf0) )|(((a)&0xf0)>>4))) 191 #define GDPackedRGB5A3(r,g,b,a) \ argument 193 ((((r)&0xf8)<<7)|(((g)&0xf8)<<2)|(((b)&0xf8)>>3)|(1<<15)): \ 194 ((((r)&0xf0)<<4)|(((g)&0xf0) )|(((b)&0xf0)>>4)|(((a)&0xe0)<<7))))
|
| /RvlSDK-3.2.2/build/demos/gxdemo/src/TexGen/ |
| D | spheremap.c | 89 f32 r = 1.0f, r1, r2, z1, z2; in genMapSphere() local 118 r2 = r*sinf(theta); in genMapSphere() 119 z2 = r*cosf(theta); in genMapSphere() 121 n1z = 2*r*r-1.0F; in genMapSphere() 138 r1 = r*sinf(M_PI*(i-1)/nlat); in genMapSphere() 139 z1 = r*cosf(M_PI*(i-1)/nlat); in genMapSphere() 140 r2 = r*sinf(theta); in genMapSphere() 141 z2 = r*cosf(theta); in genMapSphere() 270 color.r = color.g = color.b = color.a = 0xff; in drawSphereMap() 274 color.r = color.g = color.b = color.a = 0x0; in drawSphereMap()
|
| D | parabolicmap.c | 119 f32 r = 1.0f, r1, r2, z1, z2; in genMapSphere() local 146 r2 = r*sinf(theta); in genMapSphere() 147 z2 = r*cosf(theta); in genMapSphere() 149 n1z = 2*r*r; in genMapSphere() 167 r1 = r*sinf(M_PI*(i-1)/nlat); in genMapSphere() 168 z1 = r*cosf(M_PI*(i-1)/nlat); in genMapSphere() 169 r2 = r*sinf(theta); in genMapSphere() 170 z2 = r*cosf(theta); in genMapSphere() 305 color.r = color.g = color.b = color.a = 0xff; in drawParaboloidMap() 309 color.r = color.g = color.b = color.a = 0x0; in drawParaboloidMap()
|
| /RvlSDK-3.2.2/build/demos/hio2demo/src/ |
| D | dual-main.c | 133 gxColor.r = gxColor.g = gxColor.b = 0; in myEventCallback() 144 gxColor.r = rgbBuffer[DUAL_DATA_IDX_RED]; in myEventCallback() 216 gxColor.r = rgbBuffer[DUAL_DATA_IDX_RED]; in main() 225 rgbBuffer[DUAL_DATA_IDX_RED] = gxColor.r; in main() 349 gxColor.r = gxColor.g = gxColor.b = 0; in myHioExit() 360 Y = 0.257 * gxColor.r + 0.504 * gxColor.g + 0.098 in myMakeColor() 362 Cb = -0.148 * gxColor.r - 0.291 * gxColor.g + 0.439 in myMakeColor() 364 Cr = 0.439 * gxColor.r - 0.368 * gxColor.g - 0.071 in myMakeColor() 411 gxColor.r, gxColor.r); in myDispInfo()
|
| /RvlSDK-3.2.2/build/demos/gxdemo/src/Management/ |
| D | mgt-fifo-brkpt.c | 92 Mtx r; // rotation matrix in main() local 150 MTXRotDeg( r, 'Y', deg++); in main() 151 MTXConcat(v, r, r); in main() 152 GXLoadPosMtxImm(r, GX_PNMTX0); in main()
|
| /RvlSDK-3.2.2/include/revolution/gx/ |
| D | GXStruct.h | 133 u8 r, member 142 s16 r, g, b, a; // s10-bit components for Tev constant color member 226 u16 r[10]; member
|
| D | GXVert.h | 412 #define GXPackedRGB565(r,g,b) \ argument 413 ((u16)((((r)&0xf8)<<8)|(((g)&0xfc)<<3)|(((b)&0xf8)>>3))) 414 #define GXPackedRGBA4(r,g,b,a) \ argument 415 ((u16)((((r)&0xf0)<<8)|(((g)&0xf0)<<4)|(((b)&0xf0) )|(((a)&0xf0)>>4))) 416 #define GXPackedRGB5A3(r,g,b,a) \ argument 418 ((((r)&0xf8)<<7)|(((g)&0xf8)<<2)|(((b)&0xf8)>>3)|(1<<15)): \ 419 ((((r)&0xf0)<<4)|(((g)&0xf0) )|(((b)&0xf0)>>4)|(((a)&0xe0)<<7))))
|
| /RvlSDK-3.2.2/build/demos/kpadOlddemo/src/ |
| D | sample.c | 320 f32 r = radius * 1.4f ; // Cross length in draw_grid() local 322 draw_arrow( ox-r,oy, ox+r,oy, clr, 3 ) ; // Horizontal line in draw_grid() 323 draw_arrow( ox,oy+r, ox,oy-r, clr, 3 ) ; // Vertical line in draw_grid() 499 f32 x1,x2, y, r ; in draw_sample() local 610 r = 60.0f ; // Common radius in draw_sample() 613 draw_grid( x1, y, r, smoke_clr ) ; in draw_sample() 614 draw_grid( x2, y, r, smoke_clr ) ; in draw_sample() 618 draw_acc( x1, y, r, kpads[0][cx].acc.x, -kpads[0][cx].acc.y ) ; in draw_sample() 619 draw_acc( x2, y, r, kpads[0][cx].acc.z, -kpads[0][cx].acc.y ) ; in draw_sample() 621 draw_acc2( x1, y, r, kpads[0][cx].ex_status.fs.acc.x, -kpads[0][cx].ex_status.fs.acc.y ) ; in draw_sample() [all …]
|
| /RvlSDK-3.2.2/build/demos/hio2demo/vc++/dual/ |
| D | double-common.rc | 37 "#include ""afxres.h""\r\n" 43 "#define _AFX_NO_SPLITTER_RESOURCES\r\n" 44 "#define _AFX_NO_OLE_RESOURCES\r\n" 45 "#define _AFX_NO_TRACKER_RESOURCES\r\n" 46 "#define _AFX_NO_PROPERTY_RESOURCES\r\n" 47 "\r\n" 48 "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" 49 "LANGUAGE 9, 1\r\n" 50 "#pragma code_page(1252)\r\n" 51 "#include ""res\\double-common.rc2"" // non-Microsoft Visual C++ edited resources\r\n" [all …]
|
| D | dual.rc | 37 "#include ""afxres.h""\r\n" 43 "#define _AFX_NO_SPLITTER_RESOURCES\r\n" 44 "#define _AFX_NO_OLE_RESOURCES\r\n" 45 "#define _AFX_NO_TRACKER_RESOURCES\r\n" 46 "#define _AFX_NO_PROPERTY_RESOURCES\r\n" 47 "\r\n" 48 "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" 49 "LANGUAGE 9, 1\r\n" 50 "#pragma code_page(1252)\r\n" 51 "#include ""res\\dual.rc2"" // non-Microsoft Visual C++ edited resources\r\n" [all …]
|
| /RvlSDK-3.2.2/build/demos/hio2demo/vc++/multi/ |
| D | multi.rc | 37 "#include ""afxres.h""\r\n" 43 "#define _AFX_NO_SPLITTER_RESOURCES\r\n" 44 "#define _AFX_NO_OLE_RESOURCES\r\n" 45 "#define _AFX_NO_TRACKER_RESOURCES\r\n" 46 "#define _AFX_NO_PROPERTY_RESOURCES\r\n" 47 "\r\n" 48 "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" 49 "LANGUAGE 9, 1\r\n" 50 "#pragma code_page(1252)\r\n" 51 "#include ""res\\multi.rc2"" // non-Microsoft Visual C++ edited resources\r\n" [all …]
|
| /RvlSDK-3.2.2/build/libraries/mix/src/ |
| D | mix.c | 303 channel->r = __MIX_DPL2_front[ipan]; in __MIXSetPan() 312 channel->r = __MIXPanTable[ipan]; in __MIXSetPan() 676 c->vR = __MIXGetVolume(c->fader + c->r + c->f); in MIXInitChannel() 683 c->vAR = __MIXGetVolume(c->auxA + c->r + c->f); in MIXInitChannel() 690 c->vAR = __MIXGetVolume(c->fader + c->auxA + c->r + c->f); in MIXInitChannel() 698 c->vBR = __MIXGetVolume(c->auxB + c->r + c->f); in MIXInitChannel() 705 c->vBR = __MIXGetVolume(c->fader + c->auxB + c->r + c->f); in MIXInitChannel() 713 c->vCR = __MIXGetVolume(c->auxC + c->r + c->f); in MIXInitChannel() 720 c->vCR = __MIXGetVolume(c->fader + c->auxC + c->r + c->f); in MIXInitChannel() 730 c->vR = __MIXGetVolume(c->fader + c->r + c->f); in MIXInitChannel() [all …]
|
| /RvlSDK-3.2.2/build/libraries/tc/src/ |
| D | TCMipmap.cpp | 320 u16 r; in TCBoxFilter() local 333 TCGetLayerValue( srcC, col, row, &r, &g, &b ); in TCBoxFilter() 340 rAcc += (f64)( r * a ); in TCBoxFilter() 345 rSum += (f64)r; // added in TCBoxFilter() 351 r = g = b = 0; in TCBoxFilter() 355 r = (u16)( ( rAcc / aAcc ) + 0.5f ); in TCBoxFilter() 361 r = (u16)( ( rSum / (boxWid * boxHgt)) + 0.5f ); in TCBoxFilter() 367 TCSetLayerValue( dstC, dstCol, dstRow, r, g, b ); in TCBoxFilter()
|
| D | TCPaletteList.cpp | 100 void TCSetPalTableValue ( TCPalTable* ptPtr, u32 index, u8 r, u8 g, u8 b, u8 a ) in TCSetPalTableValue() argument 107 rgbaPtr[ID_R] = r; in TCSetPalTableValue() 140 u8 r, g, b, a; in TCSetPalettes() local 159 TCGetPalTableValue( dfPtr->palPtr, i, &r, &g, &b, &a ); in TCSetPalettes() 160 TCSetPalTableValue( plPtr->palPtr, i, r, g, b, a ); in TCSetPalettes()
|
| D | TCCreateS3.cpp | 115 u16 r, a; in TCConvertToS3() local 171 TCGetLayerValue( lyColor, col, row, &r, &g, &b ); in TCConvertToS3() 180 pClr->cRed = (char)r; in TCConvertToS3()
|
| /RvlSDK-3.2.2/build/libraries/gd/src/ |
| D | GDLight.c | 103 f32 a0, a1, a2, r, d, cr; in GDSetLightSpot() local 109 r = cutoff * PI / 180.0F; in GDSetLightSpot() 110 cr = cosf(r); in GDSetLightSpot() 226 (((u32)color.r << 24) | in GDSetLightColor() 382 (((u32)color.r << 24) | in GDSetChanAmbColor() 402 (((u32)color.r << 24) | in GDSetChanMatColor()
|
| /RvlSDK-3.2.2/build/libraries/demo/src/ |
| D | DEMOWin.c | 444 void DEMOWinSetWindowColor(DEMOWinInfo *handle, u32 item, u8 r, u8 g, u8 b, u8 a) in DEMOWinSetWindowColor() argument 452 handle->cap.r = r; in DEMOWinSetWindowColor() 459 handle->border.r = r; in DEMOWinSetWindowColor() 466 handle->bkgnd.r = r; in DEMOWinSetWindowColor() 473 handle->bkgnd.r = __DEF_BKGND_R; in DEMOWinSetWindowColor() 478 handle->cap.r = __DEF_CAP_R; in DEMOWinSetWindowColor() 483 handle->border.r = __DEF_BORDER_R; in DEMOWinSetWindowColor() 927 GXColor4u8( ptr->bkgnd.r, ptr->bkgnd.g, ptr->bkgnd.b, ptr->bkgnd.a ); in DEMOWinRefresh() 930 GXColor4u8( ptr->bkgnd.r, ptr->bkgnd.g, ptr->bkgnd.b, ptr->bkgnd.a ); in DEMOWinRefresh() 933 GXColor4u8( ptr->bkgnd.r, ptr->bkgnd.g, ptr->bkgnd.b, ptr->bkgnd.a ); in DEMOWinRefresh() [all …]
|
| /RvlSDK-3.2.2/build/demos/kpaddemo/src/ |
| D | swing.c | 339 f32 r = 200.0f ; // Length of the arrow in draw_sample() local 348 draw_arrow( r*dir_nrm.x, r*dir_nrm.y, -r*dir_nrm.x, -r*dir_nrm.y, clr, 10 ) ; in draw_sample()
|