summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_xshm.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-10-14 23:19:59 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-10-14 23:19:59 +0000
commit15d50842081823d2a124f0939cb8595c379c746f (patch)
tree845e27d65c4571468a9f6d65db4d8a4d47ab61fd /src/video_out/video_out_xshm.c
parent482d6973c539f1c571e3bfc8334cccacf7c9678a (diff)
downloadxine-lib-15d50842081823d2a124f0939cb8595c379c746f.tar.gz
xine-lib-15d50842081823d2a124f0939cb8595c379c746f.tar.bz2
Update xine.h doxygen comments. Use constants for aspect ratio in
vo drivers. CVS patchset: 812 CVS date: 2001/10/14 23:19:59
Diffstat (limited to 'src/video_out/video_out_xshm.c')
-rw-r--r--src/video_out/video_out_xshm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c
index 33e5f97b4..401f84aaf 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.45 2001/10/11 20:32:08 miguelfreitas Exp $
+ * $Id: video_out_xshm.c,v 1.46 2001/10/14 23:19:59 f1rmb Exp $
*
* video_out_xshm.c, X11 shared memory extension interface for xine
*
@@ -456,22 +456,22 @@ static void xshm_calc_output_size (xshm_driver_t *this) {
switch (this->user_ratio) {
case ASPECT_AUTO:
switch (this->delivered_ratio_code) {
- case 3: /* anamorphic */
+ case XINE_ASPECT_RATIO_ANAMORPHIC: /* anamorphic */
desired_ratio = 16.0 /9.0;
break;
- case 4: /* 2.11:1 */
+ case XINE_ASPECT_RATIO_211_1: /* 2.11:1 */
desired_ratio = 2.11/1.0;
break;
- case 1: /* square pels */
- case 42: /* probably non-mpeg stream => don't touch aspect ratio */
+ case XINE_ASPECT_RATIO_SQUARE: /* square pels */
+ case XINE_ASPECT_RATIO_DONT_TOUCH: /* probably non-mpeg stream => don't touch aspect ratio */
desired_ratio = image_ratio;
break;
- case 0: /* forbidden -> 4:3 */
+ case 0: /* forbidden -> 4:3 */
fprintf (stderr, "invalid ratio, using 4:3\n");
default:
xprintf (VIDEO, "unknown aspect ratio (%d) in stream => using 4:3\n",
this->delivered_ratio_code);
- case 2: /* 4:3 */
+ case XINE_ASPECT_RATIO_4_3: /* 4:3 */
desired_ratio = 4.0 / 3.0;
break;
}