Lines Matching full:overlay
18 SDL_Overlay *overlay;
274 rect.w=overlay->w;
275 rect.h=overlay->h;
280 SDL_DisplayYUVOverlay(overlay,&rect);
285 rect.w=overlay->w/2;
286 rect.h=overlay->h/2;
296 SDL_DisplayYUVOverlay(overlay,&rect);
318 fprintf(stderr, " -fullscreen (test overlay in fullscreen mode)\n");
480 SDL_WM_SetCaption("SDL test overlay", "testoverlay");
531 /* Create the overlay */
532 overlay = SDL_CreateYUVOverlay(pic->w, pic->h, overlay_format, screen);
533 if ( overlay == NULL ) {
534 fprintf(stderr, "Couldn't create overlay: %s\n", SDL_GetError());
537 printf("Created %dx%dx%d %s %s overlay\n",overlay->w,overlay->h,overlay->planes,
538 overlay->hw_overlay?"hardware":"software",
539 overlay->format==SDL_YV12_OVERLAY?"YV12":
540 overlay->format==SDL_IYUV_OVERLAY?"IYUV":
541 overlay->format==SDL_YUY2_OVERLAY?"YUY2":
542 overlay->format==SDL_UYVY_OVERLAY?"UYVY":
543 overlay->format==SDL_YVYU_OVERLAY?"YVYU":
545 for(i=0; i<overlay->planes; i++)
547 printf(" plane %d: pitch=%d\n", i, overlay->pitches[i]);
550 /* Convert to YUV, and draw to the overlay */
554 switch(overlay->format)
557 ConvertRGBtoYV12(pic,overlay,monochrome,luminance);
560 ConvertRGBtoUYVY(pic,overlay,monochrome,luminance);
563 ConvertRGBtoYVYU(pic,overlay,monochrome,luminance);
566 ConvertRGBtoYUY2(pic,overlay,monochrome,luminance);
569 ConvertRGBtoIYUV(pic,overlay,monochrome,luminance);