diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-07-24 12:57:29 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-07-24 12:57:29 +0000 |
commit | f6518586f4ff96282aa83faa5f1e54b26c657705 (patch) | |
tree | 13e32900db3df007b8f022bd360727ed3a2c16e0 /src/xine-engine | |
parent | aa41997f54697faf52e539ec27c78db60ed8561e (diff) | |
download | xine-lib-f6518586f4ff96282aa83faa5f1e54b26c657705.tar.gz xine-lib-f6518586f4ff96282aa83faa5f1e54b26c657705.tar.bz2 |
big xshm cleanup (free memory properly, set up yuv2rgb only when necessary, clean up field picture handling), gearing up for rc2
CVS patchset: 334
CVS date: 2001/07/24 12:57:29
Diffstat (limited to 'src/xine-engine')
-rw-r--r-- | src/xine-engine/video_out.c | 7 | ||||
-rw-r--r-- | src/xine-engine/video_out.h | 15 |
2 files changed, 16 insertions, 6 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 0f59e0d6c..838423c42 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.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.c,v 1.35 2001/07/22 11:29:56 guenter Exp $ + * $Id: video_out.c,v 1.36 2001/07/24 12:57:30 guenter Exp $ * */ @@ -383,7 +383,8 @@ static void vo_open (vo_instance_t *this) { static vo_frame_t *vo_get_frame (vo_instance_t *this, uint32_t width, uint32_t height, - int ratio, int format, uint32_t duration) { + int ratio, int format, uint32_t duration, + int flags) { vo_frame_t *img; @@ -408,7 +409,7 @@ static vo_frame_t *vo_get_frame (vo_instance_t *this, /* let driver ensure this image has the right format */ - this->driver->update_frame_format (this->driver, img, width, height, ratio, format); + this->driver->update_frame_format (this->driver, img, width, height, ratio, format, flags); pthread_mutex_unlock (&img->mutex); diff --git a/src/xine-engine/video_out.h b/src/xine-engine/video_out.h index b1f00f6c6..a17b30f67 100644 --- a/src/xine-engine/video_out.h +++ b/src/xine-engine/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: video_out.h,v 1.13 2001/07/18 21:38:17 f1rmb Exp $ + * $Id: video_out.h,v 1.14 2001/07/24 12:57:30 guenter Exp $ * * * xine version of video_out.h @@ -111,10 +111,12 @@ struct vo_instance_s { * ratio == aspect ration information * format == FOURCC descriptor of image format * duration == frame duration in 1/90000 sec + * flags == field/prediction flags */ vo_frame_t* (*get_frame) (vo_instance_t *this, uint32_t width, uint32_t height, int ratio_code, - int format, uint32_t duration); + int format, uint32_t duration, + int flags); /* overlay stuff */ vo_overlay_t* (*get_overlay) (vo_instance_t *this); @@ -172,6 +174,13 @@ struct vo_instance_s { #define ASPECT_FULL 2 /* 4:3 */ #define ASPECT_DVB 3 /* 1:2 */ +/* get_frame flags */ + +#define VO_TOP_FIELD 1 +#define VO_BOTTOM_FIELD 2 +#define VO_BOTH_FIELDS (VO_TOP_FIELD | VO_BOTTOM_FIELD) +#define VO_PREDICTION_FLAG 4 + /* video driver capabilities */ /* driver copies image (i.e. converts it to @@ -216,7 +225,7 @@ struct vo_driver_s { */ void (*update_frame_format) (vo_driver_t *this, vo_frame_t *img, uint32_t width, uint32_t height, - int ratio_code, int format); + int ratio_code, int format, int flags); /* display a given frame */ void (*display_frame) (vo_driver_t *this, vo_frame_t *vo_img); |