summaryrefslogtreecommitdiffstats
path: root/libmpdemux/tvi_dummy.c
blob: 82d2c1e6916b2af9b27c9dbdda4e2c54516bf9dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 */