/external/qemu/distrib/sdl-1.2.12/src/video/photon/ |
SDL_phyuv.c | 74 struct private_yuvhwdata* hwdata; local 94 overlay->hwdata = NULL; 100 hwdata = SDL_calloc(1, sizeof(struct private_yuvhwdata)); 102 if (hwdata == NULL) 109 overlay->hwdata = hwdata; 112 if (overlay->hwdata->channel == NULL) 114 if ((overlay->hwdata->channel = PgCreateVideoChannel(Pg_VIDEO_CHANNEL_SCALER, 0)) == NULL) 123 overlay->hwdata->forcedredraw=0; 126 overlay->hwdata->CurrentWindowPos.x = pos.x [all...] |
SDL_ph_image.c | 526 if (surface->hwdata!=NULL) 528 SDL_SetError("ph_AllocHWSurface(): hwdata already exists!\n"); 531 surface->hwdata=SDL_malloc(sizeof(struct private_hwdata)); 532 SDL_memset(surface->hwdata, 0x00, sizeof(struct private_hwdata)); 533 surface->hwdata->offscreenctx=PdCreateOffscreenContext(0, surface->w, surface->h, Pg_OSC_MEM_PAGE_ALIGN); 534 if (surface->hwdata->offscreenctx == NULL) 539 surface->pixels=PdGetOffscreenContextPtr(surface->hwdata->offscreenctx); 542 PhDCRelease(surface->hwdata->offscreenctx); 546 surface->pitch=surface->hwdata->offscreenctx->pitch; 552 surface->hwdata->crlockparam.flags=0 [all...] |
SDL_ph_events.c | 245 int lockedstate=current_overlay->hwdata->locked; 246 int chromastate=current_overlay->hwdata->ischromakey; 250 current_overlay->hwdata->locked=1; 255 dst.x=current_overlay->hwdata->CurrentViewPort.pos.x; 256 dst.y=current_overlay->hwdata->CurrentViewPort.pos.y; 257 dst.w=current_overlay->hwdata->CurrentViewPort.size.w; 258 dst.h=current_overlay->hwdata->CurrentViewPort.size.h; 259 current_overlay->hwdata->ischromakey=0; 263 current_overlay->hwdata->ischromakey=chromastate; 264 current_overlay->hwdata->locked=lockedstate [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/ |
SDL_gsyuv.c | 78 struct private_yuvhwdata *hwdata; local 132 hwdata = (struct private_yuvhwdata *)SDL_malloc(sizeof *hwdata); 133 overlay->hwdata = hwdata; 134 if ( hwdata == NULL ) { 139 hwdata->ipu_fd = -1; 140 hwdata->pixels = (Uint8 *)SDL_malloc(width*height*2); 141 if ( hwdata->pixels == NULL ) { 146 hwdata->macroblocks = (width/16) * (height/16) 320 struct private_yuvhwdata *hwdata; local 443 struct private_yuvhwdata *hwdata; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/beos/ |
SDL_bejoystick.cc | 102 joystick->hwdata = (struct joystick_hwdata *) 103 SDL_malloc(sizeof(*joystick->hwdata)); 104 if ( joystick->hwdata == NULL ) { 108 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); 110 joystick->hwdata->stick = stick; 127 joystick->hwdata->new_axes = (int16 *) 129 joystick->hwdata->new_hats = (uint8 *) 131 if ( ! joystick->hwdata->new_hats || ! joystick->hwdata->new_axes ) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/amigaos/ |
SDL_sysjoystick.c | 117 if(!(joystick->hwdata=SDL_malloc(sizeof(struct joystick_hwdata)))) 136 joystick->hwdata->joystate=0L; 159 if(!(joystick->hwdata->joystate&JPF_JOY_DOWN)) 164 if(!(joystick->hwdata->joystate&JPF_JOY_UP)) 167 else if(joystick->hwdata->joystate&(JPF_JOY_UP|JPF_JOY_DOWN)) 172 if(!(joystick->hwdata->joystate&JPF_JOY_LEFT)) 177 if(!(joystick->hwdata->joystate&JPF_JOY_RIGHT)) 180 else if(joystick->hwdata->joystate&(JPF_JOY_LEFT|JPF_JOY_RIGHT)) 183 else if(joystick->hwdata->joystate&(JPF_JOY_LEFT|JPF_JOY_RIGHT)) 187 else if(joystick->hwdata->joystate&(JPF_JOY_UP|JPF_JOY_DOWN) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/x11/ |
SDL_x11yuv.c | 96 struct private_yuvhwdata *hwdata; local 240 hwdata = (struct private_yuvhwdata *)SDL_malloc(sizeof *hwdata); 241 overlay->hwdata = hwdata; 242 if ( hwdata == NULL ) { 248 hwdata->port = xv_port; 250 yuvshm = &hwdata->yuvshm; 252 hwdata->image = SDL_NAME(XvShmCreateImage)(GFX_Display, xv_port, format, 255 if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) 359 struct private_yuvhwdata *hwdata; local 384 struct private_yuvhwdata *hwdata; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/directfb/ |
SDL_DirectFB_yuv.c | 55 struct private_yuvhwdata *hwdata = (struct private_yuvhwdata *) data; local 64 hwdata->layer_id = id; 73 static DFBResult CreateYUVSurface(_THIS, struct private_yuvhwdata *hwdata, 81 ret = dfb->EnumDisplayLayers (dfb, enum_layers_callback, hwdata); 88 if (!hwdata->layer_id) 91 ret = dfb->GetDisplayLayer (dfb, hwdata->layer_id, &layer); 138 ret = layer->GetSurface (layer, &hwdata->surface); 146 hwdata->layer = layer; 154 struct private_yuvhwdata *hwdata; local 173 hwdata = SDL_calloc(1, sizeof(struct private_yuvhwdata)) 276 struct private_yuvhwdata *hwdata; local [all...] |
SDL_DirectFB_video.c | 603 if (current->hwdata && current->hwdata->surface) 605 current->hwdata->surface->Release (current->hwdata->surface); 606 current->hwdata->surface = NULL; 609 if (current->hwdata->palette) 611 current->hwdata->palette->Release (current->hwdata->palette); 612 current->hwdata->palette = NULL; 615 else if (!current->hwdata) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/bwindow/ |
SDL_sysyuv.cc | 131 struct private_yuvhwdata* hwdata; local 169 overlay->hwdata = NULL; 175 hwdata = (struct private_yuvhwdata*)SDL_calloc(1, sizeof(struct private_yuvhwdata)); 177 if (hwdata == NULL) 184 overlay->hwdata = hwdata; 185 overlay->hwdata->display = display; 186 overlay->hwdata->bview = NULL; 187 overlay->hwdata->bbitmap = NULL; 188 overlay->hwdata->locked = 0 [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/bsd/ |
SDL_sysjoystick.c | 263 joy->hwdata = hw; 396 if (joy->hwdata->type == BSDJOY_JOY) { 397 if (read(joy->hwdata->fd, &gameport, sizeof gameport) != sizeof gameport) 399 if (abs(joy->hwdata->x - gameport.x) > 8) { 400 joy->hwdata->x = gameport.x; 401 if (joy->hwdata->x < joy->hwdata->xmin) { 402 joy->hwdata->xmin = joy->hwdata->x; 404 if (joy->hwdata->x > joy->hwdata->xmax) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/windx5/ |
SDL_dx5yuv.c | 125 struct private_yuvhwdata *hwdata; local 165 hwdata = (struct private_yuvhwdata *)SDL_malloc(sizeof *hwdata); 166 overlay->hwdata = hwdata; 167 if ( hwdata == NULL ) { 172 hwdata->surface = CreateYUVSurface(this, width, height, format); 173 if ( hwdata->surface == NULL ) { 180 overlay->pitches = hwdata->pitches; 181 overlay->pixels = hwdata->planes 285 struct private_yuvhwdata *hwdata; local [all...] |
SDL_dx5video.c | [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/ |
SDL_cgxaccel.c | 52 if(surface->hwdata) 54 if(surface->hwdata->mask) 55 SDL_free(surface->hwdata->mask); 57 if(surface->hwdata->mask=SDL_malloc(RASSIZE(surface->w,surface->h))) 62 SDL_memset(surface->hwdata->mask,255,RASSIZE(surface->w,surface->h)); 66 if(lock=LockBitMapTags(surface->hwdata->bmap,LBMI_BASEADDRESS,(ULONG)&surface->pixels, 75 register unsigned char *dest=surface->hwdata->mask,*map=surface->pixels; 103 register unsigned char *dest=surface->hwdata->mask,*map=surface->pixels; 131 register unsigned char *dest=surface->hwdata->mask,*map=surface->pixels; 158 SDL_free(surface->hwdata->mask) [all...] |
SDL_cgximage.c | 57 if(!screen->hwdata) { 58 if(!(screen->hwdata=SDL_malloc(sizeof(struct private_hwdata)))) 63 screen->hwdata->lock=NULL; 64 screen->hwdata->allocated=0; 65 screen->hwdata->mask=NULL; 66 screen->hwdata->bmap=SDL_RastPort->BitMap; 67 screen->hwdata->videodata=this; 69 if(!(screen->hwdata->lock=LockBitMapTags(screen->hwdata->bmap, 72 SDL_free(screen->hwdata); [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/riscos/ |
SDL_sysjoystick.c | 92 if(!(joystick->hwdata=SDL_malloc(sizeof(struct joystick_hwdata)))) 103 joystick->hwdata->joystate=0; 122 int oldstate = joystick->hwdata->joystate; 153 joystick->hwdata->joystate = newstate; 163 if(joystick->hwdata) 164 SDL_free(joystick->hwdata);
|
/external/qemu/distrib/sdl-1.2.12/src/joystick/dc/ |
SDL_sysjoystick.c | 91 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); 92 if (joystick->hwdata == NULL) 97 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); 134 prev_buttons = joystick->hwdata->prev_buttons; 160 prev_cond = &joystick->hwdata->prev_cond; 174 joystick->hwdata->prev_buttons = buttons; 175 joystick->hwdata->prev_cond = cond; 181 if (joystick->hwdata != NULL) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/macos/ |
SDL_sysjoystick.c | 164 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); 165 if (joystick->hwdata == NULL) 170 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); 171 SDL_strlcpy(joystick->hwdata->name, SDL_SYS_JoystickName(index), SDL_arraysize(joystick->hwdata->name)); 172 joystick->name = joystick->hwdata->name; 179 joystick->hwdata->refs); 190 &(joystick->hwdata->refs[count2])) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/ |
SDL_sysjoystick.h | 48 struct joystick_hwdata *hwdata; /* Driver dependent information */ member in struct:_SDL_Joystick
|
/external/qemu/distrib/sdl-1.2.12/src/joystick/win32/ |
SDL_mmjoystick.c | 214 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); 215 if (joystick->hwdata == NULL) 220 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); 223 joystick->hwdata->id = SYS_JoystickID[index]; 226 joystick->hwdata->transaxis[i].offset = 228 joystick->hwdata->transaxis[i].scale = 231 joystick->hwdata->transaxis[i].offset = 0; 232 joystick->hwdata->transaxis[i].scale = 1.0; /* Just in case * [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/macdsp/ |
SDL_dspvideo.c | 741 if (current->hwdata) 742 SDL_free(current->hwdata); 874 current->hwdata = (private_hwdata*) SDL_malloc (sizeof (private_hwdata)); 875 if (current ->hwdata == NULL) { 879 current->hwdata->offscreen = dsp_back_buffer; 892 current->hwdata = (private_hwdata*) SDL_malloc (sizeof (private_hwdata)); 893 if (current ->hwdata == NULL) { 898 SDL_memset (current->hwdata, 0, sizeof (private_hwdata)); 899 current->hwdata->offscreen = dsp_back_buffer; 988 if ( noErr != NewGWorld (&(surface->hwdata->mask), depth, &rect, 0, SDL_Display, 0 ) < 0 ) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/os2/ |
SDL_sysjoystick.c | 333 joystick->hwdata = (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); 334 if (joystick->hwdata == NULL) 340 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); 345 joystick->hwdata->id = SYS_JoyData[index].id; 350 joystick->hwdata->transaxes[i].offset = ((AXIS_MAX + AXIS_MIN)>>1) - SYS_JoyData[index].axes_med[i]; 351 //joystick->hwdata->transaxes[i].scale = (float)((AXIS_MAX - AXIS_MIN)/(SYS_JoyData[index].axes_max[i]-SYS_JoyData[index].axes_min[i])); 352 joystick->hwdata->transaxes[i].scale1 = (float)abs((AXIS_MIN/SYS_JoyData[index].axes_min[i])); 353 joystick->hwdata->transaxes[i].scale2 = (float)abs((AXIS_MAX/SYS_JoyData[index].axes_max[i])) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/joystick/linux/ |
SDL_sysjoystick.c | 539 joystick->hwdata->hats = (struct hwdata_hat *)SDL_malloc( 541 if ( joystick->hwdata->hats == NULL ) { 545 joystick->hwdata->hats[i].axis[0] = 1; 546 joystick->hwdata->hats[i].axis[1] = 1; 555 joystick->hwdata->balls = (struct hwdata_ball *)SDL_malloc( 557 if ( joystick->hwdata->balls == NULL ) { 561 joystick->hwdata->balls[i].axis[0] = 0; 562 joystick->hwdata->balls[i].axis[1] = 0; 670 joystick->hwdata->is_hid = SDL_TRUE; 678 joystick->hwdata->key_map[i-BTN_MISC] [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/ |
SDL_fbvideo.h | 151 ((vidmem_bucket *)surface->hwdata)->dirty = 1; 156 return ((vidmem_bucket *)surface->hwdata)->dirty;
|
/external/qemu/distrib/sdl-1.2.12/src/video/dga/ |
SDL_dgavideo.c | 650 screen->hwdata = (struct private_hwdata *)&surfaces; 668 ((vidmem_bucket *)surface->hwdata)->dirty = 1; 673 return ((vidmem_bucket *)surface->hwdata)->dirty; 765 surface->hwdata = (struct private_hwdata *)bucket; 783 if ( bucket == (vidmem_bucket *)surface->hwdata ) { 822 surface->hwdata = NULL;
|