annotate libmpcodecs/vd_null.c @ 32510:b756312f1d15

Add a comment to codecs that require their fourcc's added to demuxer.c.
author cehoyos
date Sun, 07 Nov 2010 11:03:47 +0000
parents 32725ca88fed
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30421
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
1 /*
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
2 * This file is part of MPlayer.
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
3 *
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
5 * it under the terms of the GNU General Public License as published by
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
7 * (at your option) any later version.
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
8 *
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
12 * GNU General Public License for more details.
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
13 *
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
14 * You should have received a copy of the GNU General Public License along
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
17 */
bbb6ebec87a0 Add missing license headers to all files in the libmpcodecs directory.
diego
parents: 29263
diff changeset
18
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
19 #include <stdio.h>
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
20 #include <stdlib.h>
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
21
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
22 #include "config.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
23 #include "mp_msg.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
24
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
25 #include "vd_internal.h"
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
26
30504
cc27da5d7286 Mark all ad_info_t/vd_info_t structure declarations as const.
diego
parents: 30421
diff changeset
27 static const vd_info_t info =
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
28 {
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
29 "Null video decoder",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
30 "null",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
31 "A'rpi",
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
32 "A'rpi",
7191
1eadce15446c -afm/-vfm help implemenetd, some cosmetics of ad/vd codec names/comments
arpi
parents: 5169
diff changeset
33 "no decoding"
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
34 };
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
35
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
36 LIBVD_EXTERN(null)
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
37
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
38 // to set/get/query special features/parameters
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
39 static int control(sh_video_t *sh,int cmd,void* arg,...){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
40 return CONTROL_UNKNOWN;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
41 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
42
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
43 // init driver
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
44 static int init(sh_video_t *sh){
7941
0c8d85e22ff5 config_vo error handling
arpi
parents: 7191
diff changeset
45 if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24)) return 0;
4879
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
46 return 1;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
47 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
48
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
49 // uninit driver
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
50 static void uninit(sh_video_t *sh){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
51 }
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
52
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
53 // decode a frame
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
54 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
55 return NULL;
2c8ed6b32373 libmpcodecs video decoder template
arpi
parents:
diff changeset
56 }