Mercurial > mplayer.hg
changeset 4929:939eacee89ab
Use as much buffers as possible
author | nick |
---|---|
date | Sun, 03 Mar 2002 16:53:12 +0000 |
parents | ecf9f93dd9b6 |
children | a71ef1642a8a |
files | libvo/vosub_vidix.c vidix/vidix.h |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vosub_vidix.c Sun Mar 03 16:47:04 2002 +0000 +++ b/libvo/vosub_vidix.c Sun Mar 03 16:53:12 2002 +0000 @@ -29,7 +29,7 @@ #include "osd.h" #include "video_out.h" -#define NUM_FRAMES 10 /* Temporary: driver will overwrite it */ +#define NUM_FRAMES VID_PLAY_MAXFRAMES /* Temporary: driver will overwrite it */ #define UNUSED(x) ((void)(x)) /* Removes warning about unused arguments */ static VDL_HANDLE vidix_handler = NULL; @@ -571,7 +571,7 @@ vidix_play.dest.y = y_org; vidix_play.dest.w = dst_width; vidix_play.dest.h = dst_height; - vidix_play.num_frames=vo_doublebuffering?NUM_FRAMES:1; + vidix_play.num_frames=vo_doublebuffering?NUM_FRAMES-1:1; vidix_play.src.pitch.y = vidix_play.src.pitch.u = vidix_play.src.pitch.v = 0; if(info) {
--- a/vidix/vidix.h Sun Mar 03 16:47:04 2002 +0000 +++ b/vidix/vidix.h Sun Mar 03 16:53:12 2002 +0000 @@ -150,7 +150,7 @@ /* memory model */ unsigned frame_size; /* driver -> app: destinition frame size */ unsigned num_frames; /* app -> driver: after call: driver -> app */ -#define VID_PLAY_MAXFRAMES 32 +#define VID_PLAY_MAXFRAMES 64 /* reasonable limitation for decoding ahead */ unsigned offsets[VID_PLAY_MAXFRAMES]; /* driver -> app */ vidix_yuv_t offset; /* driver -> app: relative offsets within frame for yuv planes */ void* dga_addr; /* driver -> app: linear address */