diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-15 20:31:58 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-04-15 20:31:58 +0000 |
commit | 21f9a7c8571420a820309d6e76bd78dafe652d97 (patch) | |
tree | 7b5ac72566b9d4b7bdef58090bb5b440d21089b8 /libvo/vo_sdl.c | |
parent | 448db7e50bab753155de986e1da55687df39016d (diff) |
qrva eletbe nem kene cvs-t elbaszni inkabb ne nyuljatok hozza baz+
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@449 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_sdl.c')
-rw-r--r-- | libvo/vo_sdl.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index 73e301d186..1b757a5c3b 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -377,27 +377,24 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 struct sdl_priv_s *priv = &sdl_priv; unsigned int sdl_format; - sdl_format = format; + switch(format){ - case IMGFMT_YV12: - printf("\nSDL: Using 0x%X (YV12) image format\n", format); break; - case IMGFMT_IYUV: - printf("\nSDL: Using 0x%X (IYUV) image format\n", format); break; - case IMGFMT_YUY2: - printf("\nSDL: Using 0x%X (YUY2) image format\n", format); break; - case IMGFMT_UYVY: - printf("\nSDL: Using 0x%X (UYVY) image format\n", format); break; - case IMGFMT_YVYU: - printf("\nSDL: Using 0x%X (YVYU) image format\n", format); break; - case IMGFMT_I420: - printf("\nSDL: Using 0x%X (I420) image format\n", format); - printf("SDL: Mapping I420 to IYUV (untested please report if it works)\n"); - sdl_format = SDL_IYUV_OVERLAY; - break; - default: - printf("\nSDL: Unsupported image format (0x%X)\n",format); - return -1; - } + case IMGFMT_YV12: + sdl_format=SDL_YV12_OVERLAY; + printf("SDL: Using YV12 image format\n"); + break; + case IMGFMT_YUY2: + sdl_format=SDL_YUY2_OVERLAY; + printf("SDL: Using YUY2 image format\n"); + break; + case IMGFMT_UYVY: + sdl_format=SDL_UYVY_OVERLAY; + printf("SDL: Using UYVY image format\n"); + break; + default: + printf("SDL: Unsupported image format (0x%X)\n",format); + return -1; + } sdl_open (NULL, NULL); |