comparison libvo/vo_xvidix.c @ 4459:71b864031c3f

Alex! Never write bottlenecks, ok?
author nick
date Fri, 01 Feb 2002 10:20:00 +0000
parents 90814d64a840
children 48fbc610e85a
comparison
equal deleted inserted replaced
4458:1e702ff28c77 4459:71b864031c3f
200 title = strdup("MPlayer VIDIX X11 Overlay"); 200 title = strdup("MPlayer VIDIX X11 Overlay");
201 201
202 image_height = height; 202 image_height = height;
203 image_width = width; 203 image_width = width;
204 image_format = format; 204 image_format = format;
205 205
206 if (IMGFMT_IS_RGB(format)) 206 if (IMGFMT_IS_RGB(format))
207 { 207 {
208 image_depth = IMGFMT_RGB_DEPTH(format); 208 image_depth = IMGFMT_RGB_DEPTH(format);
209 } 209 }
210 else 210 else
223 case IMGFMT_UYVY: 223 case IMGFMT_UYVY:
224 case IMGFMT_YUY2: 224 case IMGFMT_YUY2:
225 image_depth = 16; 225 image_depth = 16;
226 break; 226 break;
227 default: 227 default:
228 image_depth = 16;
228 mp_msg(MSGT_VO, MSGL_FATAL, "Unknown image format: %s\n", 229 mp_msg(MSGT_VO, MSGL_FATAL, "Unknown image format: %s\n",
229 vo_format_name(format)); 230 vo_format_name(format));
230 return(-1); 231 break;
231 } 232 }
232 233
233 if (X_already_started) 234 if (X_already_started)
234 return(-1); 235 return(-1);
235 if (!vo_init()) 236 if (!vo_init())