changeset 5002:70751bbd6404

voctls for decoding ahead
author nick
date Sat, 09 Mar 2002 17:27:37 +0000
parents b4c4d1abb7a4
children 88481d4b9e0e
files libvo/video_out.h libvo/vosub_vidix.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/video_out.h	Sat Mar 09 14:09:27 2002 +0000
+++ b/libvo/video_out.h	Sat Mar 09 17:27:37 2002 +0000
@@ -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
--- a/libvo/vosub_vidix.c	Sat Mar 09 14:09:27 2002 +0000
+++ b/libvo/vosub_vidix.c	Sat Mar 09 17:27:37 2002 +0000
@@ -628,6 +628,15 @@
     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;
 }