Mercurial > mplayer.hg
comparison libmpcodecs/vd_null.c @ 4879:2c8ed6b32373
libmpcodecs video decoder template
author | arpi |
---|---|
date | Thu, 28 Feb 2002 00:57:47 +0000 |
parents | |
children | eb57973314ae |
comparison
equal
deleted
inserted
replaced
4878:eff8a76e515f | 4879:2c8ed6b32373 |
---|---|
1 #include <stdio.h> | |
2 #include <stdlib.h> | |
3 | |
4 #include "codec-cfg.h" | |
5 | |
6 #include "config.h" | |
7 #include "mp_msg.h" | |
8 | |
9 #include "stream.h" | |
10 #include "demuxer.h" | |
11 #include "stheader.h" | |
12 | |
13 #include "vd.h" | |
14 #include "vd_internal.h" | |
15 | |
16 static vd_info_t info = | |
17 { | |
18 "Null video decoder", | |
19 "null", | |
20 0, | |
21 "A'rpi", | |
22 "A'rpi", | |
23 "" | |
24 }; | |
25 | |
26 LIBVD_EXTERN(null) | |
27 | |
28 // to set/get/query special features/parameters | |
29 static int control(sh_video_t *sh,int cmd,void* arg,...){ | |
30 return CONTROL_UNKNOWN; | |
31 } | |
32 | |
33 // init driver | |
34 static int init(sh_video_t *sh){ | |
35 return 1; | |
36 } | |
37 | |
38 // uninit driver | |
39 static void uninit(sh_video_t *sh){ | |
40 } | |
41 | |
42 // decode a frame | |
43 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ | |
44 return NULL; | |
45 } | |
46 |