Mercurial > mplayer.hg
changeset 4240:a7d6ea555c2e
added colorkey handling
author | alex |
---|---|
date | Fri, 18 Jan 2002 18:14:44 +0000 |
parents | acadddf56508 |
children | 817742049fa0 |
files | libvo/vosub_vidix.c libvo/vosub_vidix.h |
diffstat | 2 files changed, 21 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vosub_vidix.c Fri Jan 18 18:14:10 2002 +0000 +++ b/libvo/vosub_vidix.c Fri Jan 18 18:14:44 2002 +0000 @@ -45,8 +45,6 @@ #define SCREEN_LINE_SIZE(pixel_size) (video_mode_info.XResolution*(pixel_size) ) #define IMAGE_LINE_SIZE(pixel_size) (image_width*(pixel_size)) -extern vo_functions_t video_out_vesa; - int vidix_preinit(const char *drvname,void *server) { int err; @@ -147,6 +145,8 @@ } next_frame = 0; + if(vo_doublebuffering) + vdlPlaybackFrameSelect(vidix_handler,next_frame); vidix_mem =vidix_play.dga_addr; /*clear the buffer*/ @@ -162,7 +162,7 @@ extern int vo_gamma_green_intense; extern int vo_gamma_blue_intense; -vidix_video_eq_t vid_eq; +static vidix_video_eq_t vid_eq; int vidix_start(void) { @@ -216,7 +216,6 @@ void vidix_term( void ) { if(verbose > 1) printf("vosub_vidix: vidix_term() was called\n"); -// vdlPlaybackOff(vidix_handler); vidix_stop(); vdlClose(vidix_handler); } @@ -279,6 +278,8 @@ src+=stride[0]; dest += bespitch; } + + return 0; } @@ -298,7 +299,7 @@ /* Note it's very strange but sometime for YUY2 draw_frame is called */ if(src_format == IMGFMT_YV12 || src_format == IMGFMT_I420 || src_format == IMGFMT_IYUV) { - printf("vosub_vidix: draw_frame for i420 is called\nExiting...\n"); + printf("vosub_vidix: draw_frame for YUV420 called\nExiting...\n"); vidix_term(); exit( EXIT_FAILURE ); } @@ -371,3 +372,13 @@ vdlQueryFourcc(vidix_handler,&vidix_fourcc); return vidix_fourcc.depth != VID_DEPTH_NONE; } + +int vidix_grkey_get(vidix_grkey_t *gr_key) +{ + return(vdlGetGrKeys(vidix_handler, gr_key)); +} + +int vidix_grkey_set(const vidix_grkey_t *gr_key) +{ + return(vdlSetGrKeys(vidix_handler, gr_key)); +}
--- a/libvo/vosub_vidix.h Fri Jan 18 18:14:10 2002 +0000 +++ b/libvo/vosub_vidix.h Fri Jan 18 18:14:44 2002 +0000 @@ -29,4 +29,9 @@ void vidix_flip_page(void); void vidix_draw_osd(void); +#include "../vidix/vidix.h" +/* graphic keys */ +int vidix_grkey_get(vidix_grkey_t *gr_key); +int vidix_grkey_set(const vidix_grkey_t *gr_key); + #endif