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:
parent
ce3f36a3be
commit
9caad2c29a
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user