diff libmpdemux/tvi_dummy.c @ 2790:98769cea155c

added tv subsystem
author alex
date Fri, 09 Nov 2001 23:46:06 +0000
parents
children 09d5c9834580
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libmpdemux/tvi_dummy.c	Fri Nov 09 23:46:06 2001 +0000
@@ -0,0 +1,58 @@
+#include <stdio.h>
+
+#include "config.h"
+
+#ifdef USE_TV
+#include "tv.h"
+
+static tvi_info_t info = {
+	"NULL-TV",
+	"dummy",
+	"alex",
+	"non-completed"
+};
+
+typedef struct {
+} priv_t;
+
+#include "tvi_def.h"
+
+tvi_handle_t *tvi_init_dummy(char *device)
+{
+    return new_handle();
+}
+
+static int init(priv_t *priv)
+{
+}
+
+static int close(priv_t *priv)
+{
+}
+
+static int control(priv_t *priv, int cmd, void *arg)
+{
+    return(TVI_CONTROL_UNKNOWN);
+}
+
+static int grab_video_frame(priv_t *priv, char *buffer, int len)
+{
+    memset(buffer, 0x77, len);
+}
+
+static int get_video_framesize(priv_t *priv)
+{
+    return 0;
+}
+
+static int grab_audio_frame(priv_t *priv, char *buffer, int len)
+{
+    memset(buffer, 0x77, len);
+}
+
+static int get_audio_framesize(priv_t *priv)
+{
+    return 0;
+}
+
+#endif /* USE_TV */