stream/dvbin.h: Use angular brackets for system #includes.
[mplayer/glamo.git] / libvo / vo_null.c
blob325b87671f19c978be48390cd2301a74a9bdffa6
1 /*
2 * based on video_out_null.c from mpeg2dec
4 * Copyright (C) Aaron Holtzman - June 2000
6 * This file is part of MPlayer.
8 * MPlayer 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 of the License, or
11 * (at your option) any later version.
13 * MPlayer 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 along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 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 "video_out.h"
30 #include "video_out_internal.h"
32 static const vo_info_t info =
34 "Null video output",
35 "null",
36 "Aaron Holtzman <aholtzma@ess.engr.uvic.ca>",
40 const LIBVO_EXTERN(null)
42 static uint32_t image_width, image_height;
44 //static uint32_t
45 static int draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
46 //draw_slice(uint8_t *src[], uint32_t slice_num)
48 return 0;
51 static void draw_osd(void)
55 static void
56 flip_page(void)
60 static int
61 draw_frame(uint8_t *src[])
63 return 0;
66 static int
67 query_format(uint32_t format)
69 return VFCAP_CSP_SUPPORTED;
72 static int
73 config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
75 image_width = width;
76 image_height = height;
77 return 0;
80 static void
81 uninit(void)
86 static void check_events(void)
90 static int preinit(const char *arg)
92 if(arg)
94 mp_tmsg(MSGT_VO,MSGL_WARN, "[VO_NULL] Unknown subdevice: %s.\n",arg);
95 return ENOSYS;
97 return 0;
100 static int control(uint32_t request, void *data)
102 switch (request) {
103 case VOCTRL_QUERY_FORMAT:
104 return query_format(*((uint32_t*)data));
106 return VO_NOTIMPL;