Mercurial > mplayer.hg
comparison libvo/vo_sdl.c @ 448:198b46b739d8
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
author | arpi_esp |
---|---|
date | Sun, 15 Apr 2001 20:31:58 +0000 |
parents | 6937ae376998 |
children | e27a365b0303 |
comparison
equal
deleted
inserted
replaced
447:b3b28a0d9404 | 448:198b46b739d8 |
---|---|
375 //static int sdl_setup (int width, int height) | 375 //static int sdl_setup (int width, int height) |
376 { | 376 { |
377 struct sdl_priv_s *priv = &sdl_priv; | 377 struct sdl_priv_s *priv = &sdl_priv; |
378 unsigned int sdl_format; | 378 unsigned int sdl_format; |
379 | 379 |
380 sdl_format = format; | 380 |
381 switch(format){ | 381 switch(format){ |
382 case IMGFMT_YV12: | 382 case IMGFMT_YV12: |
383 printf("\nSDL: Using 0x%X (YV12) image format\n", format); break; | 383 sdl_format=SDL_YV12_OVERLAY; |
384 case IMGFMT_IYUV: | 384 printf("SDL: Using YV12 image format\n"); |
385 printf("\nSDL: Using 0x%X (IYUV) image format\n", format); break; | 385 break; |
386 case IMGFMT_YUY2: | 386 case IMGFMT_YUY2: |
387 printf("\nSDL: Using 0x%X (YUY2) image format\n", format); break; | 387 sdl_format=SDL_YUY2_OVERLAY; |
388 case IMGFMT_UYVY: | 388 printf("SDL: Using YUY2 image format\n"); |
389 printf("\nSDL: Using 0x%X (UYVY) image format\n", format); break; | 389 break; |
390 case IMGFMT_YVYU: | 390 case IMGFMT_UYVY: |
391 printf("\nSDL: Using 0x%X (YVYU) image format\n", format); break; | 391 sdl_format=SDL_UYVY_OVERLAY; |
392 case IMGFMT_I420: | 392 printf("SDL: Using UYVY image format\n"); |
393 printf("\nSDL: Using 0x%X (I420) image format\n", format); | 393 break; |
394 printf("SDL: Mapping I420 to IYUV (untested please report if it works)\n"); | 394 default: |
395 sdl_format = SDL_IYUV_OVERLAY; | 395 printf("SDL: Unsupported image format (0x%X)\n",format); |
396 break; | 396 return -1; |
397 default: | 397 } |
398 printf("\nSDL: Unsupported image format (0x%X)\n",format); | |
399 return -1; | |
400 } | |
401 | 398 |
402 sdl_open (NULL, NULL); | 399 sdl_open (NULL, NULL); |
403 | 400 |
404 /* Set output window title */ | 401 /* Set output window title */ |
405 SDL_WM_SetCaption (".: MPlayer : F = Fullscreen/Windowed : C = Cycle Fullscreen Resolutions :.", "SDL Video Out"); | 402 SDL_WM_SetCaption (".: MPlayer : F = Fullscreen/Windowed : C = Cycle Fullscreen Resolutions :.", "SDL Video Out"); |