summaryrefslogtreecommitdiff
path: root/src/dxr3/dxr3_decoder.c
diff options
context:
space:
mode:
authorMike Lampard <mlampard@users.sourceforge.net>2001-11-01 12:38:08 +0000
committerMike Lampard <mlampard@users.sourceforge.net>2001-11-01 12:38:08 +0000
commita23500b517d7f50fc78ebf63e147af23376bd11c (patch)
treee8f892d088653e131faea5f776b17c26d7278925 /src/dxr3/dxr3_decoder.c
parente580493bc7dceba56974d0b77e8c96dcf451eb13 (diff)
downloadxine-lib-a23500b517d7f50fc78ebf63e147af23376bd11c.tar.gz
xine-lib-a23500b517d7f50fc78ebf63e147af23376bd11c.tar.bz2
make zooming/cropping of 16:9 video to tvout and new 'enhanced
buffer' mode of the dxr3 xinerc options. CVS patchset: 920 CVS date: 2001/11/01 12:38:08
Diffstat (limited to 'src/dxr3/dxr3_decoder.c')
-rw-r--r--src/dxr3/dxr3_decoder.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/dxr3/dxr3_decoder.c b/src/dxr3/dxr3_decoder.c
index 121135769..b45f5b360 100644
--- a/src/dxr3/dxr3_decoder.c
+++ b/src/dxr3/dxr3_decoder.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: dxr3_decoder.c,v 1.26 2001/10/29 09:57:41 mlampard Exp $
+ * $Id: dxr3_decoder.c,v 1.27 2001/11/01 12:38:08 mlampard Exp $
*
* dxr3 video and spu decoder plugin. Accepts the video and spu data
* from XINE and sends it directly to the corresponding dxr3 devices.
@@ -66,6 +66,7 @@ typedef struct dxr3_decoder_s {
int height;
int aspect;
int duration;
+ int enhanced_mode;
} dxr3_decoder_t;
static int dxr3_tested = 0;
@@ -359,6 +360,9 @@ static void dxr3_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
}
}
+ if(this->enhanced_mode && !scanning_mode)
+ dxr3_mvcommand(this->fd_control, 6);
+
written = write(this->fd_video, buf->content, buf->size);
if (written < 0) {
fprintf(stderr, "dxr3: video device write failed (%s)\n",
@@ -419,7 +423,9 @@ video_decoder_t *init_video_decoder_plugin (int iface_version,
this->video_decoder.priority = 10;
this->scr_prio = cfg->lookup_int(cfg, "dxr3_scr_prio", 10);
-
+ this->enhanced_mode = cfg->lookup_int(cfg,"dxr3_buffer_mode", 0);
+ if(this->enhanced_mode)
+ printf("Dxr3: Using Mode 6 for playback\n");
return (video_decoder_t *) this;
}