comparison libmpdemux/tvi_dummy.c @ 2790:98769cea155c

added tv subsystem
author alex
date Fri, 09 Nov 2001 23:46:06 +0000
parents
children 09d5c9834580
comparison
equal deleted inserted replaced
2789:7023bf2ff439 2790:98769cea155c
1 #include <stdio.h>
2
3 #include "config.h"
4
5 #ifdef USE_TV
6 #include "tv.h"
7
8 static tvi_info_t info = {
9 "NULL-TV",
10 "dummy",
11 "alex",
12 "non-completed"
13 };
14
15 typedef struct {
16 } priv_t;
17
18 #include "tvi_def.h"
19
20 tvi_handle_t *tvi_init_dummy(char *device)
21 {
22 return new_handle();
23 }
24
25 static int init(priv_t *priv)
26 {
27 }
28
29 static int close(priv_t *priv)
30 {
31 }
32
33 static int control(priv_t *priv, int cmd, void *arg)
34 {
35 return(TVI_CONTROL_UNKNOWN);
36 }
37
38 static int grab_video_frame(priv_t *priv, char *buffer, int len)
39 {
40 memset(buffer, 0x77, len);
41 }
42
43 static int get_video_framesize(priv_t *priv)
44 {
45 return 0;
46 }
47
48 static int grab_audio_frame(priv_t *priv, char *buffer, int len)
49 {
50 memset(buffer, 0x77, len);
51 }
52
53 static int get_audio_framesize(priv_t *priv)
54 {
55 return 0;
56 }
57
58 #endif /* USE_TV */