Home
last modified time | relevance | path

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

1234567

/external/qemu/distrib/sdl-1.2.15/src/loadso/win32/
DSDL_sysloadso.c42 wchar_t *errbuf_t = SDL_malloc(512 * sizeof(wchar_t)); in SDL_LoadObject()
43 wchar_t *sofile_t = SDL_malloc((MAX_PATH+1) * sizeof(wchar_t)); in SDL_LoadObject()
93 wchar_t *name_t = SDL_malloc((length + 1) * sizeof(wchar_t)); in SDL_LoadFunction()
94 wchar_t *errbuf_t = SDL_malloc(512 * sizeof(wchar_t)); in SDL_LoadFunction()
/external/qemu/distrib/sdl-1.2.15/src/video/wincommon/
DSDL_sysmouse.c112 cursor = (WMcursor *)SDL_malloc(sizeof(*cursor)); in WIN_CreateWMCursor()
134 cursor = (WMcursor *)SDL_malloc(sizeof(*cursor)); in WIN_CreateWMCursor()
146 aptr = cursor->ands = (Uint8 *)SDL_malloc((run+pad)*allowed_y); in WIN_CreateWMCursor()
147 xptr = cursor->xors = (Uint8 *)SDL_malloc((run+pad)*allowed_y); in WIN_CreateWMCursor()
/external/qemu/distrib/sdl-1.2.15/src/video/nanox/
DSDL_nxvideo.c85 device = (SDL_VideoDevice *) SDL_malloc (sizeof (SDL_VideoDevice)) ; in NX_CreateDevice()
89 SDL_malloc ((sizeof * device -> hidden)) ; in NX_CreateDevice()
217 SDL_modelist = (SDL_Rect **) SDL_malloc (sizeof (SDL_Rect *) * 2) ; in NX_VideoInit()
219 SDL_modelist [0] = (SDL_Rect *) SDL_malloc (sizeof(SDL_Rect)) ; in NX_VideoInit()
494 if (! GammaRamp_R) GammaRamp_R = (Uint16 *) SDL_malloc (sizeof (Uint16) * CI_SIZE) ; in NX_SetGammaRamp()
495 if (! GammaRamp_G) GammaRamp_G = (Uint16 *) SDL_malloc (sizeof (Uint16) * CI_SIZE) ; in NX_SetGammaRamp()
496 if (! GammaRamp_B) GammaRamp_B = (Uint16 *) SDL_malloc (sizeof (Uint16) * CI_SIZE) ; in NX_SetGammaRamp()
/external/qemu/distrib/sdl-1.2.15/src/joystick/
DSDL_joystick.c53 SDL_joysticks = (SDL_Joystick **)SDL_malloc(arraylen); in SDL_JoystickInit()
115 joystick = (SDL_Joystick *)SDL_malloc((sizeof *joystick)); in SDL_JoystickOpen()
129 joystick->axes = (Sint16 *)SDL_malloc in SDL_JoystickOpen()
133 joystick->hats = (Uint8 *)SDL_malloc in SDL_JoystickOpen()
137 joystick->balls = (struct balldelta *)SDL_malloc in SDL_JoystickOpen()
141 joystick->buttons = (Uint8 *)SDL_malloc in SDL_JoystickOpen()
/external/qemu/distrib/sdl-1.2.15/src/video/dummy/
DSDL_nullvideo.c90 device = (SDL_VideoDevice *)SDL_malloc(sizeof(SDL_VideoDevice)); in DUMMY_CreateDevice()
94 SDL_malloc((sizeof *device->hidden)); in DUMMY_CreateDevice()
168 this->hidden->buffer = SDL_malloc(width * height * (bpp / 8)); in DUMMY_SetVideoMode()
/external/qemu/distrib/sdl-1.2.15/src/joystick/beos/
DSDL_bejoystick.cc103 SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
128 SDL_malloc(joystick->naxes*sizeof(int16)); in SDL_SYS_JoystickOpen()
130 SDL_malloc(joystick->nhats*sizeof(uint8)); in SDL_SYS_JoystickOpen()
/external/qemu/distrib/sdl-1.2.15/src/video/svga/
DSDL_svgavideo.c112 device = (SDL_VideoDevice *)SDL_malloc(sizeof(SDL_VideoDevice)); in SVGA_CreateDevice()
116 SDL_malloc((sizeof *device->hidden)); in SVGA_CreateDevice()
282 SDL_vgamode[i] = (int *)SDL_malloc(SDL_nummodes[i]*sizeof(int)); in SVGA_VideoInit()
288 SDL_malloc((SDL_nummodes[i]+1)*sizeof(SDL_Rect *)); in SVGA_VideoInit()
294 SDL_modelist[i][j]=(SDL_Rect *)SDL_malloc(sizeof(SDL_Rect)); in SVGA_VideoInit()
402 current->pixels = SDL_malloc(current->h * current->pitch); in SVGA_SetVideoMode()
/external/qemu/distrib/sdl-1.2.15/src/audio/dummy/
DSDL_dummyaudio.c67 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in DUMMYAUD_CreateDevice()
71 SDL_malloc((sizeof *this->hidden)); in DUMMYAUD_CreateDevice()
/external/qemu/distrib/sdl-1.2.15/src/audio/macosx/
DSDL_coreaudio.c63 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in Audio_CreateDevice()
67 SDL_malloc((sizeof *this->hidden)); in Audio_CreateDevice()
282 buffer = SDL_malloc(bufferSize); in Core_OpenAudio()
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11mouse.c65 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in X11_CreateWMCursor()
73 x_data = (char *)SDL_malloc(clen); in X11_CreateWMCursor()
79 x_mask = (char *)SDL_malloc(clen); in X11_CreateWMCursor()
DSDL_x11yuv.c298 overlay = (SDL_Overlay *)SDL_malloc(sizeof *overlay); in X11_CreateYUVOverlay()
316 hwdata = (struct private_yuvhwdata *)SDL_malloc(sizeof *hwdata); in X11_CreateYUVOverlay()
388 hwdata->image->data = SDL_malloc(hwdata->image->data_size); in X11_CreateYUVOverlay()
398 overlay->pitches = (Uint16 *)SDL_malloc(overlay->planes * sizeof(Uint16)); in X11_CreateYUVOverlay()
399 overlay->pixels = (Uint8 **)SDL_malloc(overlay->planes * sizeof(Uint8 *)); in X11_CreateYUVOverlay()
DSDL_x11modes.c575 SDL_modelist = (SDL_Rect **)SDL_malloc(3*sizeof(SDL_Rect *)); in X11_GetVideoModes()
586 SDL_modelist[n] = (SDL_Rect *)SDL_malloc(sizeof(SDL_Rect)); in X11_GetVideoModes()
597 SDL_modelist[n] = (SDL_Rect *)SDL_malloc(sizeof(SDL_Rect)); in X11_GetVideoModes()
687 SDL_modelist = (SDL_Rect **)SDL_malloc((nmodes+2)*sizeof(SDL_Rect *)); in X11_GetVideoModes()
709 SDL_modelist[n] = (SDL_Rect *)SDL_malloc(sizeof(SDL_Rect)); in X11_GetVideoModes()
723 SDL_modelist[n] = (SDL_Rect *)SDL_malloc(sizeof(SDL_Rect)); in X11_GetVideoModes()
764 SDL_modelist = (SDL_Rect **)SDL_malloc((nummodes+1)*sizeof(SDL_Rect *)); in X11_GetVideoModes()
771 (SDL_Rect *)SDL_malloc(sizeof(SDL_Rect))) == NULL) in X11_GetVideoModes()
843 SDL_modelist = (SDL_Rect **)SDL_malloc((1+1)*sizeof(SDL_Rect *)); in X11_GetVideoModes()
849 SDL_modelist[n] = (SDL_Rect *)SDL_malloc(sizeof(SDL_Rect)); in X11_GetVideoModes()
/external/qemu/distrib/sdl-1.2.15/src/video/
DSDL_pixels.c44 format = SDL_malloc(sizeof(*format)); in SDL_AllocFormat()
126 format->palette = (SDL_Palette *)SDL_malloc(sizeof(SDL_Palette)); in SDL_AllocFormat()
133 (format->palette)->colors = (SDL_Color *)SDL_malloc( in SDL_AllocFormat()
452 map = (Uint8 *)SDL_malloc(src->ncolors); in Map1to1()
473 map = (Uint8 *)SDL_malloc(pal->ncolors*bpp); in Map1toN()
511 map = (SDL_BlitMap *)SDL_malloc(sizeof(*map)); in SDL_AllocBlitMap()
519 map->sw_data = (struct private_swaccel *)SDL_malloc(sizeof(*map->sw_data)); in SDL_AllocBlitMap()
/external/qemu/distrib/sdl-1.2.15/src/video/aalib/
DSDL_aavideo.c78 device = (SDL_VideoDevice *)SDL_malloc(sizeof(SDL_VideoDevice)); in AA_CreateDevice()
82 SDL_malloc((sizeof *device->hidden)); in AA_CreateDevice()
137 SDL_modelist[i] = SDL_malloc(sizeof(SDL_Rect)); in AA_VideoInit()
254 AA_buffer = SDL_malloc(width * height); in AA_SetVideoMode()
/external/qemu/distrib/sdl-1.2.15/src/video/xbios/
DSDL_xbios.c207 device = (SDL_VideoDevice *)SDL_malloc(sizeof(SDL_VideoDevice)); in XBIOS_CreateDevice()
211 SDL_malloc((sizeof *device->hidden)); in XBIOS_CreateDevice()
213 SDL_malloc((sizeof *device->gl_data)); in XBIOS_CreateDevice()
380 XBIOS_oldpalette = (void *)SDL_malloc(256*sizeof(long)); in XBIOS_VideoInit()
525 SDL_malloc((SDL_nummodes[i]+1)*sizeof(xbiosmode_t *)); in XBIOS_VideoInit()
531 SDL_xbiosmode[i][j]=(xbiosmode_t *)SDL_malloc(sizeof(xbiosmode_t)); in XBIOS_VideoInit()
541 SDL_malloc((SDL_nummodes[i]+1)*sizeof(SDL_Rect *)); in XBIOS_VideoInit()
547 SDL_modelist[i][j]=(SDL_Rect *)SDL_malloc(sizeof(SDL_Rect)); in XBIOS_VideoInit()
/external/qemu/distrib/sdl-1.2.15/src/video/bwindow/
DSDL_sysmouse.cc60 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in BE_CreateWMCursor()
65 cursor->bits = (char *)SDL_malloc(4+2*((allowed_x/8)*allowed_y)); in BE_CreateWMCursor()
/external/qemu/distrib/sdl-1.2.15/src/audio/windib/
DSDL_dibaudio.c70 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in Audio_CreateDevice()
74 SDL_malloc((sizeof *this->hidden)); in Audio_CreateDevice()
322 mixbuf = (Uint8 *)SDL_malloc(NUM_BUFFERS*spec->size); in DIB_OpenAudio()
/external/qemu/distrib/sdl-1.2.15/src/video/gem/
DSDL_gemmouse.c84 cursor = (WMcursor *)SDL_malloc(sizeof(WMcursor)); in GEM_CreateWMCursor()
91 new_mform = (MFORM *)SDL_malloc(sizeof(MFORM)); in GEM_CreateWMCursor()
/external/qemu/distrib/sdl-1.2.15/src/audio/disk/
DSDL_diskaudio.c84 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in DISKAUD_CreateDevice()
88 SDL_malloc((sizeof *this->hidden)); in DISKAUD_CreateDevice()
/external/qemu/distrib/sdl-1.2.15/src/audio/sun/
DSDL_sunaudio.c86 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in Audio_CreateDevice()
90 SDL_malloc((sizeof *this->hidden)); in Audio_CreateDevice()
350 ulaw_buf = (Uint8 *)SDL_malloc(fragsize); in DSP_OpenAudio()
/external/qemu/distrib/sdl-1.2.15/src/audio/
DSDL_audiomem.h24 #define SDL_AllocAudioMem SDL_malloc
/external/qemu/distrib/sdl-1.2.15/src/audio/macrom/
DSDL_romaudio.c74 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in Audio_CreateDevice()
78 SDL_malloc((sizeof *this->hidden)); in Audio_CreateDevice()
266 channel = (SndChannelPtr)SDL_malloc(sizeof(*channel)); in Mac_OpenAudio()
466 channel = (SndChannelPtr)SDL_malloc(sizeof(*channel)); in Mac_OpenAudio()
/external/qemu/distrib/sdl-1.2.15/src/audio/dart/
DSDL_dart.c183 _this->hidden->pMixBuffers = (MCI_MIX_BUFFER *) SDL_malloc(sizeof(MCI_MIX_BUFFER)*iNumBufs); in DART_OpenAudio()
213 pMixBufferDesc pBufferDesc = (pMixBufferDesc) SDL_malloc(sizeof(tMixBufferDesc));; in DART_OpenAudio()
407 this = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in Audio_CreateDevice()
412 SDL_malloc((sizeof *this->hidden)); in Audio_CreateDevice()
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
DSDL_dx5yuv.c135 codes = SDL_malloc(numcodes*sizeof(*codes)); in DX5_CreateYUVOverlay()
149 overlay = (SDL_Overlay *)SDL_malloc(sizeof *overlay); in DX5_CreateYUVOverlay()
165 hwdata = (struct private_yuvhwdata *)SDL_malloc(sizeof *hwdata); in DX5_CreateYUVOverlay()
/external/qemu/distrib/sdl-1.2.15/src/audio/baudio/
DSDL_beaudio.cc64 device = (SDL_AudioDevice *)SDL_malloc(sizeof(SDL_AudioDevice)); in Audio_CreateDevice()
68 SDL_malloc((sizeof *device->hidden)); in Audio_CreateDevice()

1234567