summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-01-03 18:52:34 +0100
committerJohns <johns98@gmx.net>2013-01-03 18:52:34 +0100
commitd42475f2dc42650e38069a22f020635132dd5341 (patch)
tree1313b8b0c3cab725b058efa4b3f7973fba9573cd /video.h
parent7cf6c1ab2baef9d83c9c44ea663ef6b997f40d9c (diff)
downloadvdr-plugin-softhddevice-d42475f2dc42650e38069a22f020635132dd5341.tar.gz
vdr-plugin-softhddevice-d42475f2dc42650e38069a22f020635132dd5341.tar.bz2
Prepared reentrant video stream.
Diffstat (limited to 'video.h')
-rw-r--r--video.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/video.h b/video.h
index 1385122..28a26ec 100644
--- a/video.h
+++ b/video.h
@@ -30,6 +30,9 @@
/// Video hardware decoder typedef
typedef struct _video_hw_decoder_ VideoHwDecoder;
+ /// Video output stream typedef
+typedef struct __video_stream__ VideoStream;
+
//----------------------------------------------------------------------------
// Variables
//----------------------------------------------------------------------------
@@ -43,7 +46,7 @@ extern int VideoAudioDelay; ///< audio/video delay
//----------------------------------------------------------------------------
/// Allocate new video hardware decoder.
-extern VideoHwDecoder *VideoNewHwDecoder(void);
+extern VideoHwDecoder *VideoNewHwDecoder(VideoStream *);
/// Deallocate video hardware decoder.
extern void VideoDelHwDecoder(VideoHwDecoder *);
@@ -208,8 +211,13 @@ extern void VideoOsdExit(void); ///< Cleanup osd.
extern void VideoInit(const char *); ///< Setup video module.
extern void VideoExit(void); ///< Cleanup and exit video module.
-extern int VideoPollInput(void); ///< Poll video input buffers.
-extern int VideoDecodeInput(void); ///< Decode video input buffers.
-extern int VideoGetBuffers(void); ///< Get number of input buffers.
+ /// Poll video input buffers.
+extern int VideoPollInput(VideoStream *);
+
+ /// Decode video input buffers.
+extern int VideoDecodeInput(VideoStream *);
+
+ /// Get number of input buffers.
+extern int VideoGetBuffers(const VideoStream *);
/// @}