summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-09-01 18:11:04 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-09-01 18:11:04 +0000
commitd63b469c6811a10763d0433929a1410476b5fcf0 (patch)
tree27f2931463c16c07871ff55b3432862596fb0af4
parent7c30aa30dd0a14a1314498f11d3a5342ce8d1f45 (diff)
downloadxine-lib-d63b469c6811a10763d0433929a1410476b5fcf0.tar.gz
xine-lib-d63b469c6811a10763d0433929a1410476b5fcf0.tar.bz2
Don't change ideal_width for videos with "width % 32 == 16", so avoid software
scaling in yuv2rgb. Is the "ideal_width &= 0xFFFFFF0;" rounded needed at all? CVS patchset: 544 CVS date: 2001/09/01 18:11:04
-rw-r--r--src/video_out/video_out_xshm.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c
index a8f1a7d80..51be649fb 100644
--- a/src/video_out/video_out_xshm.c
+++ b/src/video_out/video_out_xshm.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_xshm.c,v 1.28 2001/08/28 19:16:20 guenter Exp $
+ * $Id: video_out_xshm.c,v 1.29 2001/09/01 18:11:04 jkeil Exp $
*
* video_out_xshm.c, X11 shared memory extension interface for xine
*
@@ -521,7 +521,19 @@ static void xshm_calc_output_size (xshm_driver_t *this) {
ideal_height *=2;
}
- ideal_width &= 0xFFFFFE0;
+ /*
+ * XXX: Why is ideal_width rounded down to an exact multiple of 32?
+ *
+ * AVI DivX sometimes use a width with "width % 32 == 16", so that
+ * "ideal_width &= 0xFFFFFE0;" modifies the width and triggers the
+ * yuv2rgb do_scale code...
+ * E.g. a 720x540 video is scaled to 704x5XX
+ *
+ * Round down to a multiple of 16 for now,
+ * maybe we should delete the ideal_width &= 0xFFFFFF0; ?
+ */
+ /* ideal_width &= 0xFFFFFE0; */
+ ideal_width &= 0xFFFFFF0;
this->calc_dest_size (ideal_width, ideal_height,
&dest_width, &dest_height);