Home
last modified time | relevance | path

Searched refs:s16 (Results 1 – 25 of 131) sorted by relevance

123456

/RvlSDK-2.1/include/demo/
DDEMOPuts.h56 extern void DEMOPuts ( s16, s16, s16, char* );
57 extern void DEMOPrintf ( s16, s16, s16, char*, ... );
61 extern void DEMOSetROMFontSize ( s16 size, s16 space );
62 extern void DEMOGetROMFontSize ( s16* size, s16* space );
66 extern int DEMORFPuts ( s16 x, s16 y, s16 z, char* string );
67 extern int DEMORFPutsEx ( s16 x, s16 y, s16 z, char* string, s16 maxWidth, int …
68 extern int DEMORFPrintf ( s16 x, s16 y, s16 z, char* fmt, ... );
/RvlSDK-2.1/build/libraries/demo/src/
DDEMOPuts.c325 void DEMOPuts( s16 x, s16 y, s16 z, char* string ) in DEMOPuts()
360 GXPosition3s16( (s16)(i*8+x ), (s16)(y ), z ); in DEMOPuts()
361 GXTexCoord2s16( (s16)(s ), (s16)(t ) ); in DEMOPuts()
362 GXPosition3s16( (s16)(i*8+x+8), (s16)(y ), z ); in DEMOPuts()
363 GXTexCoord2s16( (s16)(s+16 ), (s16)(t ) ); in DEMOPuts()
364 GXPosition3s16( (s16)(i*8+x+8), (s16)(y+8 ), z ); in DEMOPuts()
365 GXTexCoord2s16( (s16)(s+16 ), (s16)(t+16) ); in DEMOPuts()
366 GXPosition3s16( (s16)(i*8+x ), (s16)(y+8 ), z ); in DEMOPuts()
367 GXTexCoord2s16( (s16)(s ), (s16)(t+16) ); in DEMOPuts()
391 void DEMOPrintf( s16 x, s16 y, s16 z, char* fmt, ... ) in DEMOPrintf()
[all …]
DDEMOAVX.c47 static s16 __AVX_internal_buffer[AVX_FRAME_SIZE_WORDS*AVX_INTERNAL_NUM_FRAMES] ATTRIBUTE_ALIGN(32);
57 static s16 *__AVX_left_buffer; // pointer to caller's left-channel sample buffer
58 static s16 *__AVX_right_buffer; // pointer to caller's right-channel sample buffer
195 … __AVX_left_buffer [__AVX_write_ptr] = (s16)(__AVX_buffer[curr_frame * AVX_FRAME_SIZE_WORDS + j]); in DEMOAVXRefreshBuffer()
196 …__AVX_right_buffer[__AVX_write_ptr] = (s16)(__AVX_buffer[curr_frame * AVX_FRAME_SIZE_WORDS + j + 1… in DEMOAVXRefreshBuffer()
227 void DEMOAVXInit(s16 *left, s16 *right, u32 size) in DEMOAVXInit()
/RvlSDK-2.1/build/libraries/wpad/src/
DWPADClamp.c38 static void __ClampStickOctagon ( void *px, void *py, s16 max, s16 xy, s16 min, u8 type );
39 static void __ClampStickCircle ( void *px, void *py, s16 radius, s16 min, u8 type );
41 static void __ClampCube ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
42 static void __ClampSphere ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
48 s16 minStick; // the play of the control stick
49 s16 maxStick;
50 s16 xyStick; // max on x = y
51 s16 radStick; // max radius of the control stick
341 static void __ClampStickOctagon(void* px, void* py, s16 max, s16 xy, s16 min, u8 type) in __ClampStickOctagon()
356 x = *((s16*)px); in __ClampStickOctagon()
[all …]
/RvlSDK-2.1/build/demos/gxdemo/src/Tev/
Dtev-ztex.c55 s16 xpos; // left
56 s16 ypos; // bottom
57 s16 zpos;
58 s16 width;
59 s16 height;
60 s16 s0;
61 s16 s1;
62 s16 t0;
63 s16 t1;
74 s16 waterLv;
[all …]
Dtev-complex.c125 s16* posArray;
126 s16* nrmArray;
127 s16* tcdArray;
515 mo->posArray = (s16*)MEMAllocFromAllocator(&DemoAllocator1, size_p * sizeof(s16)); in CreateModel()
516 mo->nrmArray = (s16*)MEMAllocFromAllocator(&DemoAllocator1, size_n * sizeof(s16)); in CreateModel()
517 mo->tcdArray = (s16*)MEMAllocFromAllocator(&DemoAllocator1, size_t * sizeof(s16)); in CreateModel()
526 mo->tcdArray[cnt_t++] = (s16)(i * SCALE_Q / mo->numDiv0); in CreateModel()
527 mo->tcdArray[cnt_t++] = (s16)(j * SCALE_Q / mo->numDiv1); in CreateModel()
537 mo->posArray[cnt_p++] = (s16)(fr * cosf(ft) * SCALE_Q); in CreateModel()
538 mo->posArray[cnt_p++] = (s16)(fr * sinf(ft) * SCALE_Q); in CreateModel()
[all …]
/RvlSDK-2.1/include/revolution/
Dax.h269 s16 aL;
270 s16 aAuxAL;
271 s16 aAuxBL;
272 s16 aAuxCL;
274 s16 aR;
275 s16 aAuxAR;
276 s16 aAuxBR;
277 s16 aAuxCR;
279 s16 aS;
280 s16 aAuxAS;
[all …]
Dwpad.h386 s16 x; // 0 <= x < WPAD_DPD_IMG_RESO_WX
387 s16 y; // 0 <= y < WPAD_DPD_IMG_RESO_WY
401 s16 range_x1;
402 s16 range_y1;
403 s16 range_x2;
404 s16 range_y2;
416 s16 accX; // -WPAD_ACC_RESO/2 <= accX < WPAD_ACC_RESO/2
417 s16 accY; // -WPAD_ACC_RESO/2 <= accY < WPAD_ACC_RESO/2
418 s16 accZ; // -WPAD_ACC_RESO/2 <= accZ < WPAD_ACC_RESO/2
428 s16 accX; // -WPAD_ACC_RESO/2 <= accX < WPAD_ACC_RESO/2
[all …]
/RvlSDK-2.1/include/revolution/gx/
DGXEmVert.h44 void EmGXParam1s16( s16 x );
55 void EmGXPosition3s16 ( s16 x, s16 y, s16 z );
60 void EmGXPosition2s16 ( s16 x, s16 y );
68 void EmGXNormal3s16 ( s16 x, s16 y, s16 z );
83 void EmGXTexCoord2s16 ( s16 s, s16 t );
88 void EmGXTexCoord1s16 ( s16 s );
/RvlSDK-2.1/build/demos/thpdemo/include/
DTHPDraw.h38 s16 x,
39 s16 y,
40 s16 textureWidth,
41 s16 textureHeight,
42 s16 polygonWidth,
43 s16 polygonHeight );
/RvlSDK-2.1/build/tools/sndconv/src/
Dsoundformat.c26 typedef void (*FUNCTION1)(s16*, s8*, ADPCMINFO*, u32);
42 s16 sample; in soundStereoCombine8Bit()
58 void soundStereoCombine16Bit(s16 *dest, s16 *source, u32 samples) in soundStereoCombine16Bit()
98 void soundStereoLeft16Bit(s16 *dest, s16 *source, u32 samples) in soundStereoLeft16Bit()
136 void soundStereoRight16Bit(s16 *dest, s16 *source, u32 samples) in soundStereoRight16Bit()
155 void soundConvert8to16Bit(s16 *dest, s8 *source, u32 samples) in soundConvert8to16Bit()
161 *dest = (s16)(*source << 8); in soundConvert8to16Bit()
172 void soundConvert16to8Bit(s8 *dest, s16 *source, u32 samples) in soundConvert16to8Bit()
189 void soundConvert16BitToAdpcm(void *dest, s16 *source, ADPCMINFO *adpcminfo, in soundConvert16BitToAdpcm()
199 void soundConvert16BitToAdpcmLoop(void *dest, s16 *source, ADPCMINFO *adpcminfo, in soundConvert16BitToAdpcmLoop()
Dsoundconv.h129 void soundStereoCombine16Bit (s16 *dest, s16 *source, u32 samples);
131 void soundStereoLeft16Bit (s16 *dest, s16 *source, u32 samples);
133 void soundStereoRight16Bit (s16 *dest, s16 *source, u32 samples);
134 void soundConvert8to16Bit (s16 *dest, s8 *source, u32 samples);
135 void soundConvert16to8Bit (s8 *dest, s16 *source, u32 samples);
136 void soundConvert16BitToAdpcm (void *, s16 *, ADPCMINFO *, u32 samples);
137 void soundConvert16BitToAdpcmLoop(void *, s16 *, ADPCMINFO *, u32 samples, u32 loopStart);
/RvlSDK-2.1/build/demos/osdemo/src/
Dfontdemo1.c39 s16 posLeft = (s16) x; in DrawCell()
40 s16 posRight = (s16) (posLeft + FontData->cellWidth); in DrawCell()
41 s16 posTop = (s16) y; in DrawCell()
42 s16 posBottom = (s16) (posTop + FontData->cellHeight); in DrawCell()
44 s16 texLeft = (s16) xChar; in DrawCell()
45 s16 texRight = (s16) (xChar + FontData->cellWidth); in DrawCell()
46 s16 texTop = (s16) yChar; in DrawCell()
47 s16 texBottom = (s16) (yChar + FontData->cellHeight); in DrawCell()
Dfontdemo3.c45 s16 posLeft = (s16) x; in DrawCell()
46 s16 posRight = (s16) (posLeft + FontData->cellWidth); in DrawCell()
47 s16 posTop = (s16) y; in DrawCell()
48 s16 posBottom = (s16) (posTop + FontData->cellHeight); in DrawCell()
50 s16 texLeft = (s16) xChar; in DrawCell()
51 s16 texRight = (s16) (xChar + FontData->cellWidth); in DrawCell()
52 s16 texTop = (s16) yChar; in DrawCell()
53 s16 texBottom = (s16) (yChar + FontData->cellHeight); in DrawCell()
/RvlSDK-2.1/build/demos/wpaddemo/src/
Dpointing.c62 static void getMidpoint (const WPADStatus *stat, s16 *x, s16 *y );
231 s16 x = (s16)( stat->obj[i].x*SCREEN_WIDTH/WPAD_DPD_IMG_RESO_WX ); in renderLuminousSources()
232 s16 y = (s16)( stat->obj[i].y*SCREEN_HEIGHT/WPAD_DPD_IMG_RESO_WY ); in renderLuminousSources()
247 s16 x = FONT_HEIGHT; in renderStatus()
248 s16 y = FONT_HEIGHT; in renderStatus()
288 s16 x; in renderAiming()
289 s16 y; in renderAiming()
294 x=(s16)((WPAD_DPD_IMG_RESO_WX - x)*SCREEN_WIDTH /WPAD_DPD_IMG_RESO_WX); in renderAiming()
295 y=(s16)((WPAD_DPD_IMG_RESO_WY - y)*SCREEN_HEIGHT/WPAD_DPD_IMG_RESO_WY); in renderAiming()
311 static void getMidpoint( const WPADStatus *stat, s16 *x, s16 *y ) in getMidpoint()
[all …]
/RvlSDK-2.1/include/win32/
Ddsptool.h54 s16 coef[16];
57 s16 yn1;
58 s16 yn2;
62 s16 loop_yn1;
63 s16 loop_yn2;
82 s16 *src, // location of source samples (16bit PCM signed little endian)
91 s16 *dst, // location of destination buffer (16 bits / sample)
Dthpaudio.h69 #define THPGetDecDataPtr(x, y) (s16 *)((u32)(x) + (y) * 2)
106 s16 leftHistory [THP_TAP_SIZE];
107 s16 rightHistory[THP_TAP_SIZE];
117 s16* leftDecodedPtr;
118 s16* rightDecodedPtr;
124 s16 leftSampleBuffer [THP_SAMPLE_BUFFER_SIZE];
125 s16 rightSampleBuffer [THP_SAMPLE_BUFFER_SIZE];
126 s16 leftDecodedBuffer [THP_SAMPLE_BUFFER_SIZE];
127 s16 rightDecodedBuffer[THP_SAMPLE_BUFFER_SIZE];
/RvlSDK-2.1/build/tools/dls1wt/src/
Ddspadpcm.h37 s16 coef[16];
40 s16 yn1;
41 s16 yn2;
45 s16 loop_yn1;
46 s16 loop_yn2;
/RvlSDK-2.1/build/demos/gddemo/src/
Dgd-light-gc.c84 static s16* VtxPosArray = NULL;
85 static s16* VtxNrmArray = NULL;
148 VtxPosArray = (s16*)OSAlloc(size * sizeof(s16)); in CreateModelVtxArray()
149 VtxNrmArray = (s16*)OSAlloc(size * sizeof(s16)); in CreateModelVtxArray()
162 VtxPosArray[cnt_p++] = (s16)(fr * cosf(ft) * SCALE_Q); in CreateModelVtxArray()
163 VtxPosArray[cnt_p++] = (s16)(fr * sinf(ft) * SCALE_Q); in CreateModelVtxArray()
164 VtxPosArray[cnt_p++] = (s16)(MODEL_R * sinf(fs) * SCALE_Q); in CreateModelVtxArray()
167 VtxNrmArray[cnt_n++] = (s16)(cosf(ft) * cosf(fs) * SCALE_Q); in CreateModelVtxArray()
168 VtxNrmArray[cnt_n++] = (s16)(sinf(ft) * cosf(fs) * SCALE_Q); in CreateModelVtxArray()
169 VtxNrmArray[cnt_n++] = (s16)(sinf(fs) * SCALE_Q); in CreateModelVtxArray()
[all …]
Dgd-tev-gc.c103 s16* posArray;
104 s16* nrmArray;
105 s16* tcdArray;
618 mo->posArray = (s16*)OSAlloc(size_p * sizeof(s16)); in CreateModelVtxArray()
619 mo->nrmArray = (s16*)OSAlloc(size_n * sizeof(s16)); in CreateModelVtxArray()
620 mo->tcdArray = (s16*)OSAlloc(size_t * sizeof(s16)); in CreateModelVtxArray()
642 mo->posArray[cnt_p++] = (s16)(((f32)j*2 / MODEL_MESHX - 1.0F) * QSCALE); in CreateModelVtxArray()
643 mo->posArray[cnt_p++] = (s16)(((f32)i*2 / MODEL_MESHY - 1.0F) * QSCALE); in CreateModelVtxArray()
644 mo->posArray[cnt_p++] = (s16)(MODEL_ZSCALE * ct * cp * QSCALE); in CreateModelVtxArray()
647 mo->nrmArray[cnt_n++] = (s16)(nn * -dzdt * QSCALE); in CreateModelVtxArray()
[all …]
/RvlSDK-2.1/build/tools/dspadpcm/src/
Ddspadpcm.h44 s16 coef[16];
47 s16 yn1;
48 s16 yn2;
52 s16 loop_yn1;
53 s16 loop_yn2;
/RvlSDK-2.1/build/demos/gxdemo/src/PixelProc/
Dcmn-model.c125 GXPosition2s16( (s16)(i*STEP+ORGX), (s16)( ORGY) ); in cmModel0_Draw()
126 GXPosition2s16( (s16)(i*STEP+ORGX), (s16)((GRIDY-1)*STEP+ORGY) ); in cmModel0_Draw()
132 GXPosition2s16( (s16)( ORGX), (s16)(i*STEP+ORGY) ); in cmModel0_Draw()
133 GXPosition2s16( (s16)((GRIDX-1)*STEP+ORGX), (s16)(i*STEP+ORGY) ); in cmModel0_Draw()
315 static s16 obj2_height[11][12] = { 0 };
349 obj2_height[i][obj2_ybase] = (s16)h; in cmModel2_Anim()
450 GXPosition3s16( (s16)(sx), (s16)(sy), in cmModel2_Draw()
451 (s16)obj2_height[i][y0] ); in cmModel2_Draw()
453 GXPosition3s16( (s16)(sx), (s16)(sy+MESHSTEP), in cmModel2_Draw()
454 (s16)obj2_height[i][y1] ); in cmModel2_Draw()
[all …]
/RvlSDK-2.1/build/libraries/G2D/src/
DG2D.c168 s32 *nScanLine, s32 nEvent, s16 *nIdx, in FillSection()
175 s16 nMaterial; in FillSection()
176 s16 *pAddr; in FillSection()
195 pAddr = (s16 *)&layer->matDesc[nMaterial].nReserved; in FillSection()
201 *((s16 *)&aSortBuffer[*pAddr]) = (s16)(*pAddr - *nIdx); in FillSection()
252 pAddr = (s16 *)&layer->matDesc[nMaterial].nReserved; in FillSection()
258 *((s16 *)&aSortBuffer[*pAddr]) = (s16)(*pAddr - *nIdx); in FillSection()
290 pAddr = (s16 *)&layer->matDesc[nMaterial].nReserved; in FillSection()
296 *((s16 *)&aSortBuffer[*pAddr]) = (s16)(*pAddr - *nIdx); in FillSection()
347 pAddr = (s16 *)&layer->matDesc[nMaterial].nReserved; in FillSection()
[all …]
/RvlSDK-2.1/build/demos/gxdemo/include/
Dcmn-model.h40 s16 xorg;
41 s16 yorg;
42 s16 width;
43 s16 height;
/RvlSDK-2.1/build/demos/carddemo/src/
Dlistdemo.c355 GXPosition3s16((s16) (x), (s16) (y), 0); in DrawRectangle()
356 GXPosition3s16((s16) (x + cx), (s16) (y), 0); in DrawRectangle()
357 GXPosition3s16((s16) (x + cx), (s16) (y + cy), 0); in DrawRectangle()
358 GXPosition3s16((s16) (x), (s16) (y + cy), 0); in DrawRectangle()
383 s16 size; in DrawMenu()
384 s16 space; in DrawMenu()
408 DEMORFPrintf((s16) x, (s16) y, 0, item); in DrawMenu()
425 s16 size; in DrawMessage()
426 s16 space; in DrawMessage()
437 DEMORFPrintf((s16) x, (s16) y, 0, message); in DrawMessage()
[all …]

123456