From 8b7b18f012709ff905c5664d2ec2695cae5b3e9e Mon Sep 17 00:00:00 2001 From: Harm van der Heijden Date: Sun, 23 Dec 2001 02:36:54 +0000 Subject: lots of dxr3 tweaks and fixes - mpeg playback optionally syncs (SETPTS) every frame; works only for constant frame duration (PAL movie) not most NTSC movies. metronom doesn't seem to dig varying durations, gives pts values that upset the dxr3 hardware. - detect repeat first field in mpeg, disable sync every frame if found. - small dxr3 encoder fixes - moved fame encoding from copy to display method; should help with frame skip. - added callback functions for some config/dxr3* variables (those callbacks are cool BTW; only wish the xine-ui setup screen would show which vars have callbacks) - added Dan Hollis field swapping trick; not sure if it really does what he wants; I don't have an NTSC tv, so his 720x480 test video will look interlaced no matter what. - merry xmas CVS patchset: 1287 CVS date: 2001/12/23 02:36:54 --- src/dxr3/dxr3_video_out.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/dxr3/dxr3_video_out.h') diff --git a/src/dxr3/dxr3_video_out.h b/src/dxr3/dxr3_video_out.h index f62f9d57e..d3fa1c6b5 100644 --- a/src/dxr3/dxr3_video_out.h +++ b/src/dxr3/dxr3_video_out.h @@ -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_video_out.h,v 1.11 2001/12/16 19:05:44 hrm Exp $ + * $Id: dxr3_video_out.h,v 1.12 2001/12/23 02:36:55 hrm Exp $ * */ @@ -100,8 +100,11 @@ typedef struct dxr3_driver_s { double fps; /* frames per second */ int format; /* color format */ const char *file_out; + int swap_fields; /* swap fields */ + int add_bars; /* add black bars to correct a.r. */ /* height after adding black bars to correct a.r. */ int oheight; + int top_bar; /* number of lines in top black bar */ /* input height (before adding black bars) */ int video_iheight; /* output height (after adding bars) */ @@ -140,8 +143,7 @@ typedef struct dxr3_frame_s { int format; dxr3_driver_t *vo_instance; /* points to self, for use in dxr3_frame_copy */ int copy_calls; /* counts calls to dxr3_frame_copy function */ - unsigned char *mpeg; /* encoded mpeg data */ - unsigned int mpeg_size; /* length of data */ + int swap_fields; /* shifts Y buffer one line to exchange odd/even lines*/ } dxr3_frame_t; struct encoder_data_s { -- cgit v1.2.3