/third_party/flutter/skia/third_party/externals/sdl/src/audio/ |
D | SDL_audiotypecvt.c | 110 Sint16 *dst; in SDL_Convert_U8_to_S16LSB() 117 dst = ((Sint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1; in SDL_Convert_U8_to_S16LSB() 119 const Sint16 val = (((Sint16) ((*src) ^ 0x80)) << 8); in SDL_Convert_U8_to_S16LSB() 120 *dst = ((Sint16) SDL_SwapLE16(val)); in SDL_Convert_U8_to_S16LSB() 158 Sint16 *dst; in SDL_Convert_U8_to_S16MSB() 165 dst = ((Sint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1; in SDL_Convert_U8_to_S16MSB() 167 const Sint16 val = (((Sint16) ((*src) ^ 0x80)) << 8); in SDL_Convert_U8_to_S16MSB() 168 *dst = ((Sint16) SDL_SwapBE16(val)); in SDL_Convert_U8_to_S16MSB() 325 Sint16 *dst; in SDL_Convert_S8_to_S16LSB() 332 dst = ((Sint16 *) (cvt->buf + cvt->len_cvt * 2)) - 1; in SDL_Convert_S8_to_S16LSB() [all …]
|
D | SDL_wave.c | 35 Sint16 iSamp1; 36 Sint16 iSamp2; 43 Sint16 aCoeff[7][2]; 86 Uint8 nybble, Sint16 * coeff) in MS_ADPCM_nibble() 114 state->iSamp1 = (Sint16) new_sample; in MS_ADPCM_nibble() 126 Sint16 *coeff[2]; in MS_ADPCM_decode() 135 MS_ADPCM_state.wavefmt.channels * sizeof(Sint16); in MS_ADPCM_decode() 153 encoded += sizeof(Sint16); in MS_ADPCM_decode() 156 encoded += sizeof(Sint16); in MS_ADPCM_decode() 159 encoded += sizeof(Sint16); in MS_ADPCM_decode() [all …]
|
D | SDL_audiocvt.c | 115 sample = (Sint16) ((src[0] << 8) | src[1]) + in SDL_ConvertMono() 116 (Sint16) ((src[2] << 8) | src[3]); in SDL_ConvertMono() 126 sample = (Sint16) ((src[1] << 8) | src[0]) + in SDL_ConvertMono() 127 (Sint16) ((src[3] << 8) | src[2]); in SDL_ConvertMono() 446 Sint16 lf, rf, ce, lr, rr; in SDL_ConvertSurround() 455 lf = (Sint16) ((src[0] << 8) | src[1]); in SDL_ConvertSurround() 456 rf = (Sint16) ((src[2] << 8) | src[3]); in SDL_ConvertSurround() 479 lf = (Sint16) ((src[1] << 8) | src[0]); in SDL_ConvertSurround() 480 rf = (Sint16) ((src[3] << 8) | src[2]); in SDL_ConvertSurround() 691 Sint16 lf, rf, ce, lr, rr; in SDL_ConvertSurround_4() [all …]
|
D | SDL_mixer.c | 148 Sint16 src1, src2; in SDL_MixAudioFormat() 179 Sint16 src1, src2; in SDL_MixAudioFormat()
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/windows/ |
D | SDL_xinputjoystick.c | 264 SDL_PrivateJoystickAxis(joystick, 0, (Sint16)pXInputState->Gamepad.sThumbLX); in UpdateXInputJoystickState_OLD() 265 … SDL_PrivateJoystickAxis(joystick, 1, (Sint16)(-SDL_max(-32767, pXInputState->Gamepad.sThumbLY))); in UpdateXInputJoystickState_OLD() 266 SDL_PrivateJoystickAxis(joystick, 2, (Sint16)pXInputState->Gamepad.sThumbRX); in UpdateXInputJoystickState_OLD() 267 … SDL_PrivateJoystickAxis(joystick, 3, (Sint16)(-SDL_max(-32767, pXInputState->Gamepad.sThumbRY))); in UpdateXInputJoystickState_OLD() 268 …SDL_PrivateJoystickAxis(joystick, 4, (Sint16)(((int)pXInputState->Gamepad.bLeftTrigger * 65535 / 2… in UpdateXInputJoystickState_OLD() 269 …SDL_PrivateJoystickAxis(joystick, 5, (Sint16)(((int)pXInputState->Gamepad.bRightTrigger * 65535 / … in UpdateXInputJoystickState_OLD() 291 SDL_PrivateJoystickAxis(joystick, 0, (Sint16)pXInputState->Gamepad.sThumbLX); in UpdateXInputJoystickState() 292 … SDL_PrivateJoystickAxis(joystick, 1, (Sint16)(-SDL_max(-32767, pXInputState->Gamepad.sThumbLY))); in UpdateXInputJoystickState() 293 …SDL_PrivateJoystickAxis(joystick, 2, (Sint16)(((int)pXInputState->Gamepad.bLeftTrigger * 65535 / 2… in UpdateXInputJoystickState() 294 SDL_PrivateJoystickAxis(joystick, 3, (Sint16)pXInputState->Gamepad.sThumbRX); in UpdateXInputJoystickState() [all …]
|
D | SDL_dinputjoystick.c | 748 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)evtbuf[i].dwData); in UpdateDINPUTJoystickState_Buffered() 801 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.lX); in UpdateDINPUTJoystickState_Polled() 804 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.lY); in UpdateDINPUTJoystickState_Polled() 807 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.lZ); in UpdateDINPUTJoystickState_Polled() 810 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.lRx); in UpdateDINPUTJoystickState_Polled() 813 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.lRy); in UpdateDINPUTJoystickState_Polled() 816 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.lRz); in UpdateDINPUTJoystickState_Polled() 819 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.rglSlider[0]); in UpdateDINPUTJoystickState_Polled() 822 SDL_PrivateJoystickAxis(joystick, in->num, (Sint16)state.rglSlider[1]); in UpdateDINPUTJoystickState_Polled()
|
D | SDL_mmjoystick.c | 349 SDL_PrivateJoystickAxis(joystick, (Uint8) i, (Sint16) value); in SDL_SYS_JoystickUpdate()
|
/third_party/flutter/skia/third_party/externals/sdl/include/ |
D | SDL_haptic.h | 470 Sint16 level; /**< Strength of the constant effect. */ 554 … Sint16 magnitude; /**< Peak value; if negative, equivalent to 180 degrees extra phase shift. */ 555 Sint16 offset; /**< Mean value of the wave. */ 607 Sint16 right_coeff[3]; /**< How fast to increase the force towards the positive side. */ 608 Sint16 left_coeff[3]; /**< How fast to increase the force towards the negative side. */ 610 Sint16 center[3]; /**< Position of the dead zone. */ 641 Sint16 start; /**< Beginning strength level. */ 642 Sint16 end; /**< Ending strength level. */
|
D | SDL_test_fuzzer.h | 93 Sint16 SDLTest_RandomSint16(); 273 Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain);
|
D | SDL_events.h | 288 Sint16 value; /**< The axis value (range: -32768 to 32767) */ 304 Sint16 xrel; /**< The relative motion in the X direction */ 305 Sint16 yrel; /**< The relative motion in the Y direction */ 365 Sint16 value; /**< The axis value (range: -32768 to 32767) */
|
D | SDL_joystick.h | 200 extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick,
|
D | SDL_gamecontroller.h | 255 extern DECLSPEC Sint16 SDLCALL
|
D | SDL_stdinc.h | 147 typedef int16_t Sint16; typedef 271 SDL_COMPILE_TIME_ASSERT(sint16, sizeof(Sint16) == 2);
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/ |
D | SDL_joystick_c.h | 39 Uint8 axis, Sint16 value); 41 Uint8 ball, Sint16 xrel, Sint16 yrel);
|
D | SDL_joystick.c | 145 joystick->axes = (Sint16 *) SDL_malloc(joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen() 146 joystick->axes_zero = (Sint16 *) SDL_malloc(joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen() 169 SDL_memset(joystick->axes, 0, joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen() 170 SDL_memset(joystick->axes_zero, 0, joystick->naxes * sizeof(Sint16)); in SDL_JoystickOpen() 265 Sint16 268 Sint16 state; in SDL_JoystickGetAxis() 567 SDL_PrivateJoystickAxis(SDL_Joystick * joystick, Uint8 axis, Sint16 value) in SDL_PrivateJoystickAxis() 649 Sint16 xrel, Sint16 yrel) in SDL_PrivateJoystickBall()
|
D | SDL_sysjoystick.h | 38 Sint16 *axes; /* Current axis states */ 39 Sint16 *axes_zero; /* Zero point on the axis (-32768 for triggers) */
|
D | SDL_gamecontroller.c | 106 …GameControllerAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis, Sint16 value); 159 Sint16 value = event->jaxis.value; in SDL_GameControllerEventWatcher() 1020 gamecontroller->joystick->axes_zero[leftTriggerMapping] = (Sint16)-32768; in SDL_GameControllerOpen() 1024 gamecontroller->joystick->axes_zero[rightTriggerMapping] = (Sint16)-32768; in SDL_GameControllerOpen() 1053 Sint16 1060 …Sint16 value = (SDL_JoystickGetAxis(gamecontroller->joystick, gamecontroller->mapping.axes[axis])); in SDL_GameControllerGetAxis() 1093 Sint16 value; in SDL_GameControllerGetButton() 1278 …eGameControllerAxis(SDL_GameController * gamecontroller, SDL_GameControllerAxis axis, Sint16 value) in SDL_PrivateGameControllerAxis()
|
/third_party/flutter/skia/third_party/externals/sdl/src/test/ |
D | SDL_test_fuzzer.c | 101 Sint16 106 return (Sint16) SDLTest_RandomInt(&rndContext) & 0x0000FFFF; in SDLTest_RandomSint16() 406 Sint16 407 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain) in SDLTest_RandomSint16BoundaryValue() 412 return (Sint16)SDLTest_GenerateSignedBoundaryValues(minValue, maxValue, in SDLTest_RandomSint16BoundaryValue()
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/iphoneos/ |
D | SDL_sysjoystick.m | 426 Convert accelerometer data from floating point to Sint16, which is what 431 by MAX_SINT16 so that it is mapped to the full range of an Sint16. 436 Once converted to Sint16, the accelerometer data no longer has coherent 493 Sint16 axes[] = { 494 (Sint16) (gamepad.leftThumbstick.xAxis.value * 32767), 495 (Sint16) (gamepad.leftThumbstick.yAxis.value * -32767), 496 (Sint16) ((gamepad.leftTrigger.value * 65535) - 32768), 497 (Sint16) (gamepad.rightThumbstick.xAxis.value * 32767), 498 (Sint16) (gamepad.rightThumbstick.yAxis.value * -32767), 499 (Sint16) ((gamepad.rightTrigger.value * 65535) - 32768), [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/android/ |
D | SDL_sysjoystick.c | 219 SDL_PrivateJoystickAxis(item->joystick, axis, (Sint16) (32767.*value) ); in Android_OnJoy() 479 Sint16 value; in SDL_SYS_JoystickUpdate() 494 value = (Sint16)(values[i] * 32767.0f); in SDL_SYS_JoystickUpdate()
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testgamecontroller.c | 137 const Sint16 deadzone = 8000; /* !!! FIXME: real deadzone */ in loop() 138 const Sint16 value = SDL_GameControllerGetAxis(gamecontroller, (SDL_GameControllerAxis)(i)); in loop()
|
/third_party/flutter/skia/third_party/externals/sdl/src/audio/sun/ |
D | SDL_sunaudio.c | 139 Sint16 *sndbuf; in SUNAUDIO_PlayDevice() 141 sndbuf = (Sint16 *) this->hidden->mixbuf; in SUNAUDIO_PlayDevice()
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/ |
D | SDL_haptic.c | 795 Sint16 magnitude; in SDL_HapticRumblePlay() 811 magnitude = (Sint16)(32767.0f*strength); in SDL_HapticRumblePlay()
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/emscripten/ |
D | SDL_sysjoystick.c | 334 (Sint16) (32767.*gamepadState.axis[i])); in SDL_SYS_JoystickUpdate()
|
/third_party/flutter/skia/third_party/externals/sdl/Xcode-iOS/Demos/ |
D | README | 21 …E (normally defined in SDL_config_iphoneos.h) which converts between the Sint16 number returned by…
|