Home
last modified time | relevance | path

Searched refs:SDL_calloc (Results 1 – 25 of 118) sorted by relevance

12345

/AliOS-Things-master/components/SDL2/src/video/psp/
A DSDL_pspvideo.c77 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in PSP_Create()
84 phdata = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData)); in PSP_Create()
91 gldata = (SDL_GLDriverData *) SDL_calloc(1, sizeof(SDL_GLDriverData)); in PSP_Create()
224 wdata = (SDL_WindowData *) SDL_calloc(1, sizeof(SDL_WindowData)); in PSP_CreateWindow()
/AliOS-Things-master/components/SDL2/src/joystick/darwin/
A DSDL_sysjoystick.c61 effect = (FFEFFECT *)SDL_calloc(1, sizeof(*effect)); in CreateRumbleEffectData()
72 effect->rgdwAxes = (DWORD *)SDL_calloc(effect->cAxes, sizeof(DWORD)); in CreateRumbleEffectData()
78 effect->rglDirection = (LONG *)SDL_calloc(effect->cAxes, sizeof(LONG)); in CreateRumbleEffectData()
85 periodic = (FFPERIODIC *)SDL_calloc(1, sizeof(*periodic)); in CreateRumbleEffectData()
307 element = (recElement *) SDL_calloc(1, sizeof (recElement)); in AddHIDElement()
317 element = (recElement *) SDL_calloc(1, sizeof (recElement)); in AddHIDElement()
332 element = (recElement *) SDL_calloc(1, sizeof (recElement)); in AddHIDElement()
349 element = (recElement *) SDL_calloc(1, sizeof (recElement)); in AddHIDElement()
365 element = (recElement *) SDL_calloc(1, sizeof (recElement)); in AddHIDElement()
554 device = (recDevice *) SDL_calloc(1, sizeof(recDevice)); in JoystickDeviceWasAddedCallback()
/AliOS-Things-master/components/SDL2/src/joystick/virtual/
A DSDL_virtualjoystick.c99 hwdata = SDL_calloc(1, sizeof(joystick_hwdata)); in SDL_JoystickAttachVirtualInner()
116 hwdata->axes = SDL_calloc(naxes, sizeof(Sint16)); in SDL_JoystickAttachVirtualInner()
123 hwdata->buttons = SDL_calloc(nbuttons, sizeof(Uint8)); in SDL_JoystickAttachVirtualInner()
130 hwdata->hats = SDL_calloc(nhats, sizeof(Uint8)); in SDL_JoystickAttachVirtualInner()
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11mouse.c78 cursor = SDL_calloc(1, sizeof(*cursor)); in X11_CreateDefaultCursor()
131 data_bits = SDL_calloc(1, surface->h * width_bytes); in X11_CreatePixmapCursor()
137 mask_bits = SDL_calloc(1, surface->h * width_bytes); in X11_CreatePixmapCursor()
208 cursor = SDL_calloc(1, sizeof(*cursor)); in X11_CreateCursor()
255 cursor = SDL_calloc(1, sizeof(*cursor)); in X11_CreateSystemCursor()
A DSDL_x11modes.c455 displaydata = (SDL_DisplayData *) SDL_calloc(1, sizeof(*displaydata)); in X11_InitModes_XRandR()
460 modedata = (SDL_DisplayModeData *) SDL_calloc(1, sizeof(SDL_DisplayModeData)); in X11_InitModes_XRandR()
698 displaydata = (SDL_DisplayData *) SDL_calloc(1, sizeof(*displaydata)); in X11_InitModes()
724 modedata = (SDL_DisplayModeData *) SDL_calloc(1, sizeof(SDL_DisplayModeData)); in X11_InitModes()
860 modedata = (SDL_DisplayModeData *) SDL_calloc(1, sizeof(SDL_DisplayModeData)); in X11_GetDisplayModes()
876 modedata = (SDL_DisplayModeData *) SDL_calloc(1, sizeof(SDL_DisplayModeData)); in X11_GetDisplayModes()
902 modedata = (SDL_DisplayModeData *) SDL_calloc(1, sizeof(SDL_DisplayModeData)); in X11_GetDisplayModes()
936 modedata = (SDL_DisplayModeData *) SDL_calloc(1, sizeof(SDL_DisplayModeData)); in X11_GetDisplayModes()
955 modedata = (SDL_DisplayModeData *) SDL_calloc(1, sizeof(SDL_DisplayModeData)); in X11_GetDisplayModes()
/AliOS-Things-master/components/SDL2/src/video/vivante/
A DSDL_vivantevideo.c65 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in VIVANTE_Create()
72 data = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData)); in VIVANTE_Create()
146 data = (SDL_DisplayData *) SDL_calloc(1, sizeof(SDL_DisplayData)); in VIVANTE_AddVideoDisplays()
283 data = (SDL_WindowData *) SDL_calloc(1, sizeof(SDL_WindowData)); in VIVANTE_CreateWindow()
/AliOS-Things-master/components/SDL2/src/core/alios/
A DSDL_evdev.c171 _this = (SDL_EVDEV_PrivateData*)SDL_calloc(1, sizeof(*_this)); in SDL_EVDEV_Init()
261 item->touchscreen_data = SDL_calloc(1, sizeof(*item->touchscreen_data)); in SDL_EVDEV_init_touchscreen()
324 item->touchscreen_data->slots = SDL_calloc( in SDL_EVDEV_init_touchscreen()
365 item = (SDL_evdevlist_item *) SDL_calloc(1, sizeof (SDL_evdevlist_item)); in SDL_EVDEV_device_added()
/AliOS-Things-master/components/SDL2/src/video/raspberry/
A DSDL_rpivideo.c90 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in RPI_Create()
97 phdata = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData)); in RPI_Create()
196 data = (SDL_DisplayData *) SDL_calloc(1, sizeof(SDL_DisplayData)); in AddDispManXDisplay()
279 wdata = (SDL_WindowData *) SDL_calloc(1, sizeof(SDL_WindowData)); in RPI_CreateWindow()
/AliOS-Things-master/components/SDL2/src/video/haiku/
A DSDL_bmodes.cc201 SDL_DisplayModeData *data = (SDL_DisplayModeData*)SDL_calloc(1, in _BDisplayModeToSdlDisplayMode()
220 SDL_DisplayMode *mode = (SDL_DisplayMode*)SDL_calloc(1, in _AddDisplay()
222 display_mode *bmode = (display_mode*)SDL_calloc(1, sizeof(display_mode)); in _AddDisplay()
/AliOS-Things-master/components/SDL2/src/audio/jack/
A DSDL_jackaudio.c303 this->hidden = (struct SDL_PrivateAudioData *) SDL_calloc(1, sizeof (*this->hidden)); in JACK_OpenDevice()
325 audio_ports = SDL_calloc(ports, sizeof *audio_ports); in JACK_OpenDevice()
355 this->hidden->iobuffer = (float *) SDL_calloc(1, this->spec.size); in JACK_OpenDevice()
361 this->hidden->sdlports = (jack_port_t **) SDL_calloc(channels, sizeof (jack_port_t *)); in JACK_OpenDevice()
/AliOS-Things-master/components/SDL2/src/video/windows/
A DSDL_windowsmouse.c77 cursor = SDL_calloc(1, sizeof(*cursor)); in WIN_CreateDefaultCursor()
149 cursor = SDL_calloc(1, sizeof(*cursor)); in WIN_CreateCursor()
185 cursor = SDL_calloc(1, sizeof(*cursor)); in WIN_CreateSystemCursor()
/AliOS-Things-master/components/SDL2/src/sensor/android/
A DSDL_androidsensor.c74 SDL_sensors = (SDL_AndroidSensor *)SDL_calloc(sensors_count, sizeof(*SDL_sensors)); in SDL_ANDROID_SensorInit()
136 hwdata = (struct sensor_hwdata *)SDL_calloc(1, sizeof(*hwdata)); in SDL_ANDROID_SensorOpen()
/AliOS-Things-master/components/SDL2/src/video/android/
A DSDL_androidmouse.c63 cursor = SDL_calloc(1, sizeof(*cursor)); in Android_WrapCursor()
65 SDL_AndroidCursorData *data = (SDL_AndroidCursorData *)SDL_calloc(1, sizeof(*data)); in Android_WrapCursor()
A DSDL_androidvideo.c100 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in Android_CreateDevice()
106 data = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData)); in Android_CreateDevice()
/AliOS-Things-master/components/SDL2/src/video/kmsdrm/
A DSDL_kmsdrmvideo.c175 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in KMSDRM_CreateDevice()
181 viddata = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData)); in KMSDRM_CreateDevice()
273 fb_info = (KMSDRM_FBInfo *)SDL_calloc(1, sizeof(KMSDRM_FBInfo)); in KMSDRM_FBFromBO()
450 dispdata = (SDL_DisplayData *) SDL_calloc(1, sizeof(SDL_DisplayData)); in KMSDRM_VideoInit()
609 SDL_DisplayModeData *modedata = SDL_calloc(1, sizeof(SDL_DisplayModeData)); in KMSDRM_VideoInit()
718 SDL_DisplayModeData *modedata = SDL_calloc(1, sizeof(SDL_DisplayModeData)); in KMSDRM_GetDisplayModes()
786 windata = (SDL_WindowData *)SDL_calloc(1, sizeof(SDL_WindowData)); in KMSDRM_CreateWindow()
/AliOS-Things-master/components/SDL2/src/video/offscreen/
A DSDL_offscreenwindow.c34 OFFSCREEN_Window* offscreen_window = SDL_calloc(1, sizeof(OFFSCREEN_Window)); in OFFSCREEN_CreateWindow()
A DSDL_offscreenvideo.c73 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in OFFSCREEN_CreateDevice()
/AliOS-Things-master/components/SDL2/src/video/emscripten/
A DSDL_emscriptenmouse.c42 cursor = SDL_calloc(1, sizeof(SDL_Cursor)); in Emscripten_CreateCursorFromString()
44 curdata = (Emscripten_CursorData *) SDL_calloc(1, sizeof(*curdata)); in Emscripten_CreateCursorFromString()
A DSDL_emscriptenopengles.c39 _this->egl_data = (struct SDL_EGL_VideoData *) SDL_calloc(1, sizeof(SDL_EGL_VideoData)); in Emscripten_GLES_LoadLibrary()
/AliOS-Things-master/components/SDL2/src/video/qnx/
A Dvideo.c79 impl = SDL_calloc(1, sizeof(*impl)); in createWindow()
325 device = (SDL_VideoDevice *)SDL_calloc(1, sizeof(SDL_VideoDevice)); in createDevice()
/AliOS-Things-master/components/SDL2/src/locale/
A DSDL_locale.c51 loc = retval = (SDL_Locale *) SDL_calloc(1, alloclen); in build_locales_from_csv_string()
/AliOS-Things-master/components/SDL2/src/video/dummy/
A DSDL_nullvideo.c86 device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice)); in DUMMY_CreateDevice()
/AliOS-Things-master/components/SDL2/src/main/windows/
A DSDL_windows_main.c55 argv = (char **)SDL_calloc(argc + 1, sizeof(*argv)); in main_getcmdline()
/AliOS-Things-master/components/SDL2/src/image/
A DIMG_xpm.c104 hash = (struct color_hash *)SDL_calloc(1, sizeof(*hash)); in create_colorhash()
121 hash->table = (struct hash_entry **)SDL_calloc(1, bytes); in create_colorhash()
135 hash->entries = (struct hash_entry *)SDL_calloc(1, bytes); in create_colorhash()
/AliOS-Things-master/components/SDL2/src/core/linux/
A DSDL_evdev.c144 _this = (SDL_EVDEV_PrivateData*)SDL_calloc(1, sizeof(*_this)); in SDL_EVDEV_Init()
480 item->touchscreen_data = SDL_calloc(1, sizeof(*item->touchscreen_data)); in SDL_EVDEV_init_touchscreen()
543 item->touchscreen_data->slots = SDL_calloc( in SDL_EVDEV_init_touchscreen()
606 mt_req_code = SDL_calloc(1, mt_req_size); in SDL_EVDEV_sync_device()
720 item = (SDL_evdevlist_item *) SDL_calloc(1, sizeof (SDL_evdevlist_item)); in SDL_EVDEV_device_added()

Completed in 26 milliseconds

12345