summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_out.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-12-21 12:56:44 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-12-21 12:56:44 +0000
commit5f31761a4fa6995592cdd536c52f6ddac8151a89 (patch)
treeaeec46d8f80b411df280cc2cc6bc124c2dbd6756 /src/xine-engine/video_out.h
parenteafb4f823a16426e7b2b30ada1b3cca47d8eeb3c (diff)
downloadxine-lib-5f31761a4fa6995592cdd536c52f6ddac8151a89.tar.gz
xine-lib-5f31761a4fa6995592cdd536c52f6ddac8151a89.tar.bz2
- add buf->decoder_info_ptr: portability for systems where pointer has
different sizeof than integer. - add extra_info structure to pass informations from input/demuxers down to the output frame. this can be used, for example, to pass the frame number of a frame (when known by decoder). also, immediate benefict is that we now have a slider which really shows the current position of the playing stream. new fields can be added to extra_info keeping binary compatibility - bumpy everybody's api versions CVS patchset: 3603 CVS date: 2002/12/21 12:56:44
Diffstat (limited to 'src/xine-engine/video_out.h')
-rw-r--r--src/xine-engine/video_out.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/xine-engine/video_out.h b/src/xine-engine/video_out.h
index f29d0d6a8..52b2bda4b 100644
--- a/src/xine-engine/video_out.h
+++ b/src/xine-engine/video_out.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out.h,v 1.73 2002/12/06 01:30:49 miguelfreitas Exp $
+ * $Id: video_out.h,v 1.74 2002/12/21 12:56:52 miguelfreitas Exp $
*
*
* xine version of video_out.h
@@ -54,6 +54,10 @@ typedef struct vo_overlay_s vo_overlay_t;
typedef struct video_overlay_instance_s video_overlay_instance_t;
typedef struct vo_driver_s vo_driver_t;
+/* to access extra_info_t contents one have to include xine_internal.h */
+#ifndef extra_info_t
+#define extra_info_t void
+#endif
/* public part, video drivers may add private fields */
struct vo_frame_s {
@@ -102,7 +106,10 @@ struct vo_frame_s {
/* pan/scan offset */
int pan_scan_x;
int pan_scan_y;
-
+
+ /* extra info coming from input or demuxers */
+ extra_info_t *extra_info;
+
/* additional information to be able to duplicate frames: */
int width, height;
int ratio; /* aspect ratio, codes see below */
@@ -114,7 +121,7 @@ struct vo_frame_s {
/* "backward" references to where this frame originates from */
xine_video_port_t *port;
vo_driver_t *driver;
-
+ xine_stream_t *stream;
/*
* that part is used only by video_out.c for frame management
@@ -247,7 +254,7 @@ struct xine_video_port_s {
* from generic vo functions.
*/
-#define VIDEO_OUT_DRIVER_IFACE_VERSION 13
+#define VIDEO_OUT_DRIVER_IFACE_VERSION 14
struct vo_driver_s {