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.
29 #include "video_out.h"
30 #include "video_out_internal.h"
32 static const vo_info_t info
=
36 "Aaron Holtzman <aholtzma@ess.engr.uvic.ca>",
40 const LIBVO_EXTERN(null
)
42 static uint32_t image_width
, image_height
;
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)
51 static void draw_osd(void)
61 draw_frame(uint8_t *src
[])
67 query_format(uint32_t format
)
69 return VFCAP_CSP_SUPPORTED
;
73 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_height
= height
;
86 static void check_events(void)
90 static int preinit(const char *arg
)
94 mp_tmsg(MSGT_VO
,MSGL_WARN
, "[VO_NULL] Unknown subdevice: %s.\n",arg
);
100 static int control(uint32_t request
, void *data
)
103 case VOCTRL_QUERY_FORMAT
:
104 return query_format(*((uint32_t*)data
));