diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-09 23:22:32 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-11-09 23:22:32 +0000 |
commit | 839537da53801ce9542eded0813c660e71ab2e58 (patch) | |
tree | 27591bc00bb83fff0390c4dad6cb50229072463f /src/demuxers/demux.h | |
parent | b91288a28a292d5ab9c22c20474708d3e85308f0 (diff) | |
download | xine-lib-839537da53801ce9542eded0813c660e71ab2e58.tar.gz xine-lib-839537da53801ce9542eded0813c660e71ab2e58.tar.bz2 |
beginnings of the get_video/audio_frame api
CVS patchset: 3215
CVS date: 2002/11/09 23:22:32
Diffstat (limited to 'src/demuxers/demux.h')
-rw-r--r-- | src/demuxers/demux.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/demuxers/demux.h b/src/demuxers/demux.h index 29bd0cf45..16c827cae 100644 --- a/src/demuxers/demux.h +++ b/src/demuxers/demux.h @@ -17,13 +17,14 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux.h,v 1.23 2002/11/01 17:41:02 mroi Exp $ + * $Id: demux.h,v 1.24 2002/11/09 23:22:32 guenter Exp $ */ #ifndef HAVE_DEMUX_H #define HAVE_DEMUX_H #include "buffer.h" +#include "video_out.h" #include "xine_internal.h" #if defined(XINE_COMPILE) #include "input/input_plugin.h" @@ -31,7 +32,7 @@ #include "input_plugin.h" #endif -#define DEMUXER_PLUGIN_IFACE_VERSION 15 +#define DEMUXER_PLUGIN_IFACE_VERSION 16 #define DEMUX_OK 0 #define DEMUX_FINISHED 1 @@ -148,6 +149,23 @@ struct demux_plugin_s { int (*get_stream_length) (demux_plugin_t *this); + /* + * get audio/video frames + * + * experimental, function pointers can be NULL for now. + */ + + int (*get_video_frame) (demux_plugin_t *this, + int timestamp, /* msec */ + int *width, int *height, + int *ratio_code, + int *duration, /* msec */ + int *format, + uint8_t *img) ; + + /* called by video_out for every frame it receives */ + void (*got_video_frame_cb) (demux_plugin_t *this, + vo_frame_t *frame); /* * "backwards" link to plugin class |