From: Matthias D. <mat...@us...> - 2001-11-03 19:54:47
|
Update of /cvsroot/xine/xine-lib/src/video_out In directory usw-pr-cvs1:/tmp/cvs-serv31255/xine-lib/src/video_out Modified Files: video_out_syncfb.c Log Message: ok, last deinterlacing bug squished! :) Now you can push "i" as often as you want without having the image costantly decreasing in size. Also more updates to the doc. Index: video_out_syncfb.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_syncfb.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- video_out_syncfb.c 2001/11/03 18:20:04 1.21 +++ video_out_syncfb.c 2001/11/03 19:54:44 1.22 @@ -267,14 +267,11 @@ { Window temp_window; int posx, posy; - -// for debug -// printf("src width: %d, height: %d - dst width: %d, height: %d\n", this->frame_width, this->frame_height, this->output_width, this->output_height); XLockDisplay(this->display); XTranslateCoordinates(this->display, this->drawable, DefaultRootWindow(this->display), 0, 0, &posx, &posy, &temp_window); - + if(((double) dest_width / this->ratio_factor) < dest_height) { this->output_width = dest_width; this->output_height = (double) dest_width / this->ratio_factor; @@ -286,9 +283,6 @@ this->output_xoffset = dest_x + (dest_width - this->output_width) / 2; this->output_yoffset = dest_y; } - -// for debug -// printf("src width: %d, height: %d - dst width: %d, height: %d\n", this->frame_width, this->frame_height, this->output_width, this->output_height); // // configuring SyncFB module from this point on. @@ -686,8 +680,7 @@ printf("video_out_syncfb: VO_PROP_INTERLACED(%d)\n", this->props[property].value); this->deinterlace_enabled = value; - syncfb_adapt_to_output_area(this, this->output_xoffset, this->output_yoffset, - this->output_width, this->output_height); + syncfb_calc_format(this, this->delivered_width, this->delivered_height, this->delivered_ratio_code); break; case VO_PROP_ASPECT_RATIO: if(value>=NUM_ASPECT_RATIOS) |