Home | History | Annotate | Download | only in x11

Lines Matching defs:overlay

95 	SDL_Overlay *overlay;
197 /* Enable auto-painting of the overlay colorkey */
221 /* Create the overlay structure */
222 overlay = (SDL_Overlay *)SDL_malloc(sizeof *overlay);
223 if ( overlay == NULL ) {
228 SDL_memset(overlay, 0, (sizeof *overlay));
231 overlay->format = format;
232 overlay->w = width;
233 overlay->h = height;
236 overlay->hwfuncs = &x11_yuvfuncs;
237 overlay->hw_overlay = 1;
241 overlay->hwdata = hwdata;
245 SDL_FreeYUVOverlay(overlay);
256 /* Ajust overlay width according to pitch */
300 /* Ajust overlay width according to pitch */
309 SDL_FreeYUVOverlay(overlay);
315 SDL_FreeYUVOverlay(overlay);
320 /* Find the pitch and offset values for the overlay */
321 overlay->planes = hwdata->image->num_planes;
322 overlay->pitches = (Uint16 *)SDL_malloc(overlay->planes * sizeof(Uint16));
323 overlay->pixels = (Uint8 **)SDL_malloc(overlay->planes * sizeof(Uint8 *));
324 if ( !overlay->pitches || !overlay->pixels ) {
326 SDL_FreeYUVOverlay(overlay);
329 for ( i=0; i<overlay->planes; ++i ) {
330 overlay->pitches[i] = hwdata->image->pitches[i];
331 overlay->pixels[i] = (Uint8 *)hwdata->image->data +
344 return(overlay);
347 int X11_LockYUVOverlay(_THIS, SDL_Overlay *overlay)
352 void X11_UnlockYUVOverlay(_THIS, SDL_Overlay *overlay)
357 int X11_DisplayYUVOverlay(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst)
361 hwdata = overlay->hwdata;
382 void X11_FreeYUVOverlay(_THIS, SDL_Overlay *overlay)
386 hwdata = overlay->hwdata;
400 if ( overlay->pitches ) {
401 SDL_free(overlay->pitches);
402 overlay->pitches = NULL;
404 if ( overlay->pixels ) {
405 SDL_free(overlay->pixels);
406 overlay->pixels = NULL;