diff options
author | 2002-03-09 17:27:37 +0000 | |
---|---|---|
committer | 2002-03-09 17:27:37 +0000 | |
commit | 9caad2c29a0f617e25f90e12a7dcbefb4f762687 (patch) | |
tree | f5b3de86bc360cb4cd67fffbc6c0235495fb3ce7 | |
parent | ce3f36a3be079dab755a67c2b6b21ee4dc4c75ce (diff) |
voctls for decoding ahead
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5003 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/video_out.h | 4 | ||||
-rw-r--r-- | libvo/vosub_vidix.c | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h index fc50acb1ed..d8596894a4 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -38,6 +38,10 @@ #define VOCTRL_RESUME 8 /* libmpcodecs direct rendering: */ #define VOCTRL_GET_IMAGE 9 +/* decoding ahead: */ +#define VOCTRL_GET_NUM_FRAMES 10 +#define VOCTRL_GET_FRAME_NUM 11 +#define VOCTRL_SET_FRAME_NUM 12 #define VO_TRUE 1 #define VO_FALSE 0 diff --git a/libvo/vosub_vidix.c b/libvo/vosub_vidix.c index a62e5fa85e..85db523a9a 100644 --- a/libvo/vosub_vidix.c +++ b/libvo/vosub_vidix.c @@ -628,6 +628,15 @@ uint32_t vidix_control(uint32_t request, void *data, ...) return (*server_control)(request,data); case VOCTRL_GET_IMAGE: return vidix_get_image(data); + case VOCTRL_GET_FRAME_NUM: + *(uint32_t *)data = next_frame; + return VO_TRUE; + case VOCTRL_SET_FRAME_NUM: + next_frame = *(uint32_t *)data; + return VO_TRUE; + case VOCTRL_GET_NUM_FRAMES: + *(uint32_t *)data = vidix_play.num_frames; + return VO_TRUE; } return VO_NOTIMPL; } |