summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_xv.c
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-09-26 17:19:48 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-09-26 17:19:48 +0000
commitb49089c65f7cfa2293cb432606d0ac13cb9353f3 (patch)
treefcf5d3ccdc06a1e46a6917d5344cc83a9e490102 /src/video_out/video_out_xv.c
parent105564c9ce5bea7587776e8cf39b2a3681b6d573 (diff)
downloadxine-lib-b49089c65f7cfa2293cb432606d0ac13cb9353f3.tar.gz
xine-lib-b49089c65f7cfa2293cb432606d0ac13cb9353f3.tar.bz2
- Trying to fix video window size for mpeg streams with
aspect_ratio_information==1 ("square source pels") - Add aspect_ratio_information==4 (2.21:1) - Aspect ratio switching ('a' key) now cycles through "square source pels", too. CVS patchset: 698 CVS date: 2001/09/26 17:19:48
Diffstat (limited to 'src/video_out/video_out_xv.c')
-rw-r--r--src/video_out/video_out_xv.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index 9b9446637..bd377c9b0 100644
--- a/src/video_out/video_out_xv.c
+++ b/src/video_out/video_out_xv.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_xv.c,v 1.62 2001/09/19 23:12:24 miguelfreitas Exp $
+ * $Id: video_out_xv.c,v 1.63 2001/09/26 17:19:49 jkeil Exp $
*
* video_out_xv.c, X11 video extension interface for xine
*
@@ -546,16 +546,19 @@ static void xv_calc_format (xv_driver_t *this,
case 3: /* anamorphic */
desired_ratio = 16.0 /9.0;
break;
+ case 4: /* 2.11:1 */
+ desired_ratio = 2.11/1.0;
+ break;
+ case 1: /* "square" source pels */
case 42: /* probably non-mpeg stream => don't touch aspect ratio */
desired_ratio = image_ratio;
break;
case 0: /* forbidden */
fprintf (stderr, "invalid ratio, using 4:3\n");
- case 1: /* "square" => 4:3 */
- case 2: /* 4:3 */
default:
xprintf (VIDEO, "unknown aspect ratio (%d) in stream => using 4:3\n",
ratio_code);
+ case 2: /* 4:3 */
desired_ratio = 4.0 / 3.0;
break;
}
@@ -566,6 +569,10 @@ static void xv_calc_format (xv_driver_t *this,
case ASPECT_DVB:
desired_ratio = 2.0 / 1.0;
break;
+ case ASPECT_SQUARE:
+ desired_ratio = image_ratio;
+ break;
+ case ASPECT_FULL:
default:
desired_ratio = 4.0 / 3.0;
}
@@ -738,7 +745,7 @@ static int xv_set_property (vo_driver_t *this_gen,
break;
case VO_PROP_ASPECT_RATIO:
- if (value>ASPECT_DVB)
+ if (value>=NUM_ASPECT_RATIOS)
value = ASPECT_AUTO;
this->props[property].value = value;