Remove unused static variable pass, fixes the warning:
[mplayer/greg.git] / libvo / vo_null.c
blobc56a26511ff1838f748b87fd0fc435d39e39afca
1 /*
2 * video_out_null.c
4 * Copyright (C) Aaron Holtzman - June 2000
6 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
7 *
8 * mpeg2dec is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
11 * any later version.
13 * mpeg2dec is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with mpeg2dec; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <errno.h>
27 #include "config.h"
28 #include "mp_msg.h"
29 #include "help_mp.h"
30 #include "video_out.h"
31 #include "video_out_internal.h"
33 static const vo_info_t info =
35 "Null video output",
36 "null",
37 "Aaron Holtzman <aholtzma@ess.engr.uvic.ca>",
41 const LIBVO_EXTERN(null)
43 static uint32_t image_width, image_height;
45 //static uint32_t
46 static int draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
47 //draw_slice(uint8_t *src[], uint32_t slice_num)
49 return 0;
52 static void draw_osd(void)
56 static void
57 flip_page(void)
61 static int
62 draw_frame(uint8_t *src[])
64 return 0;
67 static int
68 query_format(uint32_t format)
70 return VFCAP_CSP_SUPPORTED;
73 static int
74 config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
76 image_width = width;
77 image_height = height;
78 return 0;
81 static void
82 uninit(void)
87 static void check_events(void)
91 static int preinit(const char *arg)
93 if(arg)
95 mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_NULL_UnknownSubdevice,arg);
96 return ENOSYS;
98 return 0;
101 static int control(uint32_t request, void *data, ...)
103 switch (request) {
104 case VOCTRL_QUERY_FORMAT:
105 return query_format(*((uint32_t*)data));
107 return VO_NOTIMPL;