summaryrefslogtreecommitdiff
path: root/src/input/vcd/vcdplayer.c
diff options
context:
space:
mode:
authorRocky Bernstein <rockyb@users.sourceforge.net>2005-06-19 03:47:45 +0000
committerRocky Bernstein <rockyb@users.sourceforge.net>2005-06-19 03:47:45 +0000
commit74ec209819e0691d228f0ba574296b0e67c13394 (patch)
tree01a805fadb9b876069b5593086e406f8fef494bf /src/input/vcd/vcdplayer.c
parentfccaa92c14cdcc86a8a28e1995d28914efa370f7 (diff)
downloadxine-lib-74ec209819e0691d228f0ba574296b0e67c13394.tar.gz
xine-lib-74ec209819e0691d228f0ba574296b0e67c13394.tar.bz2
Correct the way the hot-spot coordinate system is treated.
Note: some of the vcdplayer.c code to get screen max_x, max_y will probably get moved to libvcdinfo. CVS patchset: 7630 CVS date: 2005/06/19 03:47:45
Diffstat (limited to 'src/input/vcd/vcdplayer.c')
-rw-r--r--src/input/vcd/vcdplayer.c44
1 files changed, 40 insertions, 4 deletions
diff --git a/src/input/vcd/vcdplayer.c b/src/input/vcd/vcdplayer.c
index a70e94d64..51b667c60 100644
--- a/src/input/vcd/vcdplayer.c
+++ b/src/input/vcd/vcdplayer.c
@@ -1,5 +1,5 @@
/*
- $Id: vcdplayer.c,v 1.17 2005/06/14 17:27:13 rockyb Exp $
+ $Id: vcdplayer.c,v 1.18 2005/06/19 03:47:45 rockyb Exp $
Copyright (C) 2002, 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
@@ -534,23 +534,59 @@ vcdplayer_play_single_item(vcdplayer_t *p_vcdplayer, vcdinfo_itemid_t itemid)
switch (segtype) {
case VCDINFO_FILES_VIDEO_NTSC_STILL:
+ p_vcdplayer->max_x = 704;
+ p_vcdplayer->max_y = 480;
+ /* Note that we are reading a still frame but haven't
+ got to the end. */
+ p_vcdplayer->i_still = STILL_READING;
+ break;
case VCDINFO_FILES_VIDEO_NTSC_STILL2:
+ p_vcdplayer->max_x = 352;
+ p_vcdplayer->max_y = 240;
+ /* Note that we are reading a still frame but haven't
+ got to the end. */
+ p_vcdplayer->i_still = STILL_READING;
+ break;
case VCDINFO_FILES_VIDEO_PAL_STILL:
+ p_vcdplayer->max_x = 704;
+ p_vcdplayer->max_y = 576;
+ /* Note that we are reading a still frame but haven't
+ got to the end. */
+ p_vcdplayer->i_still = STILL_READING;
+ break;
case VCDINFO_FILES_VIDEO_PAL_STILL2:
+ p_vcdplayer->max_x = 352;
+ p_vcdplayer->max_y = 288;
/* Note that we are reading a still frame but haven't
- got to the end.
- */
+ got to the end. */
p_vcdplayer->i_still = STILL_READING;
break;
default:
/* */
switch (p_vcdplayer->vcd_format) {
case VCD_TYPE_VCD:
+ p_vcdplayer->max_x = 352;
+ p_vcdplayer->max_y = 240;
+ /* aspect ratio for VCD's is known to be 4:3 for any
+ type of VCD's */
+ p_vcdplayer->set_aspect_ratio(1);
+ break;
case VCD_TYPE_VCD11:
case VCD_TYPE_VCD2:
+ p_vcdplayer->max_x = 352;
+ switch(segtype) {
+ case VCDINFO_FILES_VIDEO_NTSC_MOTION:
+ p_vcdplayer->max_y = 240;
+ break;
+ case VCDINFO_FILES_VIDEO_PAL_MOTION:
+ p_vcdplayer->max_y = 288;
+ default:
+ p_vcdplayer->max_y = 289;
+ }
+
+ p_vcdplayer->set_aspect_ratio(1);
/* aspect ratio for VCD's is known to be 4:3 for any
type of VCD's */
- p_vcdplayer->set_aspect_ratio(1);
break;
default: ;
}