comparison libvo/vo_dxr3.c @ 5281:88df6d5f6ce7

Aspect code reenabled, apparently users didn't like running movies hi-res ;)
author mswitch
date Sat, 23 Mar 2002 18:16:22 +0000
parents 38f45e170f3b
children 69e55c9c1a1a
comparison
equal deleted inserted replaced
5280:ea8f3e8f39c1 5281:88df6d5f6ce7
243 243
244 /* Set monitor_aspect to avoid jitter */ 244 /* Set monitor_aspect to avoid jitter */
245 monitor_aspect = (float) width / (float) height; 245 monitor_aspect = (float) width / (float) height;
246 246
247 /* libavcodec requires a width and height that is x|16 */ 247 /* libavcodec requires a width and height that is x|16 */
248 /*aspect_save_orig(width, height); 248 aspect_save_orig(width, height);
249 aspect_save_prescale(d_width, d_height); 249 aspect_save_prescale(d_width, d_height);
250 ioctl(fd_control, EM8300_IOCTL_GET_VIDEOMODE, &ioval); 250 ioctl(fd_control, EM8300_IOCTL_GET_VIDEOMODE, &ioval);
251 if (ioval == EM8300_VIDEOMODE_NTSC) { 251 if (ioval == EM8300_VIDEOMODE_NTSC) {
252 printf("VO: [dxr3] Setting up for NTSC.\n"); 252 printf("VO: [dxr3] Setting up for NTSC.\n");
253 aspect_save_screenres(352, 240); 253 aspect_save_screenres(352, 240);
255 printf("VO: [dxr3] Setting up for PAL/SECAM.\n"); 255 printf("VO: [dxr3] Setting up for PAL/SECAM.\n");
256 aspect_save_screenres(352, 288); 256 aspect_save_screenres(352, 288);
257 } 257 }
258 aspect(&s_width, &s_height, A_ZOOM); 258 aspect(&s_width, &s_height, A_ZOOM);
259 s_width -= s_width % 16; 259 s_width -= s_width % 16;
260 s_height -= s_height % 16;*/ 260 s_height -= s_height % 16;
261 s_width = ((v_width + 15) / 16) * 16;
262 s_height = ((height + 15) / 16) * 16;
263 261
264 /* Try to figure out whether to use widescreen output or not */ 262 /* Try to figure out whether to use widescreen output or not */
265 /* Anamorphic widescreen modes makes this a pain in the ass */ 263 /* Anamorphic widescreen modes makes this a pain in the ass */
266 tmp1 = abs(d_height - ((d_width / 4) * 3)); 264 tmp1 = abs(d_height - ((d_width / 4) * 3));
267 tmp2 = abs(d_height - (int) (d_width / 2.35)); 265 tmp2 = abs(d_height - (int) (d_width / 2.35));