1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

voctls for decoding ahead

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5003 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2002-03-09 17:27:37 +00:00
parent ce3f36a3be
commit 9caad2c29a
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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;
}