Home
last modified time | relevance | path

Searched refs:SDL_malloc (Results 1 – 25 of 142) sorted by relevance

123456

/AliOS-Things-master/components/SDL2/src/filesystem/unix/
A DSDL_sysfilesystem.c103 retvalargs = SDL_malloc(len); in SDL_GetBasePath()
109 retval = SDL_malloc(PATH_MAX + 1); in SDL_GetBasePath()
218 retval = (char *) SDL_malloc(len); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/filesystem/haiku/
A DSDL_sysfilesystem.cc60 char *retval = (char *) SDL_malloc(len + 2); in SDL_GetBasePath()
93 char *retval = (char *) SDL_malloc(len); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/video/alios/
A DSDL_AliOS_mouse.c56 cursor = SDL_malloc(sizeof(SDL_Cursor)); in AliOS_CreateCursor()
57 curdata = SDL_malloc(sizeof(AliOS_CursorData)); in AliOS_CreateCursor()
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_vulkan_utils.c235 physicalDevices = SDL_malloc(sizeof(VkPhysicalDevice) * physicalDeviceCount); in SDL_Vulkan_Display_CreateSurface()
285 displayProperties = SDL_malloc(sizeof(VkDisplayPropertiesKHR) * displayPropertiesCount); in SDL_Vulkan_Display_CreateSurface()
318 …displayModeProperties = SDL_malloc(sizeof(VkDisplayModePropertiesKHR) * displayModePropertiesCount… in SDL_Vulkan_Display_CreateSurface()
371 …displayPlaneProperties = SDL_malloc(sizeof(VkDisplayPlanePropertiesKHR) * displayPlanePropertiesCo… in SDL_Vulkan_Display_CreateSurface()
406 planeSupportedDisplays = SDL_malloc(sizeof(VkDisplayKHR) * planeSupportedDisplaysCount); in SDL_Vulkan_Display_CreateSurface()
/AliOS-Things-master/components/SDL2/src/haptic/darwin/
A DSDL_syshaptic.c498 SDL_malloc(sizeof(*haptic->hwdata)); in SDL_SYS_HapticOpenFromService()
538 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_SYS_HapticOpenFromService()
744 rglDir = SDL_malloc(sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
819 envelope = SDL_malloc(sizeof(FFENVELOPE)); in SDL_SYS_ToFFEFFECT()
834 axes = SDL_malloc(sizeof(DWORD) * dest->cAxes); in SDL_SYS_ToFFEFFECT()
853 constant = SDL_malloc(sizeof(FFCONSTANTFORCE)); in SDL_SYS_ToFFEFFECT()
897 periodic = SDL_malloc(sizeof(FFPERIODIC)); in SDL_SYS_ToFFEFFECT()
944 condition = SDL_malloc(sizeof(FFCONDITION) * dest->cAxes); in SDL_SYS_ToFFEFFECT()
988 ramp = SDL_malloc(sizeof(FFRAMPFORCE)); in SDL_SYS_ToFFEFFECT()
1026 custom = SDL_malloc(sizeof(FFCUSTOMFORCE)); in SDL_SYS_ToFFEFFECT()
[all …]
/AliOS-Things-master/components/SDL2/src/
A DSDL_hints.c85 hint = (SDL_Hint *)SDL_malloc(sizeof(*hint)); in SDL_SetHintWithPriority()
159 entry = (SDL_HintWatch *)SDL_malloc(sizeof(*entry)); in SDL_AddHintCallback()
174 hint = (SDL_Hint *)SDL_malloc(sizeof(*hint)); in SDL_AddHintCallback()
A DSDL_dataqueue.c60 SDL_DataQueue *queue = (SDL_DataQueue *) SDL_malloc(sizeof (SDL_DataQueue)); in SDL_NewDataQueue()
74 …SDL_DataQueuePacket *packet = (SDL_DataQueuePacket *) SDL_malloc(sizeof (SDL_DataQueuePacket) + pa… in SDL_NewDataQueue()
153 … packet = (SDL_DataQueuePacket *) SDL_malloc(sizeof (SDL_DataQueuePacket) + queue->packet_size); in AllocateDataQueuePacket()
A DSDL_internal.h39 …LLOC_STACKSIZE)), (*(pisstack) ? SDL_stack_alloc(type, count) : (type*)SDL_malloc(sizeof(type)*(co…
/AliOS-Things-master/components/SDL2/src/joystick/haiku/
A DSDL_haikujoystick.cc131 SDL_malloc(sizeof(*joystick->hwdata)); in HAIKU_JoystickOpen()
154 SDL_malloc(joystick->naxes * sizeof(int16)); in HAIKU_JoystickOpen()
156 SDL_malloc(joystick->nhats * sizeof(uint8)); in HAIKU_JoystickOpen()
/AliOS-Things-master/components/SDL2/src/video/windows/
A DSDL_windowsshape.c32 SDL_WindowShaper* result = (SDL_WindowShaper *)SDL_malloc(sizeof(SDL_WindowShaper)); in Win32_CreateShaper()
38 result->driverdata = (SDL_ShapeData*)SDL_malloc(sizeof(SDL_ShapeData)); in Win32_CreateShaper()
/AliOS-Things-master/components/SDL2/src/image/
A DIMG_xcf.c233 data = (char *) SDL_malloc (sizeof (char) * tmp); in read_string()
273 prop->data.colormap.cmap = (char *) SDL_malloc (sizeof (char) * prop->data.colormap.num * 3); in xcf_read_property()
316 h = (xcf_header *) SDL_malloc (sizeof (xcf_header)); in read_xcf_header()
381 l = (xcf_layer *) SDL_malloc (sizeof (xcf_layer)); in read_xcf_layer()
421 l = (xcf_channel *) SDL_malloc (sizeof (xcf_channel)); in read_xcf_channel()
470 h = (xcf_hierarchy *) SDL_malloc (sizeof (xcf_hierarchy)); in read_xcf_hierarchy()
494 l = (xcf_level *) SDL_malloc (sizeof (xcf_level)); in read_xcf_level()
515 load = (unsigned char *) SDL_malloc (len); // expect this is okay in load_xcf_tile_none()
532 t = load = (unsigned char *) SDL_malloc (len); in load_xcf_tile_rle()
/AliOS-Things-master/components/SDL2/src/haptic/windows/
A DSDL_dinputhaptic.c285 haptic->hwdata = (struct haptic_hwdata *)SDL_malloc(sizeof(*haptic->hwdata)); in SDL_DINPUT_HapticOpenFromDevice()
400 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_DINPUT_HapticOpenFromDevice()
560 rglDir = SDL_malloc(sizeof(LONG) * naxes); in SDL_SYS_SetDirection()
631 envelope = SDL_malloc(sizeof(DIENVELOPE)); in SDL_SYS_ToDIEFFECT()
646 axes = SDL_malloc(sizeof(DWORD) * dest->cAxes); in SDL_SYS_ToDIEFFECT()
664 constant = SDL_malloc(sizeof(DICONSTANTFORCE)); in SDL_SYS_ToDIEFFECT()
707 periodic = SDL_malloc(sizeof(DIPERIODIC)); in SDL_SYS_ToDIEFFECT()
753 condition = SDL_malloc(sizeof(DICONDITION) * dest->cAxes); in SDL_SYS_ToDIEFFECT()
795 ramp = SDL_malloc(sizeof(DIRAMPFORCE)); in SDL_SYS_ToDIEFFECT()
833 custom = SDL_malloc(sizeof(DICUSTOMFORCE)); in SDL_SYS_ToDIEFFECT()
[all …]
A DSDL_xinputhaptic.c83 item = (SDL_hapticlist_item *)SDL_malloc(sizeof(SDL_hapticlist_item)); in SDL_XINPUT_MaybeAddDevice()
180 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_XINPUT_HapticOpenFromUserIndex()
188 haptic->hwdata = (struct haptic_hwdata *) SDL_malloc(sizeof(*haptic->hwdata)); in SDL_XINPUT_HapticOpenFromUserIndex()
/AliOS-Things-master/components/SDL2/src/video/wayland/
A DSDL_waylanddatamanager.c118 output_buffer = SDL_malloc(new_buffer_length); in read_pipe()
192 internal_buffer = SDL_malloc(length); in mime_data_list_add()
209 mime_data->mime_type = SDL_malloc(mime_type_length); in mime_data_list_add()
306 buffer = SDL_malloc(mime_data->length); in Wayland_data_source_get_data()
/AliOS-Things-master/components/SDL2/src/filesystem/android/
A DSDL_sysfilesystem.c49 char *fullpath = (char *)SDL_malloc(pathlen); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/audio/disk/
A DSDL_diskaudio.c136 SDL_malloc(sizeof(*this->hidden)); in DISKAUDIO_OpenDevice()
156 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->spec.size); in DISKAUDIO_OpenDevice()
/AliOS-Things-master/components/SDL2/src/filesystem/emscripten/
A DSDL_sysfilesystem.c58 retval = (char *) SDL_malloc(len); in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/src/audio/sndio/
A DSDL_sndioaudio.c247 SDL_malloc(sizeof(*this->hidden)); in SNDIO_OpenDevice()
264 SDL_malloc(sizeof(struct pollfd) * SNDIO_sio_nfds(this->hidden->dev))) == NULL) { in SNDIO_OpenDevice()
333 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->hidden->mixlen); in SNDIO_OpenDevice()
/AliOS-Things-master/components/SDL2/src/thread/windows/
A DSDL_sysmutex.c44 mutex = (SDL_mutex *) SDL_malloc(sizeof(*mutex)); in SDL_CreateMutex()
/AliOS-Things-master/components/SDL2/test/
A Dtestvulkan.c265 extensions = SDL_malloc(sizeof(const char *) * extensionCount); in createInstance()
349 physicalDevices = SDL_malloc(sizeof(VkPhysicalDevice) * physicalDeviceCount); in findPhysicalDevice()
389 SDL_malloc(sizeof(VkQueueFamilyProperties) * queueFamiliesPropertiesAllocatedSize); in findPhysicalDevice()
453 SDL_malloc(sizeof(VkExtensionProperties) * deviceExtensionsAllocatedSize); in findPhysicalDevice()
627 SDL_malloc(sizeof(VkSurfaceFormatKHR) * vulkanContext.surfaceFormatsAllocatedCount); in getSurfaceFormats()
665 vulkanContext.swapchainImages = SDL_malloc(sizeof(VkImage) * vulkanContext.swapchainImageCount); in getSwapchainImages()
816 SDL_malloc(sizeof(VkCommandBuffer) * vulkanContext.swapchainImageCount); in createCommandBuffers()
834 vulkanContext.fences = SDL_malloc(sizeof(VkFence) * vulkanContext.swapchainImageCount); in createFences()
A Dtestnative.c188 positions = (SDL_Rect *) SDL_malloc(NUM_SPRITES * sizeof(SDL_Rect)); in main()
189 velocities = (SDL_Rect *) SDL_malloc(NUM_SPRITES * sizeof(SDL_Rect)); in main()
/AliOS-Things-master/components/SDL2/src/audio/sun/
A DSDL_sunaudio.c212 SDL_malloc((sizeof *this->hidden)); in SUNAUDIO_OpenDevice()
314 this->hidden->ulaw_buf = (Uint8 *) SDL_malloc(this->hidden->fragsize); in SUNAUDIO_OpenDevice()
334 this->hidden->mixbuf = (Uint8 *) SDL_malloc(this->spec.size); in SUNAUDIO_OpenDevice()
/AliOS-Things-master/components/SDL2/src/stdlib/
A DSDL_getenv.c99 new_variable = (char *) SDL_malloc(len); in SDL_setenv()
129 new_variable = (char *) SDL_malloc(len); in SDL_setenv()
/AliOS-Things-master/components/SDL2/src/video/haiku/
A DSDL_bclipboard.cc72 result = (char *)SDL_malloc((length + 1) * sizeof(char)); in HAIKU_GetClipboardText()
/AliOS-Things-master/components/SDL2/src/thread/psp/
A DSDL_sysmutex.c45 mutex = (SDL_mutex *) SDL_malloc(sizeof(*mutex)); in SDL_CreateMutex()

Completed in 27 milliseconds

123456